diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-02-01 00:02:21 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-02-01 00:02:21 -0800 |
commit | 3ecc38cb8b882169fb64bf939f709326915f375e (patch) | |
tree | 08f8a5952311d17f15445f9e24b9f9c57fb054a3 /src/dev/alpha/tsunami_pchip.cc | |
parent | bb7ad80bbe565800b09c38bdc02c12f827ec9240 (diff) | |
download | gem5-3ecc38cb8b882169fb64bf939f709326915f375e.tar.xz |
Devices: Add support for legacy fixed IO locations in BARs.
Diffstat (limited to 'src/dev/alpha/tsunami_pchip.cc')
-rw-r--r-- | src/dev/alpha/tsunami_pchip.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dev/alpha/tsunami_pchip.cc b/src/dev/alpha/tsunami_pchip.cc index 83bcf8e65..4df7d1150 100644 --- a/src/dev/alpha/tsunami_pchip.cc +++ b/src/dev/alpha/tsunami_pchip.cc @@ -300,6 +300,7 @@ TsunamiPChip::translatePciToDma(Addr busAddr) // if no match was found, then return the original address return busAddr; } + Addr TsunamiPChip::calcConfigAddr(int bus, int dev, int func) { @@ -310,7 +311,17 @@ TsunamiPChip::calcConfigAddr(int bus, int dev, int func) return TsunamiPciBus0Config | (func << 8) | (dev << 11); } +Addr +TsunamiPChip::calcIOAddr(Addr addr) +{ + return TSUNAMI_PCI0_IO + addr; +} +Addr +TsunamiPChip::calcMemAddr(Addr addr) +{ + return TSUNAMI_PCI0_MEMORY + addr; +} void TsunamiPChip::serialize(std::ostream &os) |