diff options
author | Adam Jackson <ajax@redhat.com> | 2011-11-16 15:03:25 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-11-16 15:03:25 -0500 |
commit | 037b839c84ad6dcbe9aade420cf0d3bf06f23119 (patch) | |
tree | bf55e8e290276dc871c25474e4e5ae13e950ea3b | |
parent | 087226bf4e442b83985078f5df481eb91f4f65ed (diff) |
Adapt to missing PIOOffset in videoabi 12
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | src/smi_driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smi_driver.c b/src/smi_driver.c index 9c10e46..86644c7 100644 --- a/src/smi_driver.c +++ b/src/smi_driver.c @@ -442,7 +442,11 @@ SMI_PreInit(ScrnInfoPtr pScrn, int flags) LEAVE(FALSE); hwp = VGAHWPTR(pScrn); +#if ABI_VIDEODRV_VERSION < 12 pSmi->PIOBase = hwp->PIOOffset; +#else + pSmi->PIOBase = 0; +#endif xf86ErrorFVerb(VERBLEV, "\tSMI_PreInit vgaCRIndex=%x, vgaIOBase=%x, " "MMIOBase=%p\n", hwp->IOBase + VGA_CRTC_INDEX_OFFSET, |