etherbus.cc (11800:54436a1784dc) | etherbus.cc (12130:5e0dd4d7b730) |
---|---|
1/* 2 * Copyright (c) 2002-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; --- 38 unchanged lines hidden (view full) --- 47#include "dev/net/etherpkt.hh" 48#include "params/EtherBus.hh" 49#include "sim/core.hh" 50 51using namespace std; 52 53EtherBus::EtherBus(const Params *p) 54 : EtherObject(p), ticksPerByte(p->speed), loopback(p->loopback), | 1/* 2 * Copyright (c) 2002-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; --- 38 unchanged lines hidden (view full) --- 47#include "dev/net/etherpkt.hh" 48#include "params/EtherBus.hh" 49#include "sim/core.hh" 50 51using namespace std; 52 53EtherBus::EtherBus(const Params *p) 54 : EtherObject(p), ticksPerByte(p->speed), loopback(p->loopback), |
55 event(this), sender(0), dump(p->dump) | 55 event([this]{ txDone(); }, "ethernet bus completion"), 56 sender(0), dump(p->dump) |
56{ 57} 58 59void 60EtherBus::txDone() 61{ 62 devlist_t::iterator i = devlist.begin(); 63 devlist_t::iterator end = devlist.end(); --- 51 unchanged lines hidden --- | 57{ 58} 59 60void 61EtherBus::txDone() 62{ 63 devlist_t::iterator i = devlist.begin(); 64 devlist_t::iterator end = devlist.end(); --- 51 unchanged lines hidden --- |