diff options
author | Yannick Heneault <yheneaul@matrox.com> | 2009-03-30 13:38:39 -0400 |
---|---|---|
committer | Yannick Heneault <yheneaul@matrox.com> | 2009-03-30 13:38:39 -0400 |
commit | c955c1fdabfe0449369d0ccf31ab7e6ef3d7bffe (patch) | |
tree | 9c3ce20bacfebc8fe490f46b910c661a68993d4d | |
parent | 16a5e3a7e13c0a2c1091ad452250cbc231b8f427 (diff) |
fixed memory count rountine for G200eW to detect up to 16Megs on X server without libpciaccess.
-rw-r--r-- | src/mga_driver.c | 3 |
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 ; |