diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2007-09-17 01:12:02 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2007-09-17 15:41:14 -0700 |
commit | deff2965ef35260b4b7c4bc23718833bec7143b3 (patch) | |
tree | f77e9419473a9551dd33d266b29bd049b8674dc0 /src/nv_const.h | |
parent | b2db7d414400d80a5567d71eed9a7e94f1043a20 (diff) |
libpciaccess support.
Diffstat (limited to 'src/nv_const.h')
-rw-r--r-- | src/nv_const.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nv_const.h b/src/nv_const.h index b1285ba..141e0f3 100644 --- a/src/nv_const.h +++ b/src/nv_const.h @@ -5,4 +5,17 @@ #define NV_NAME "NV" #define NV_DRIVER_NAME "nv" +/* libpciaccess gratuitous API changes */ +#if XSERVER_LIBPCIACCESS + #define MEMBASE(p,n) (p)->regions[n].base_addr + #define VENDOR_ID(p) (p)->vendor_id + #define DEVICE_ID(p) (p)->device_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 CHIP_REVISION(p) (p)->chipRev +#endif + #endif /* __NV_CONST_H__ */ |