diff options
author | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-06-07 15:32:31 -0400 |
---|---|---|
committer | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-06-07 15:32:31 -0400 |
commit | 9dd9f09a9021653e5590d27bd7aa0e7af85416ad (patch) | |
tree | 1958fb830b952ad6bfca2dc1db205ec12108a446 /src/radeon_driver.c | |
parent | 9ad311eeb0ac2b70a862dbb9de278154ba9142ec (diff) |
RADEON: fix some issues with bios table init code
- fix some issues with bios table init code
- re-org preinit to better handle bios table init of cards
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 7d486506..1064fda9 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -2487,7 +2487,16 @@ static Bool RADEONPreInitXv(ScrnInfoPtr pScrn) return TRUE; } -static Bool RADEONPreInitControllers(ScrnInfoPtr pScrn, xf86Int10InfoPtr pInt10) +static void RADEONPreInitBIOS(ScrnInfoPtr pScrn, xf86Int10InfoPtr pInt10) +{ + RADEONGetBIOSInfo(pScrn, pInt10); +#if 0 + RADEONGetBIOSInitTableOffsets(pScrn); + RADEONPostCardFromBIOSTables(pScrn); +#endif +} + +static Bool RADEONPreInitControllers(ScrnInfoPtr pScrn) { xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn); int i; @@ -2495,8 +2504,6 @@ static Bool RADEONPreInitControllers(ScrnInfoPtr pScrn, xf86Int10InfoPtr pInt10 if (!RADEONAllocateControllers(pScrn)) return FALSE; - RADEONGetBIOSInfo(pScrn, pInt10); - RADEONGetClockInfo(pScrn); if (!RADEONSetupConnectors(pScrn)) { @@ -2730,6 +2737,8 @@ _X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags) if (!RADEONPreInitChipType(pScrn)) goto fail; + RADEONPreInitBIOS(pScrn, pInt10); + #ifdef XF86DRI /* PreInit DRI first of all since we need that for getting a proper * memory map @@ -2746,7 +2755,7 @@ _X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags) RADEONPreInitDDC(pScrn); - if (!RADEONPreInitControllers(pScrn, pInt10)) + if (!RADEONPreInitControllers(pScrn)) goto fail; |