1#ifndef __NV_CONST_H__ 2#define __NV_CONST_H__ 3 4#define NV_VERSION 4000 5#define NV_NAME "NV" 6#define NV_DRIVER_NAME "nv" 7 8/* libpciaccess gratuitous API changes */ 9#ifdef XSERVER_LIBPCIACCESS 10 #define MEMBASE(p,n) (p)->regions[n].base_addr 11 #define VENDOR_ID(p) (p)->vendor_id 12 #define DEVICE_ID(p) (p)->device_id 13 #define SUBVENDOR_ID(p) (p)->subvendor_id 14 #define SUBDEVICE_ID(p) (p)->subdevice_id 15 #define CHIP_REVISION(p) (p)->revision 16#else 17 #define MEMBASE(p,n) (p)->memBase[n] 18 #define VENDOR_ID(p) (p)->vendor 19 #define DEVICE_ID(p) (p)->chipType 20 #define SUBVENDOR_ID(p) (p)->subsysVendor 21 #define SUBDEVICE_ID(p) (p)->subsysCard 22 #define CHIP_REVISION(p) (p)->chipRev 23#endif 24 25#endif /* __NV_CONST_H__ */ 26