summaryrefslogtreecommitdiff
path: root/src/mga.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-22 10:43:39 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-22 10:43:39 -0700
commit55d219394ad6af8e25ff604bcbb49d5a551bd348 (patch)
tree0a6c6e83a297e049d7a55abbeaaad61c61d9b53b /src/mga.h
parentf4ef39d53d5a67942707507814fef4ad466dc909 (diff)
Merge PCI-rework support and "classic" PCI interface support into one tree
First pass at merging both trees. So far, this has only been tested on the PCI-rework build on a PCI G450.
Diffstat (limited to 'src/mga.h')
-rw-r--r--src/mga.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/mga.h b/src/mga.h
index 00f4741..673ec1d 100644
--- a/src/mga.h
+++ b/src/mga.h
@@ -14,7 +14,9 @@
#ifndef MGA_H
#define MGA_H
+#ifdef PCIACCESS
#include <pciaccess.h>
+#endif
#include <string.h>
#include <stdio.h>
@@ -287,7 +289,11 @@ typedef struct {
#ifdef DISABLE_VGA_IO
typedef struct mgaSave {
+#ifdef PCIACCESS
struct pci_device * pvp;
+#else
+ pciVideoPtr pvp;
+#endif
Bool enable;
} MgaSave, *MgaSavePtr;
#endif
@@ -435,7 +441,12 @@ typedef struct {
EntityInfoPtr pEnt;
struct mga_bios_values bios;
CARD8 BiosOutputMode;
+#ifdef PCIACCESS
struct pci_device * PciInfo;
+#else
+ pciVideoPtr PciInfo;
+ PCITAG PciTag;
+#endif
const struct mga_device_attributes * chip_attribs;
xf86AccessRec Access;
int Chipset;
@@ -471,7 +482,12 @@ typedef struct {
*/
int iload_bar;
-
+#ifndef PCIACCESS
+ unsigned long IOAddress;
+ unsigned long ILOADAddress;
+ unsigned long BiosAddress;
+ MessageType BiosFrom;
+#endif
unsigned long FbAddress;
unsigned char * IOBase;
unsigned char * FbBase;