Deleted Added
sdiff udiff text old ( 11263:8dcc6b40f164 ) new ( 12087:0e082672ac6b )
full compact
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;

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

56 Tick intrDelay;
57 Tick intrTick;
58 bool cpuIntrEnable;
59 bool cpuPendingIntr;
60 void cpuIntrPost(Tick when);
61 void cpuInterrupt();
62 void cpuIntrClear();
63
64 typedef EventWrapper<Base, &Base::cpuInterrupt> IntrEvent;
65 friend void IntrEvent::process();
66 IntrEvent *intrEvent;
67 Interface *interface;
68
69 bool cpuIntrPending() const;
70 void cpuIntrAck() { cpuIntrClear(); }
71
72/**
73 * Serialization stuff
74 */

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

191 uint8_t *txDmaData;
192 int txDmaLen;
193
194 protected:
195 void reset();
196
197 void rxKick();
198 Tick rxKickTick;
199 typedef EventWrapper<Device, &Device::rxKick> RxKickEvent;
200 friend void RxKickEvent::process();
201
202 void txKick();
203 Tick txKickTick;
204 typedef EventWrapper<Device, &Device::txKick> TxKickEvent;
205 friend void TxKickEvent::process();
206
207 /**
208 * Retransmit event
209 */
210 void transmit();
211 void txEventTransmit()
212 {
213 transmit();
214 if (txState == txFifoBlock)
215 txKick();
216 }
217 typedef EventWrapper<Device, &Device::txEventTransmit> TxEvent;
218 friend void TxEvent::process();
219 TxEvent txEvent;
220
221 void txDump() const;
222 void rxDump() const;
223
224 /**
225 * receive address filter
226 */
227 bool rxFilter(const EthPacketPtr &packet);

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

240 void transferDone();
241 EtherInt *getEthPort(const std::string &if_name, int idx) override;
242
243/**
244 * DMA parameters
245 */
246 protected:
247 void rxDmaDone();
248 friend class EventWrapper<Device, &Device::rxDmaDone>;
249 EventWrapper<Device, &Device::rxDmaDone> rxDmaEvent;
250
251 void txDmaDone();
252 friend class EventWrapper<Device, &Device::txDmaDone>;
253 EventWrapper<Device, &Device::txDmaDone> txDmaEvent;
254
255 Tick dmaReadDelay;
256 Tick dmaReadFactor;
257 Tick dmaWriteDelay;
258 Tick dmaWriteFactor;
259
260/**
261 * Interrupt management

--- 66 unchanged lines hidden ---