summaryrefslogtreecommitdiff
path: root/src/dev/tsunami_pchip.cc
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-07-06 14:54:09 -0400
committerKevin Lim <ktlim@umich.edu>2006-07-06 14:54:09 -0400
commitc8a37ce71514de9362640e8cb18c1744f0e2f83b (patch)
tree70eb71e46428c20bd6a44eed1d08a019abb70e25 /src/dev/tsunami_pchip.cc
parent05eef5ee1569f7a1c399a2b358a11323e88a48f8 (diff)
parent4b741100714c6f20749f344ddd4b16459f28df72 (diff)
downloadgem5-c8a37ce71514de9362640e8cb18c1744f0e2f83b.tar.xz
Merge ktlim@zizzer:/bk/newmem
into zamp.eecs.umich.edu:/z/ktlim2/clean/newmem-merge --HG-- extra : convert_revision : 0c4fbbe0826358a6a58f844bec34ce830ffd4ced
Diffstat (limited to 'src/dev/tsunami_pchip.cc')
-rw-r--r--src/dev/tsunami_pchip.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dev/tsunami_pchip.cc b/src/dev/tsunami_pchip.cc
index a376b908d..8a542b9b0 100644
--- a/src/dev/tsunami_pchip.cc
+++ b/src/dev/tsunami_pchip.cc
@@ -302,6 +302,17 @@ 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)
+{
+ assert(func < 8);
+ assert(dev < 32);
+ assert(bus == 0);
+
+ return TsunamiPciBus0Config | (func << 8) | (dev << 11);
+}
+
+
void
TsunamiPChip::serialize(std::ostream &os)