summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannick Heneault <yheneaul@matrox.com>2009-03-30 13:38:39 -0400
committerYannick Heneault <yheneaul@matrox.com>2009-03-30 13:38:39 -0400
commitc955c1fdabfe0449369d0ccf31ab7e6ef3d7bffe (patch)
tree9c3ce20bacfebc8fe490f46b910c661a68993d4d
parent16a5e3a7e13c0a2c1091ad452250cbc231b8f427 (diff)
fixed memory count rountine for G200eW to detect up to 16Megs on X server without libpciaccess.
-rw-r--r--src/mga_driver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 70bd280..7c67405 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -1293,8 +1293,7 @@ MGACountRam(ScrnInfoPtr pScrn)
MaxMapSize = pMga->PciInfo->regions[0].size;
#else
Option = pciReadLong(pMga->PciTag, PCI_OPTION_REG);
- MaxMapSize = 1UL << pciGetBaseSize(pMga->PciTag, 0, TRUE,
- NULL);
+ MaxMapSize = 1UL << pMga->PciInfo->size[0];
#endif
Option = (Option & 0x3000000) >> 24 ;