[PATCH] Add macros to retrieve the subsystem vendor/device

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
Giuseppe Bilotta
2007-09-27 00:08:28 +02:00
committed by Aaron Plattner
parent 3449da7a7b
commit 02e431eb09

View File

@@ -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