Commit ac9eb141 authored by Jialin Li's avatar Jialin Li
Browse files

add a few register reads

parent 42a5bc41
......@@ -381,8 +381,14 @@ Corundum::readReg(addr_t addr)
return 0x800000;
case IF_REG_PORT_STRIDE:
return 0x200000;
case EVENT_QUEUE_HEAD_PTR_REG:
return this->eqRing.headPtr();
case TX_QUEUE_ACTIVE_LOG_SIZE_REG:
return this->txRing.sizeLog();
case TX_QUEUE_TAIL_PTR_REG:
return this->txRing.tailPtr();
case TX_CPL_QUEUE_HEAD_PTR_REG:
return this->txCplRing.headPtr();
case PORT_REG_PORT_ID:
return this->port.id();
case PORT_REG_PORT_FEATURES:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment