Minor fixes to compile with pciaccess.

o Fix a typo
o Protect call to xf86GetPciVideoInfo with ifndef XSERVER_LIBPCIACCESS
o Some minor consistency in macro names in i740_pcirename.h
This commit is contained in:
Paulo Cesar Pereira de Andrade
2008-03-10 01:15:50 -03:00
committed by Dave Airlie
parent 8c31b2e409
commit e26359a603
2 changed files with 6 additions and 4 deletions

View File

@@ -378,11 +378,13 @@ I740Probe(DriverPtr drv, int flags) {
return FALSE;
}
#ifndef XSERVER_LIBPCIACCESS
/*
Since these Probing is just checking the PCI data the server already
collected.
*/
if (!xf86GetPciVideoInfo()) return FALSE;
#endif
/* Look for Intel based chips */
numUsed = xf86MatchPciInstances(I740_NAME, PCI_VENDOR_INTEL,
@@ -600,7 +602,7 @@ I740PreInit(ScrnInfoPtr pScrn, int flags) {
pI740->pEnt->device->chipID);
} else {
from = X_PROBED;
pScrn->chipset = (char *)xf86TokenToString(I740Chipsets, PCI_DEV_DEVIE_ID(pI740->PciInfo));
pScrn->chipset = (char *)xf86TokenToString(I740Chipsets, PCI_DEV_DEVICE_ID(pI740->PciInfo));
}
if (pI740->pEnt->device->chipRev >= 0) {
xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "ChipRev override: %d\n",

View File

@@ -26,8 +26,8 @@
* library. The main purpose being to facilitate source code compatibility.
*/
#ifndef ASTPCIRENAME_H
#define ASTPCIRENAME_H
#ifndef I740PCIRENAME_H
#define I740PCIRENAME_H
enum region_type {
REGION_MEM,
@@ -119,4 +119,4 @@ typedef struct pci_device *pciVideoPtr;
#endif /* XSERVER_LIBPCIACCESS */
#endif /* CIRPCIRENAME_H */
#endif /* i740PCIRENAME_H */