diff options
author | Kevin E Martin <kem@kem.org> | 2004-09-17 15:38:19 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2004-09-17 15:38:19 +0000 |
commit | 0e3171a83a79c1495b842daf07b3eeee4c9fd612 (patch) | |
tree | 165558ee6a9a2735616787fbc4a07f77a9af81f0 /hw/xfree86/os-support/bus/460gxPCI.c | |
parent | 516f452e78170bc643117a71bd2246a83b071316 (diff) |
Update the XORG_DATE for the release.XORG-6_8_1
Update cygwin release version.
Update documentation for release.
Diffstat (limited to 'hw/xfree86/os-support/bus/460gxPCI.c')
-rw-r--r-- | hw/xfree86/os-support/bus/460gxPCI.c | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/hw/xfree86/os-support/bus/460gxPCI.c b/hw/xfree86/os-support/bus/460gxPCI.c index af4e230e6..3b16f401a 100644 --- a/hw/xfree86/os-support/bus/460gxPCI.c +++ b/hw/xfree86/os-support/bus/460gxPCI.c @@ -201,46 +201,32 @@ Get460GXBridgeResources(int bus, * the chipset scan is to be stopped, or FALSE if the scan is to move on to the * next chipset. */ - Bool -xorgProbe460GX(scanpciWrapperOpt flags) +xf86PreScan460GX(void) { pciBusInfo_t *pBusInfo; PCITAG tag; + CARD32 tmp; + int i, devno; /* Bus zero should already be set up */ if (!(pBusInfo = pciBusInfo[0])) { cbn_460gx = -1; return FALSE; } + /* First look for a 460GX's primary host bridge */ tag = PCI_MAKE_TAG(0, 0x10, 0); - if (pciReadLong(tag, PCI_ID_REG) == DEVID(VENDOR_INTEL, CHIP_460GX_SAC)) { - return TRUE; + if (pciReadLong(tag, PCI_ID_REG) != DEVID(VENDOR_INTEL, CHIP_460GX_SAC)) { + cbn_460gx = -1; + return FALSE; } - cbn_460gx = -1; - - return FALSE; -} - -void -xf86PreScan460GX(void) -{ - pciBusInfo_t *pBusInfo; - PCITAG tag; - CARD32 tmp; - int i, devno; - - if (!(pBusInfo = pciBusInfo[0])) - return; - /* Get CBN (Chipset bus number) */ - tag = PCI_MAKE_TAG(0, 0x10, 0); if (!(cbn_460gx = (unsigned int)pciReadByte(tag, CBN))) { /* Sanity check failed */ cbn_460gx = -1; - return; + return TRUE; } if (pciNumBuses <= cbn_460gx) @@ -256,7 +242,7 @@ xf86PreScan460GX(void) if (pciReadLong(tag, PCI_ID_REG) != DEVID(VENDOR_INTEL, CHIP_460GX_SAC)) { /* Sanity check failed */ cbn_460gx = -1; - return; + return TRUE; } /* @@ -271,7 +257,7 @@ xf86PreScan460GX(void) DEVID(VENDOR_INTEL, CHIP_460GX_SAC)) { /* Sanity check failed */ cbn_460gx = -1; - return; + return TRUE; } if (devno == 0x10) @@ -292,7 +278,7 @@ xf86PreScan460GX(void) if (cbdevs_460gx & (1 << devno)) { /* Sanity check failed */ cbn_460gx = -1; - return; + return TRUE; } /* @@ -308,7 +294,7 @@ xf86PreScan460GX(void) if (cbdevs_460gx & (1 << devno)) { /* Sanity check failed */ cbn_460gx = -1; - return; + return TRUE; } /* @@ -324,7 +310,7 @@ xf86PreScan460GX(void) break; /* Sanity check failed */ cbn_460gx = -1; - return; + return TRUE; } } @@ -351,7 +337,7 @@ xf86PreScan460GX(void) break; } - return; + return TRUE; } /* This does some 460GX-related processing after the PCI bus scan */ |