mirror of
https://github.com/X11Libre/xf86-video-i740.git
synced 2026-03-24 01:24:56 +00:00
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:
committed by
Dave Airlie
parent
8c31b2e409
commit
e26359a603
@@ -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",
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user