From 55d219394ad6af8e25ff604bcbb49d5a551bd348 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 22 Aug 2007 10:43:39 -0700 Subject: 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. --- src/mga.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/mga.h') 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 +#endif #include #include @@ -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; -- cgit v1.2.3