summaryrefslogtreecommitdiff
path: root/src/mga.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-31 11:05:57 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-31 11:05:57 -0700
commit923176f5aad777b4023003a457bb77da21373389 (patch)
treec5d50681090ba9f529c8e55a87d6d727abf6eb6a /src/mga.h
parent90beb8c27b4206b593898d346bf37ab49e75b975 (diff)
Use XSERVER_LIBPCIACCESS to detect pci-rework.
Diffstat (limited to 'src/mga.h')
-rw-r--r--src/mga.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mga.h b/src/mga.h
index 673ec1d..c46fdbb 100644
--- a/src/mga.h
+++ b/src/mga.h
@@ -14,7 +14,7 @@
#ifndef MGA_H
#define MGA_H
-#ifdef PCIACCESS
+#ifdef XSERVER_LIBPCIACCESS
#include <pciaccess.h>
#endif
#include <string.h>
@@ -289,7 +289,7 @@ typedef struct {
#ifdef DISABLE_VGA_IO
typedef struct mgaSave {
-#ifdef PCIACCESS
+#ifdef XSERVER_LIBPCIACCESS
struct pci_device * pvp;
#else
pciVideoPtr pvp;
@@ -441,7 +441,7 @@ typedef struct {
EntityInfoPtr pEnt;
struct mga_bios_values bios;
CARD8 BiosOutputMode;
-#ifdef PCIACCESS
+#ifdef XSERVER_LIBPCIACCESS
struct pci_device * PciInfo;
#else
pciVideoPtr PciInfo;
@@ -482,7 +482,7 @@ typedef struct {
*/
int iload_bar;
-#ifndef PCIACCESS
+#ifndef XSERVER_LIBPCIACCESS
unsigned long IOAddress;
unsigned long ILOADAddress;
unsigned long BiosAddress;