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;

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

251
252 void *txDmaData;
253 Addr txDmaAddr;
254 int txDmaLen;
255 bool doTxDmaRead();
256 bool doTxDmaWrite();
257
258 void rxDmaReadDone();
259 friend class EventWrapper<NSGigE, &NSGigE::rxDmaReadDone>;
260 EventWrapper<NSGigE, &NSGigE::rxDmaReadDone> rxDmaReadEvent;
261
262 void rxDmaWriteDone();
263 friend class EventWrapper<NSGigE, &NSGigE::rxDmaWriteDone>;
264 EventWrapper<NSGigE, &NSGigE::rxDmaWriteDone> rxDmaWriteEvent;
265
266 void txDmaReadDone();
267 friend class EventWrapper<NSGigE, &NSGigE::txDmaReadDone>;
268 EventWrapper<NSGigE, &NSGigE::txDmaReadDone> txDmaReadEvent;
269
270 void txDmaWriteDone();
271 friend class EventWrapper<NSGigE, &NSGigE::txDmaWriteDone>;
272 EventWrapper<NSGigE, &NSGigE::txDmaWriteDone> txDmaWriteEvent;
273
274 bool dmaDescFree;
275 bool dmaDataFree;
276
277 protected:
278 Tick txDelay;
279 Tick rxDelay;
280
281 void txReset();
282 void rxReset();
283 void regsReset();
284
285 void rxKick();
286 Tick rxKickTick;
287 typedef EventWrapper<NSGigE, &NSGigE::rxKick> RxKickEvent;
288 friend void RxKickEvent::process();
289 RxKickEvent rxKickEvent;
290
291 void txKick();
292 Tick txKickTick;
293 typedef EventWrapper<NSGigE, &NSGigE::txKick> TxKickEvent;
294 friend void TxKickEvent::process();
295 TxKickEvent txKickEvent;
296
297 void eepromKick();
298
299 /**
300 * Retransmit event
301 */
302 void transmit();
303 void txEventTransmit()
304 {
305 transmit();
306 if (txState == txFifoBlock)
307 txKick();
308 }
309 typedef EventWrapper<NSGigE, &NSGigE::txEventTransmit> TxEvent;
310 friend void TxEvent::process();
311 TxEvent txEvent;
312
313 void txDump() const;
314 void rxDump() const;
315
316 /**
317 * receive address filter
318 */
319 bool rxFilterEnable;

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

334
335 Tick intrDelay;
336 Tick intrTick;
337 bool cpuPendingIntr;
338 void cpuIntrPost(Tick when);
339 void cpuInterrupt();
340 void cpuIntrClear();
341
342 typedef EventWrapper<NSGigE, &NSGigE::cpuInterrupt> IntrEvent;
343 friend void IntrEvent::process();
344 IntrEvent *intrEvent;
345 NSGigEInt *interface;
346
347 public:
348 typedef NSGigEParams Params;
349 const Params *params() const {
350 return dynamic_cast<const Params *>(_params);
351 }
352

--- 40 unchanged lines hidden ---