summaryrefslogtreecommitdiff
path: root/src/savage_driver.h
diff options
context:
space:
mode:
authorIan Romanick <idr@umwelt.(none)>2006-08-07 13:27:48 -0700
committerIan Romanick <idr@umwelt.(none)>2006-08-07 13:27:48 -0700
commit31939c4c516124bfca0de7db4278b6b16df5e70f (patch)
treec02a54ece6b6930cf469d7766f8cdcdb9131825e /src/savage_driver.h
parent3a7f84ac41e93a9395891913cec1c5acb30937d0 (diff)
Introduce the savage_region structure, which is used to track mappable
regions of PCI space.
Diffstat (limited to 'src/savage_driver.h')
-rw-r--r--src/savage_driver.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/savage_driver.h b/src/savage_driver.h
index 805aa64..3e97106 100644
--- a/src/savage_driver.h
+++ b/src/savage_driver.h
@@ -266,6 +266,11 @@ typedef struct _StatInfo {
int realOff;
} StatInfoRec,*StatInfoPtr;
+struct savage_region {
+ unsigned bar;
+ unsigned long offset;
+};
+
typedef struct _Savage {
SavageRegRec SavedReg;
SavageRegRec ModeReg;
@@ -293,6 +298,11 @@ typedef struct _Savage {
unsigned long ShadowPhysical;
/* These are linear addresses. */
+ struct savage_region MmioRegion;
+ struct savage_region FbRegion;
+ struct savage_region ApertureRegion;
+ unsigned last_bar;
+
unsigned char* MapBase;
unsigned char* BciMem;
unsigned char* FBBase;