diff options
author | Eric Anholt <eric@anholt.net> | 2009-04-21 15:49:01 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-04-27 17:05:59 -0700 |
commit | e5133a94dc78411eaef324131ea8056aeb81779e (patch) | |
tree | f6ef2a10a7e175e33605cd678d6719d0e136619c /src/reg_dumper/reg_dumper.h | |
parent | 4653a7db622ad54a3182d93c81331765d930db34 (diff) |
unifdef LIBPCIACCESS and XSERVER_LIBPCIACCESS.
Depending on new server means these are always present.
Diffstat (limited to 'src/reg_dumper/reg_dumper.h')
-rw-r--r-- | src/reg_dumper/reg_dumper.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/reg_dumper/reg_dumper.h b/src/reg_dumper/reg_dumper.h index 9f24d5cc..8c2eb0bb 100644 --- a/src/reg_dumper/reg_dumper.h +++ b/src/reg_dumper/reg_dumper.h @@ -29,6 +29,7 @@ #include <string.h> #include <stdlib.h> #include <stdio.h> +#include <pciaccess.h> #include "common.h" /** @file @@ -45,18 +46,12 @@ typedef char Bool; #define X_WARNING 1 #define X_ERROR 2 -struct pci_info_rec { - uint16_t chipType; -}; - typedef struct _i830 { /* Fields in common with the real pI830 */ - struct pci_info_rec *PciInfo; + struct pci_device *PciInfo; Bool use_drm_mode; /* Fields used for setting up reg_dumper */ - struct pci_device *pci_dev; - struct pci_info_rec pci_info_rec; volatile unsigned char *mmio; } I830Rec, *I830Ptr; |