io_device.hh (4435:7da241055348) | io_device.hh (4475:fb185cc1c845) |
---|---|
1/* 2 * Copyright (c) 2004-2005 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; --- 45 unchanged lines hidden (view full) --- 54{ 55 protected: 56 /** The device that this port serves. */ 57 PioDevice *device; 58 59 virtual Tick recvAtomic(PacketPtr pkt); 60 61 virtual void getDeviceAddressRanges(AddrRangeList &resp, | 1/* 2 * Copyright (c) 2004-2005 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; --- 45 unchanged lines hidden (view full) --- 54{ 55 protected: 56 /** The device that this port serves. */ 57 PioDevice *device; 58 59 virtual Tick recvAtomic(PacketPtr pkt); 60 61 virtual void getDeviceAddressRanges(AddrRangeList &resp, |
62 AddrRangeList &snoop); | 62 bool &snoop); |
63 64 public: 65 66 PioPort(PioDevice *dev, System *s, std::string pname = "-pioport"); 67}; 68 69 70class DmaPort : public Port --- 51 unchanged lines hidden (view full) --- 122 { panic("dma port shouldn't be used for pio access."); } 123 124 virtual void recvStatusChange(Status status) 125 { ; } 126 127 virtual void recvRetry() ; 128 129 virtual void getDeviceAddressRanges(AddrRangeList &resp, | 63 64 public: 65 66 PioPort(PioDevice *dev, System *s, std::string pname = "-pioport"); 67}; 68 69 70class DmaPort : public Port --- 51 unchanged lines hidden (view full) --- 122 { panic("dma port shouldn't be used for pio access."); } 123 124 virtual void recvStatusChange(Status status) 125 { ; } 126 127 virtual void recvRetry() ; 128 129 virtual void getDeviceAddressRanges(AddrRangeList &resp, |
130 AddrRangeList &snoop) 131 { resp.clear(); snoop.clear(); } | 130 bool &snoop) 131 { resp.clear(); snoop = false; } |
132 133 void queueDma(PacketPtr pkt, bool front = false); 134 void sendDma(); 135 136 /** event to give us a kick every time we backoff time is reached. */ 137 EventWrapper<DmaPort, &DmaPort::sendDma> backoffEvent; 138 139 public: --- 178 unchanged lines hidden --- | 132 133 void queueDma(PacketPtr pkt, bool front = false); 134 void sendDma(); 135 136 /** event to give us a kick every time we backoff time is reached. */ 137 EventWrapper<DmaPort, &DmaPort::sendDma> backoffEvent; 138 139 public: --- 178 unchanged lines hidden --- |