io_device.cc (7607:e75d877c8557) io_device.cc (7729:d3c006ecccd3)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 37 unchanged lines hidden (view full) ---

46 return pkt->isRead() ? device->read(pkt) : device->write(pkt);
47}
48
49void
50PioPort::getDeviceAddressRanges(AddrRangeList &resp, bool &snoop)
51{
52 snoop = false;
53 device->addressRanges(resp);
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 37 unchanged lines hidden (view full) ---

46 return pkt->isRead() ? device->read(pkt) : device->write(pkt);
47}
48
49void
50PioPort::getDeviceAddressRanges(AddrRangeList &resp, bool &snoop)
51{
52 snoop = false;
53 device->addressRanges(resp);
54 for (AddrRangeIter i = resp.begin(); i != resp.end(); i++)
55 DPRINTF(BusAddrRanges, "Adding Range %#x-%#x\n", i->start, i->end);
54}
55
56
57PioDevice::PioDevice(const Params *p)
58 : MemObject(p), platform(p->platform), sys(p->system), pioPort(NULL)
59{}
60
61PioDevice::~PioDevice()

--- 28 unchanged lines hidden (view full) ---

90 pioDelay(p->pio_latency)
91{}
92
93void
94BasicPioDevice::addressRanges(AddrRangeList &range_list)
95{
96 assert(pioSize != 0);
97 range_list.clear();
56}
57
58
59PioDevice::PioDevice(const Params *p)
60 : MemObject(p), platform(p->platform), sys(p->system), pioPort(NULL)
61{}
62
63PioDevice::~PioDevice()

--- 28 unchanged lines hidden (view full) ---

92 pioDelay(p->pio_latency)
93{}
94
95void
96BasicPioDevice::addressRanges(AddrRangeList &range_list)
97{
98 assert(pioSize != 0);
99 range_list.clear();
100 DPRINTF(BusAddrRanges, "registering range: %#x-%#x\n", pioAddr, pioSize);
98 range_list.push_back(RangeSize(pioAddr, pioSize));
99}
100
101
102DmaPort::DmaPort(MemObject *dev, System *s, Tick min_backoff, Tick max_backoff)
103 : Port(dev->name() + "-dmaport", dev), device(dev), sys(s),
104 pendingCount(0), actionInProgress(0), drainEvent(NULL),
105 backoffTime(0), minBackoffDelay(min_backoff),

--- 239 unchanged lines hidden ---
101 range_list.push_back(RangeSize(pioAddr, pioSize));
102}
103
104
105DmaPort::DmaPort(MemObject *dev, System *s, Tick min_backoff, Tick max_backoff)
106 : Port(dev->name() + "-dmaport", dev), device(dev), sys(s),
107 pendingCount(0), actionInProgress(0), drainEvent(NULL),
108 backoffTime(0), minBackoffDelay(min_backoff),

--- 239 unchanged lines hidden ---