[Nouveau] [PATCH] xf86-video-nouveau: add macros to retrieve the subsystem vendor/device

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Wed Sep 26 16:28:20 PDT 2007


Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
---
 src/nv_pcicompat.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/nv_pcicompat.h b/src/nv_pcicompat.h
index 4ead510..8f9dfe2 100644
--- a/src/nv_pcicompat.h
+++ b/src/nv_pcicompat.h
@@ -10,6 +10,8 @@
 #define PCI_DEV_VENDOR_ID(_device) ((_device)->vendor_id)
 #define PCI_DEV_DEVICE_ID(_device) ((_device)->device_id)
 #define PCI_DEV_REVISION(_device) ((_device)->revision)
+#define PCI_DEV_SUBVENDOR_ID(_device) ((_device)->subvendor_id)
+#define PCI_DEV_SUBDEVICE_ID(_device) ((_device)->subdevice_id)
 
 #define PCI_DEV_FUNC(_device) ((_device)->func)
 #define PCI_DEV_BUS(_device) ((_device)->bus)
@@ -28,6 +30,8 @@
 #define PCI_DEV_VENDOR_ID(_device) ((_device)->vendor)
 #define PCI_DEV_DEVICE_ID(_device) ((_device)->chipType)
 #define PCI_DEV_REVISION(_device) ((_device)->chipRev)
+#define PCI_DEV_SUBVENDOR_ID(_device) ((_device)->subsysVendor)
+#define PCI_DEV_SUBDEVICE_ID(_device) ((_device)->subsysCard)
 
 #define PCI_DEV_FUNC(_device) ((_device)->func)
 #define PCI_DEV_BUS(_device) ((_device)->bus)
-- 
1.5.3.2



More information about the Nouveau mailing list