From 02e431eb0969cabb67f3e4b1cb1a2d7fc5f697f0 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 27 Sep 2007 00:08:28 +0200 Subject: [PATCH] [PATCH] Add macros to retrieve the subsystem vendor/device Signed-off-by: Giuseppe Bilotta Signed-off-by: Aaron Plattner --- src/nv_const.h | 4 ++++ 1 file changed, 4 insertions(+) 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