Remove unused pciNumBuses
This commit is contained in:
parent
0ce61e21d6
commit
77d0b0ecfa
|
@ -838,9 +838,6 @@ _X_HIDDEN void *xfree86LookupTab[] = {
|
||||||
/* Globals from xf86Configure.c */
|
/* Globals from xf86Configure.c */
|
||||||
SYMVAR(ConfiguredMonitor)
|
SYMVAR(ConfiguredMonitor)
|
||||||
|
|
||||||
/* Pci.c */
|
|
||||||
SYMVAR(pciNumBuses)
|
|
||||||
|
|
||||||
/* modes */
|
/* modes */
|
||||||
SYMVAR(xf86CrtcConfigPrivateIndex)
|
SYMVAR(xf86CrtcConfigPrivateIndex)
|
||||||
SYMFUNC(xf86CrtcConfigInit)
|
SYMFUNC(xf86CrtcConfigInit)
|
||||||
|
|
|
@ -139,7 +139,6 @@
|
||||||
/* Global data */
|
/* Global data */
|
||||||
|
|
||||||
pciBusInfo_t *pciBusInfo = NULL;
|
pciBusInfo_t *pciBusInfo = NULL;
|
||||||
_X_EXPORT int pciNumBuses = 0; /* Actual number of PCI buses */
|
|
||||||
|
|
||||||
_X_EXPORT ADDRESS
|
_X_EXPORT ADDRESS
|
||||||
pciBusAddrToHostAddr(PCITAG tag, PciAddrType type, ADDRESS addr)
|
pciBusAddrToHostAddr(PCITAG tag, PciAddrType type, ADDRESS addr)
|
||||||
|
|
|
@ -79,7 +79,6 @@ xf86MapLegacyIO(struct pci_device *dev)
|
||||||
void
|
void
|
||||||
bsdPciInit(void)
|
bsdPciInit(void)
|
||||||
{
|
{
|
||||||
pciNumBuses = 1;
|
|
||||||
pciBusInfo = &bsd_pci;
|
pciBusInfo = &bsd_pci;
|
||||||
|
|
||||||
xf86InitVidMem();
|
xf86InitVidMem();
|
||||||
|
|
|
@ -474,13 +474,11 @@ void
|
||||||
ix86PciInit()
|
ix86PciInit()
|
||||||
{
|
{
|
||||||
/* Initialize pciBusInfo */
|
/* Initialize pciBusInfo */
|
||||||
pciNumBuses = 1;
|
|
||||||
pciBusInfo = &ix86Pci0;
|
pciBusInfo = &ix86Pci0;
|
||||||
|
|
||||||
/* Make sure that there is a PCI bus present. */
|
/* Make sure that there is a PCI bus present. */
|
||||||
ix86PciSelectCfgmech();
|
ix86PciSelectCfgmech();
|
||||||
if (ix86Pci0.configMech == PCI_CFG_MECH_UNKNOWN) {
|
if (ix86Pci0.configMech == PCI_CFG_MECH_UNKNOWN) {
|
||||||
pciNumBuses = 0;
|
|
||||||
pciBusInfo = NULL;
|
pciBusInfo = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,6 @@ linuxPciInit(void)
|
||||||
we'll need a fallback for 2.0 kernels here */
|
we'll need a fallback for 2.0 kernels here */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pciNumBuses = 1;
|
|
||||||
pciBusInfo = &linuxPci0;
|
pciBusInfo = &linuxPci0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -255,8 +255,6 @@ ADDRESS pciBusAddrToHostAddr(PCITAG tag, PciAddrType type, ADDRESS addr);
|
||||||
PCITAG pciTag(int busnum, int devnum, int funcnum);
|
PCITAG pciTag(int busnum, int devnum, int funcnum);
|
||||||
Bool xf86scanpci(void);
|
Bool xf86scanpci(void);
|
||||||
|
|
||||||
extern int pciNumBuses;
|
|
||||||
|
|
||||||
/* Domain access functions. Some of these probably shouldn't be public */
|
/* Domain access functions. Some of these probably shouldn't be public */
|
||||||
pointer xf86MapDomainMemory(int ScreenNum, int Flags, struct pci_device *dev,
|
pointer xf86MapDomainMemory(int ScreenNum, int Flags, struct pci_device *dev,
|
||||||
ADDRESS Base, unsigned long Size);
|
ADDRESS Base, unsigned long Size);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user