summaryrefslogtreecommitdiff
path: root/dev/io_device.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-03-29 17:37:25 -0500
committerAli Saidi <saidi@eecs.umich.edu>2006-03-29 17:37:25 -0500
commit62f5d7dd3ffbbb33e8371af589eaa69280bd017a (patch)
treeaa9a576e7b83598ff5e27a88147b037ad25c8c1c /dev/io_device.cc
parentc27c122afc6b778e67a9c77915fac71730a5a4ef (diff)
downloadgem5-62f5d7dd3ffbbb33e8371af589eaa69280bd017a.tar.xz
move stuff around so PageShift is defined before it is needed
don't ever include a file while in a namespace start of making alpha console new memsystem happy Make a BasePioDevice which is what all the simple Pio devices will inherit from add a description of when the data pointer will have memory arch/alpha/isa_traits.hh: don't ever include a file while in a namespace dev/alpha_console.cc: dev/alpha_console.hh: start of making alpha console new memsystem happy dev/io_device.cc: dev/io_device.hh: Make a BasePioDevice which is what all the simple Pio devices will inherit from mem/packet.hh: add a description of when the data pointer will have memory --HG-- extra : convert_revision : 495c0915541f9cad3eb42891e60b4ecbee7952bf
Diffstat (limited to 'dev/io_device.cc')
-rw-r--r--dev/io_device.cc17
1 files changed, 10 insertions, 7 deletions
diff --git a/dev/io_device.cc b/dev/io_device.cc
index 5f5f9a09d..ac993d78d 100644
--- a/dev/io_device.cc
+++ b/dev/io_device.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004-2005 The Regents of The University of Michigan
+ * Copyright (c) 2006 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -72,12 +72,6 @@ PioPort::SendEvent::process()
port->transmitList.push_back(&packet);
}
-PioDevice::PioDevice(const std::string &name, Platform *p)
- : SimObject(name), platform(p)
-{
- pioPort = new PioPort(this, p);
-}
-
bool
PioPort::recvTiming(Packet &pkt)
@@ -201,4 +195,13 @@ DmaDevice::~DmaDevice()
delete dmaPort;
}
+void
+BasePioDevice::addressRanges(AddrRangeList &range_list, bool &owner)
+{
+ assert(pioSize != 0);
+ owner = true;
+ range_list.clear();
+ range_list.push_back(RangeSize(pio_addr, sizeof(struct alphaAccess)));
+}
+