summaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2014-04-22 11:41:07 +0200
committerEgbert Eich <eich@freedesktop.org>2014-04-30 17:25:05 +0200
commit0ddf408f17cee58d643f4fd2f683f6530f5027af (patch)
tree79935652ce409bc1199e8ba3d117d86bf785ddbe /src/ast.h
parente855e6806ea94a2296076924ee9460b5081bd6da (diff)
Fix compiler warnings: get rid of deprecated IOADDRESS
For newer ABI versions IOADDRESS can be replaced by int which is big enough to hold an PIO offset. Signed-off-by: Egbert Eich <eich@suse.de> Acked-by: Y.C. Chen <yc_chen@aspeedtech.com>
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ast.h b/src/ast.h
index cbe62fb..3b56a6c 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -261,9 +261,11 @@ typedef struct _ASTRec {
unsigned long FbMapSize;
unsigned long MMIOMapSize;
- IOADDRESS IODBase; /* Base of PIO memory area */
- IOADDRESS PIOOffset;
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
IOADDRESS RelocateIO;
+#else
+ int RelocateIO;
+#endif
VIDEOMODE VideoModeInfo;
ASTRegRec SavedReg;