Remove (long-)deprecated xf86EnablePciBusMaster.
This commit is contained in:
parent
0a63d874e9
commit
1f71f0c057
@ -165,9 +165,6 @@ pciVideoPtr xf86FindPciDeviceVendor(CARD16 vendorID, CARD16 deviceID,
|
|||||||
char n, pciVideoPtr pvp_exclude);
|
char n, pciVideoPtr pvp_exclude);
|
||||||
pciVideoPtr xf86FindPciClass(CARD8 intf, CARD8 subClass, CARD16 class,
|
pciVideoPtr xf86FindPciClass(CARD8 intf, CARD8 subClass, CARD16 class,
|
||||||
char n, pciVideoPtr pvp_exclude);
|
char n, pciVideoPtr pvp_exclude);
|
||||||
#ifdef INCLUDE_DEPRECATED
|
|
||||||
void xf86EnablePciBusMaster(pciVideoPtr pPci, Bool enable);
|
|
||||||
#endif
|
|
||||||
void xf86RegisterStateChangeNotificationCallback(xf86StateChangeNotificationCallbackFunc func, pointer arg);
|
void xf86RegisterStateChangeNotificationCallback(xf86StateChangeNotificationCallbackFunc func, pointer arg);
|
||||||
Bool xf86DeregisterStateChangeNotificationCallback(xf86StateChangeNotificationCallbackFunc func);
|
Bool xf86DeregisterStateChangeNotificationCallback(xf86StateChangeNotificationCallbackFunc func);
|
||||||
|
|
||||||
|
@ -28,8 +28,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file contains the interfaces to the bus-specific code
|
* This file contains the interfaces to the bus-specific code
|
||||||
*/
|
*/
|
||||||
#define INCLUDE_DEPRECATED 1
|
|
||||||
|
|
||||||
#ifdef HAVE_XORG_CONFIG_H
|
#ifdef HAVE_XORG_CONFIG_H
|
||||||
#include <xorg-config.h>
|
#include <xorg-config.h>
|
||||||
#endif
|
#endif
|
||||||
@ -3451,25 +3449,3 @@ pciConvertRange2Host(int entityIndex, resRange *pRange)
|
|||||||
tag = TAG(pvp);
|
tag = TAG(pvp);
|
||||||
pciTagConvertRange2Host(tag, pRange);
|
pciTagConvertRange2Host(tag, pRange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef INCLUDE_DEPRECATED
|
|
||||||
_X_EXPORT void
|
|
||||||
xf86EnablePciBusMaster(pciVideoPtr pPci, Bool enable)
|
|
||||||
{
|
|
||||||
CARD32 temp;
|
|
||||||
PCITAG tag;
|
|
||||||
|
|
||||||
if (!pPci) return;
|
|
||||||
|
|
||||||
tag = pciTag(pPci->bus, pPci->device, pPci->func);
|
|
||||||
temp = pciReadLong(tag, PCI_CMD_STAT_REG);
|
|
||||||
if (enable) {
|
|
||||||
updateAccessInfoStatusControlInfo(tag, temp | PCI_CMD_MASTER_ENABLE);
|
|
||||||
pciWriteLong(tag, PCI_CMD_STAT_REG, temp | PCI_CMD_MASTER_ENABLE);
|
|
||||||
} else {
|
|
||||||
updateAccessInfoStatusControlInfo(tag, temp & ~PCI_CMD_MASTER_ENABLE);
|
|
||||||
pciWriteLong(tag, PCI_CMD_STAT_REG, temp & ~PCI_CMD_MASTER_ENABLE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif /* INCLUDE_DEPRECATED */
|
|
||||||
|
@ -46,8 +46,6 @@
|
|||||||
* authorization from the copyright holder(s) and author(s).
|
* authorization from the copyright holder(s) and author(s).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define INCLUDE_DEPRECATED 1
|
|
||||||
|
|
||||||
#ifdef HAVE_XORG_CONFIG_H
|
#ifdef HAVE_XORG_CONFIG_H
|
||||||
#include <xorg-config.h>
|
#include <xorg-config.h>
|
||||||
#endif
|
#endif
|
||||||
@ -350,9 +348,6 @@ _X_HIDDEN void *xfree86LookupTab[] = {
|
|||||||
SYMFUNC(xf86FindScreenForEntity)
|
SYMFUNC(xf86FindScreenForEntity)
|
||||||
SYMFUNC(xf86FindPciDeviceVendor)
|
SYMFUNC(xf86FindPciDeviceVendor)
|
||||||
SYMFUNC(xf86FindPciClass)
|
SYMFUNC(xf86FindPciClass)
|
||||||
#ifdef INCLUDE_DEPRECATED
|
|
||||||
SYMFUNC(xf86EnablePciBusMaster)
|
|
||||||
#endif
|
|
||||||
SYMFUNC(xf86RegisterStateChangeNotificationCallback)
|
SYMFUNC(xf86RegisterStateChangeNotificationCallback)
|
||||||
SYMFUNC(xf86DeregisterStateChangeNotificationCallback)
|
SYMFUNC(xf86DeregisterStateChangeNotificationCallback)
|
||||||
SYMFUNC(xf86NoSharedResources)
|
SYMFUNC(xf86NoSharedResources)
|
||||||
|
Loading…
Reference in New Issue
Block a user