[PATCH 1/2] xf86-video-nv: add macros to retrieve the subsystem vendor/device
Giuseppe Bilotta
giuseppe.bilotta at gmail.com
Wed Sep 26 15:24:03 PDT 2007
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
---
src/nv_const.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/nv_const.h b/src/nv_const.h
index 141e0f3..8f9799c 100644
--- a/src/nv_const.h
+++ b/src/nv_const.h
@@ -10,11 +10,15 @@
#define MEMBASE(p,n) (p)->regions[n].base_addr
#define VENDOR_ID(p) (p)->vendor_id
#define DEVICE_ID(p) (p)->device_id
+ #define SUBVENDOR_ID(p) (p)->subvendor_id
+ #define SUBDEVICE_ID(p) (p)->subdevice_id
#define CHIP_REVISION(p) (p)->revision
#else
#define MEMBASE(p,n) (p)->memBase[n]
#define VENDOR_ID(p) (p)->vendor
#define DEVICE_ID(p) (p)->chipType
+ #define SUBVENDOR_ID(p) (p)->subsysVendor
+ #define SUBDEVICE_ID(p) (p)->subsysCard
#define CHIP_REVISION(p) (p)->chipRev
#endif
--
1.5.3.2
More information about the xorg
mailing list