                                                                 2/27/93
Here are the patches I made to XS3 to make it work with the Number 9 GXE 
Level 11 graphics card.  The patches are against version 0.4.0 alpha, but I 
also put in a few patches from the net that I think were the equivalent to 
upgrading to 0.4.1 alpha, so those three changes are mixed in with these 
patches.

I just threw this together.  The diff files should be applied to their 
appropriate files, but you should read them before applying them, as there 
are probably patches that you don't want.  I fixed the Interlace problem in 
0.4.0 and I added an extra column to Xconfig so that the programmable frequency 
can be specified.  This is apparently not the way we will do it in Xfree86, 
but this is what I have working right now.  You might not want to do it this 
way, even temporarily.

The entire number9gxe directory should be put into mit/server/ddx/x386 as a 
subdirectory.  There is a Linux standalone executable for setting the clock 
(remember the frequency is specified here in MHz) but it doesn't have 
permission to use the in/out from Linux.  I haven't tracked down the problem;
I just bypassed it by putting the code into the XS3 executable.  

The Imakefile changes are ones that worked for me.  The Linux specific line 
in ibm8514 should be taken out; it worked for me at the time but shouldn't be 
there.  I also improved the Imakefiles to work right with makedepend.  I use 
the makedepend executable.  The makedepend script that comes with Linux SLS 
1.0 doesn't seem to work right.  

I made macros that, if used, will be able to work with future chip id numbers 
of S3 chips without modifying and recompiling XS3.  See the ibm8514/reg8514.h 
patches.

I have included a sample Xconfig that I have been using.

I realize that quite a bit of this work will be different in xfree86 1.2, but 
this is just what I have working right now.  I don't have any more time to 
spend on it for a little while.

  -Jim Nichols
   nichols@felix.cmd.usf.edu
