Elminiate the need for regs.h. Move the definitions in regs.h that
are still necessary to xgi_regs.h. Remove regs.h from
xgi_drv_la_SOURCES in Makefile.am, and sort that list alphabetically.
Several structure fields that were only needed to support older SiS
chips were removed. The single remaining use of RealVideoRam was
replaced with 'pscrn->videoRam'.
The code removed in xgi_vga.c was removed because the corresponding
code in xf86-video-sis is only used on some SiS 3xx chips. The XG20 /
XG40 support in that driver does not do this.
There is only one VGA engine supported by this driver, so there is no
need to track the engine of the current chip. Furthermore, there is
no need to test the VGA engine value to switch features of the old SiS
chips.
The tables mycustomttable, mychswtable, and mypdctable are hold-overs
from the SiS driver. They are required for fix-ups associated with
some laptops based on the older SiS chipsets. Since this driver does
not support those chipsets, the tables and associated code can go.
Also remove some comments from xgi_driver.h. These comments used to
accompany tables that were removed from the code long ago.
The references to xgifb are clearly hold-overs from the SiS driver.
It should be clear that the places the refered to "xgifb" actually
meant "sisfb". Note the reference to 2.4 kernels. :)
Many, many unused structure fields were deleted. Many more were
documented as probably unused. Most of this is cruft left around from
the old SiS driver.
There are a number of XF86_VERSION_CURRENT tests in the code the
pre-date the XFree86 / X.org schism. All of these tests (and the
older versions of the code) have been removed.
Make sure that every C file includes config.h. Make sure that all
extension header files (e.g., Xv.h) come from X11/extensions. Remove
all of the $XFree86$ cruft.
Shuffle files around into their correct places. Create Makefile.am,
configure.ac, and autogen.sh based on similar files in other drivers. Delete
pre-modular files (e.g., Imakefile) that are no longer necessary.