From 62f5d7dd3ffbbb33e8371af589eaa69280bd017a Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 29 Mar 2006 17:37:25 -0500 Subject: 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 --- dev/io_device.cc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'dev/io_device.cc') 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))); +} + -- cgit v1.2.3