mirror of
https://github.com/X11Libre/xf86-video-nv.git
synced 2026-03-24 01:24:21 +00:00
[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:
committed by
Aaron Plattner
parent
3449da7a7b
commit
02e431eb09
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user