37 namespace CopyEngineReg {
79 #define ADD_FIELD8(NAME, OFFSET, BITS) \
80 inline uint8_t NAME() { return bits(_data, OFFSET+BITS-1, OFFSET); } \
81 inline void NAME(uint8_t d) { replaceBits(_data, OFFSET+BITS-1, OFFSET,d); }
83 #define ADD_FIELD16(NAME, OFFSET, BITS) \
84 inline uint16_t NAME() { return bits(_data, OFFSET+BITS-1, OFFSET); } \
85 inline void NAME(uint16_t d) { replaceBits(_data, OFFSET+BITS-1, OFFSET,d); }
87 #define ADD_FIELD32(NAME, OFFSET, BITS) \
88 inline uint32_t NAME() { return bits(_data, OFFSET+BITS-1, OFFSET); } \
89 inline void NAME(uint32_t d) { replaceBits(_data, OFFSET+BITS-1, OFFSET,d); }
91 #define ADD_FIELD64(NAME, OFFSET, BITS) \
92 inline uint64_t NAME() { return bits(_data, OFFSET+BITS-1, OFFSET); } \
93 inline void NAME(uint64_t d) { replaceBits(_data, OFFSET+BITS-1, OFFSET,d); }
const uint32_t CHAN_CHAINADDR_HIGH
const uint32_t CHAN_CHAINADDR
ADD_FIELD64(dma_transfer_status, 0, 3)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
const uint32_t DESC_CTRL_CP_STS
const uint32_t CHAN_CMPLNADDR_HIGH
const uint32_t CHAN_CMPLNADDR_LOW
const uint32_t CHAN_STATUS
const uint32_t DESC_CTRL_FRAME
ADD_FIELD8(start_dma, 0, 1)
void serialize(CheckpointOut &cp) const override
Serialize an object.
const uint32_t GEN_XFERCAP
#define UNSERIALIZE_SCALAR(scalar)
void serialize(CheckpointOut &cp) const override
Serialize an object.
void paramOut(CheckpointOut &cp, const string &name, ExtMachInst const &machInst)
const uint32_t CHAN_CONTROL
ADD_FIELD16(interrupt_disable, 0, 1)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
const uint32_t DESC_CTRL_NULL
Basic support for object serialization.
const uint32_t DESC_CTRL_SRC_SN
void serialize(CheckpointOut &cp) const
const uint32_t CHAN_COMMAND
#define SERIALIZE_SCALAR(scalar)
const uint32_t GEN_ATTNSTATUS
const uint32_t DESC_CTRL_DST_SN
std::ostream CheckpointOut
const uint32_t GEN_CHANCOUNT
ADD_FIELD32(source_addr_error, 0, 1)
const uint32_t CHAN_ERROR
const uint32_t GEN_INTRCTRL
void paramIn(CheckpointIn &cp, const string &name, ExtMachInst &machInst)
ADD_FIELD8(master_int_enable, 0, 1)
const uint32_t DESC_CTRL_INT_GEN
const uint32_t CHAN_CHAINADDR_LOW
void unserialize(CheckpointIn &cp)
const Reg< T > & operator=(T d)
const uint32_t CHAN_CMPLNADDR
void unserialize(CheckpointIn &cp) override
Unserialize an object.