summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86pciBus.c
diff options
context:
space:
mode:
authorIan Romanick <idr@umwelt.(none)>2006-08-02 10:54:41 -0700
committerIan Romanick <idr@umwelt.(none)>2006-08-02 10:54:41 -0700
commita0f2e1cae46f189ed97e2d92b485d315b3d2627a (patch)
tree9f71b5f32f3bc74abd8a6b1175f97aaf42c9fde2 /hw/xfree86/common/xf86pciBus.c
parentde8234606f87ce79d016f7ddeabdf57c4ad212f3 (diff)
Move xf86FindPciDeviceVendor and xf86FindPciClass from xf86pciBus.c to
xf86int10.c. Refactor common code from those functions to do_find.
Diffstat (limited to 'hw/xfree86/common/xf86pciBus.c')
-rw-r--r--hw/xfree86/common/xf86pciBus.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
index 7c5a2d889..af2b3007d 100644
--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -1030,72 +1030,6 @@ xf86CheckPciSlot( const struct pci_device * d )
}
-/*
- * xf86FindPciVendorDevice() xf86FindPciClass(): These functions
- * are meant to be used by the pci bios emulation. Some bioses
- * need to see if there are _other_ chips of the same type around
- * so by setting pvp_exclude one pci device can be explicitely
- * _excluded if required.
- */
-_X_EXPORT struct pci_device *
-xf86FindPciDeviceVendor(CARD16 vendorID, CARD16 deviceID,
- char n, const struct pci_device * exclude)
-{
- struct pci_device *dev;
- struct pci_id_match m;
- struct pci_device_iterator *iter;
-
- m.vendor_id = vendorID;
- m.device_id = deviceID;
- m.subvendor_id = PCI_MATCH_ANY;
- m.subdevice_id = PCI_MATCH_ANY;
- m.device_class = 0;
- m.device_class_mask = 0;
-
- n++;
-
- iter = pci_id_match_iterator_create(& m);
- while ((dev = pci_device_next(iter)) != NULL) {
- if ((dev != exclude) && !(--n)) {
- break;
- }
- }
-
- pci_iterator_destroy(iter);
-
- return dev;
-}
-
-_X_EXPORT struct pci_device *
-xf86FindPciClass(CARD8 intf, CARD8 subClass, CARD16 _class,
- char n, const struct pci_device * exclude)
-{
- struct pci_device *dev;
- struct pci_id_match m;
- struct pci_device_iterator *iter;
-
- m.vendor_id = PCI_MATCH_ANY;
- m.device_id = PCI_MATCH_ANY;
- m.subvendor_id = PCI_MATCH_ANY;
- m.subdevice_id = PCI_MATCH_ANY;
- m.device_class = (((uint32_t)_class) << 16)
- | (((uint32_t)subClass) << 8) | intf;
- m.device_class_mask = 0x00ffffff;
-
- n++;
-
- iter = pci_id_match_iterator_create(& m);
- while ((dev = pci_device_next(iter)) != NULL) {
- if ((dev != exclude) && !(--n)) {
- break;
- }
- }
-
- pci_iterator_destroy(iter);
-
- return dev;
-}
-
static void
pciTagConvertRange2Host(PCITAG tag, resRange *pRange)
{