ns_gige.hh (11263:8dcc6b40f164) | ns_gige.hh (12087:0e082672ac6b) |
---|---|
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(); | 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; | 259 EventFunctionWrapper rxDmaReadEvent; |
261 262 void rxDmaWriteDone(); | 260 261 void rxDmaWriteDone(); |
263 friend class EventWrapper<NSGigE, &NSGigE::rxDmaWriteDone>; 264 EventWrapper<NSGigE, &NSGigE::rxDmaWriteDone> rxDmaWriteEvent; | 262 EventFunctionWrapper rxDmaWriteEvent; |
265 266 void txDmaReadDone(); | 263 264 void txDmaReadDone(); |
267 friend class EventWrapper<NSGigE, &NSGigE::txDmaReadDone>; 268 EventWrapper<NSGigE, &NSGigE::txDmaReadDone> txDmaReadEvent; | 265 EventFunctionWrapper txDmaReadEvent; |
269 270 void txDmaWriteDone(); | 266 267 void txDmaWriteDone(); |
271 friend class EventWrapper<NSGigE, &NSGigE::txDmaWriteDone>; 272 EventWrapper<NSGigE, &NSGigE::txDmaWriteDone> txDmaWriteEvent; | 268 EventFunctionWrapper 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; | 269 270 bool dmaDescFree; 271 bool dmaDataFree; 272 273 protected: 274 Tick txDelay; 275 Tick rxDelay; 276 277 void txReset(); 278 void rxReset(); 279 void regsReset(); 280 281 void rxKick(); 282 Tick rxKickTick; |
287 typedef EventWrapper<NSGigE, &NSGigE::rxKick> RxKickEvent; 288 friend void RxKickEvent::process(); 289 RxKickEvent rxKickEvent; | 283 EventFunctionWrapper rxKickEvent; |
290 291 void txKick(); 292 Tick txKickTick; | 284 285 void txKick(); 286 Tick txKickTick; |
293 typedef EventWrapper<NSGigE, &NSGigE::txKick> TxKickEvent; 294 friend void TxKickEvent::process(); 295 TxKickEvent txKickEvent; | 287 EventFunctionWrapper 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 } | 288 289 void eepromKick(); 290 291 /** 292 * Retransmit event 293 */ 294 void transmit(); 295 void txEventTransmit() 296 { 297 transmit(); 298 if (txState == txFifoBlock) 299 txKick(); 300 } |
309 typedef EventWrapper<NSGigE, &NSGigE::txEventTransmit> TxEvent; 310 friend void TxEvent::process(); 311 TxEvent txEvent; | 301 EventFunctionWrapper 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 | 302 303 void txDump() const; 304 void rxDump() const; 305 306 /** 307 * receive address filter 308 */ 309 bool rxFilterEnable; --- 14 unchanged lines hidden (view full) --- 324 325 Tick intrDelay; 326 Tick intrTick; 327 bool cpuPendingIntr; 328 void cpuIntrPost(Tick when); 329 void cpuInterrupt(); 330 void cpuIntrClear(); 331 |
342 typedef EventWrapper<NSGigE, &NSGigE::cpuInterrupt> IntrEvent; 343 friend void IntrEvent::process(); 344 IntrEvent *intrEvent; | 332 EventFunctionWrapper *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 --- | 333 NSGigEInt *interface; 334 335 public: 336 typedef NSGigEParams Params; 337 const Params *params() const { 338 return dynamic_cast<const Params *>(_params); 339 } 340 --- 40 unchanged lines hidden --- |