diff options
author | Lisa Hsu <hsul@eecs.umich.edu> | 2004-06-11 15:26:21 -0400 |
---|---|---|
committer | Lisa Hsu <hsul@eecs.umich.edu> | 2004-06-11 15:26:21 -0400 |
commit | e5dba1642b8a012875bbe81dc8605b123ae66920 (patch) | |
tree | 4e20799b633e2a848c1b98a4ef72b8271166342d /dev/ns_gige.hh | |
parent | 30ece6cf7836fae31cbb253b637e5cc75d84a6cd (diff) | |
download | gem5-e5dba1642b8a012875bbe81dc8605b123ae66920.tar.xz |
fix serialization
dev/ns_gige.cc:
fix serialization and move regsReset into the cc file
dev/ns_gige.hh:
put regsReset into cc instead of here in hh
--HG--
extra : convert_revision : 3a8796fa583e0765503104a9dbe28cc69f1a8fa9
Diffstat (limited to 'dev/ns_gige.hh')
-rw-r--r-- | dev/ns_gige.hh | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/dev/ns_gige.hh b/dev/ns_gige.hh index 9466e8930..31068e3d8 100644 --- a/dev/ns_gige.hh +++ b/dev/ns_gige.hh @@ -158,12 +158,14 @@ class NSGigE : public PciDev dp_regs regs; dp_rom rom; - /*** BASIC STRUCTURES FOR TX/RX ***/ + /*** BASIC STRUCTURES FOR TX/RX ***/ /* Data FIFOs */ pktbuf_t txFifo; pktbuf_t rxFifo; /** various helper vars */ + PacketPtr txPacket; + PacketPtr rxPacket; uint8_t *txPacketBufPtr; uint8_t *rxPacketBufPtr; uint32_t txXferLen; @@ -171,8 +173,6 @@ class NSGigE : public PciDev uint32_t txPktXmitted; bool rxDmaFree; bool txDmaFree; - PacketPtr txPacket; - PacketPtr rxPacket; /** DescCaches */ ns_desc txDescCache; @@ -261,18 +261,7 @@ class NSGigE : public PciDev void txReset(); void rxReset(); - void regsReset() { - memset(®s, 0, sizeof(regs)); - regs.config = 0x80000000; - regs.mear = 0x12; - regs.isr = 0x00608000; - regs.txcfg = 0x120; - regs.rxcfg = 0x4; - regs.srr = 0x0103; - regs.mibc = 0x2; - regs.vdr = 0x81; - regs.tesr = 0xc000; - } + void regsReset(); void rxKick(); Tick rxKickTick; |