CVS Update: xc (branch: trunk)
Ian Romanick
xorg-commit at cvs.freedesktop.org
Fri Jul 1 19:21:35 EEST 2005
CVSROOT: /cvs/xorg
Module name: xc
Changes by: idr at gabe.freedesktop.org 05/07/01 09:21:35
Log message:
Re-write the PInS processing code
This patch dumps all of the old BIOS processing code from the MGA DDX. The new
code, located in mga_bios.c, is modeled after the code in matroxfb_misc.c
(though no actual code was copied). Basically, the BIOS is processed in one
place, with "device independent" values stored in a data structure. This data
is then used, without extra switch-statments, throughout the driver.
In addition, this patch adds support for processing the BIOS on PowerPC
systems. On PPC cards, the magic offset values (that give the location of the
PInS data) is not in the BIOS. Instead the driver has to search the BIOS for
the PInS structure signature. The patch does this and correctly handles
byte-ordering (and data alignement) issues.
This code has been tested on an AGP G400 on x86 and a PCI G450 on PowerPC.
NOTE: The file mga_bios.h is also removed. The "documentation" in that file
was moved to the file mga_PInS.txt. This file documents, as much as possible,
the layout of the various PInS datastructure versions. The information in that
file is 100% based on the old mga_bios.h and the code in matroxfb_misc.c. No
additional information from Matrox documentation is included in that file.
This just puts the information that was already known in one place.
Xorg Bug: 3553
Modified files:
./:
ChangeLog
xc/programs/Xserver/hw/xfree86/drivers/mga/:
Imakefile mga.h mga_arc.c mga_dac3026.c mga_dacG.c
mga_dga.c mga_dh.c mga_dri.c mga_driver.c mga_g450pll.c
mga_hwcurs.c mga_merge.c mga_shadow.c mga_storm.c
mga_video.c
Added files:
xc/programs/Xserver/hw/xfree86/drivers/mga/:
mga_PInS.txt mga_bios.c
Removed files:
xc/programs/Xserver/hw/xfree86/drivers/mga/:
mga_bios.h
Revision Changes Path
1.1062 +34 -0 xc/ChangeLog
1.6 +2 -2 xc/programs/Xserver/hw/xfree86/drivers/mga/Imakefile
1.6 +57 -3 xc/programs/Xserver/hw/xfree86/drivers/mga/mga.h
1.4 +0 -1 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_arc.c
1.6 +5 -93 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dac3026.c
1.6 +23 -75 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dacG.c
1.3 +0 -1 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dga.c
1.3 +0 -1 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dh.c
1.8 +0 -2 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c
1.13 +6 -171 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_driver.c
1.3 +0 -1 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_g450pll.c
1.3 +0 -1 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_hwcurs.c
1.3 +1 -1 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_merge.c
1.3 +0 -1 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_shadow.c
1.7 +0 -1 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_storm.c
1.4 +0 -1 xc/programs/Xserver/hw/xfree86/drivers/mga/mga_video.c
More information about the xorg-commit
mailing list