etherbus.hh (11263:8dcc6b40f164) etherbus.hh (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{
48 protected:
49 typedef std::list<EtherInt *> devlist_t;
50 devlist_t devlist;
51 double ticksPerByte;
52 bool loopback;
53
54 protected:
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{
48 protected:
49 typedef std::list<EtherInt *> devlist_t;
50 devlist_t devlist;
51 double ticksPerByte;
52 bool loopback;
53
54 protected:
55 class DoneEvent : public Event
56 {
57 protected:
58 EtherBus *bus;
59
60 public:
61 DoneEvent(EtherBus *b) : bus(b) {}
62 virtual void process() { bus->txDone(); }
63 virtual const char *description() const
64 { return "ethernet bus completion"; }
65 };
66
67 DoneEvent event;
55 EventFunctionWrapper event;
68 EthPacketPtr packet;
69 EtherInt *sender;
70 EtherDump *dump;
71
72 public:
73 typedef EtherBusParams Params;
74 EtherBus(const Params *p);
75 virtual ~EtherBus() {}

--- 15 unchanged lines hidden ---
56 EthPacketPtr packet;
57 EtherInt *sender;
58 EtherDump *dump;
59
60 public:
61 typedef EtherBusParams Params;
62 EtherBus(const Params *p);
63 virtual ~EtherBus() {}

--- 15 unchanged lines hidden ---