Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
ac9eb141
Commit
ac9eb141
authored
Jun 16, 2020
by
Jialin Li
Browse files
add a few register reads
parent
42a5bc41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
corundum_bm/corundum_bm.cc
corundum_bm/corundum_bm.cc
+6
-0
No files found.
corundum_bm/corundum_bm.cc
View file @
ac9eb141
...
@@ -381,8 +381,14 @@ Corundum::readReg(addr_t addr)
...
@@ -381,8 +381,14 @@ Corundum::readReg(addr_t addr)
return
0x800000
;
return
0x800000
;
case
IF_REG_PORT_STRIDE
:
case
IF_REG_PORT_STRIDE
:
return
0x200000
;
return
0x200000
;
case
EVENT_QUEUE_HEAD_PTR_REG
:
return
this
->
eqRing
.
headPtr
();
case
TX_QUEUE_ACTIVE_LOG_SIZE_REG
:
case
TX_QUEUE_ACTIVE_LOG_SIZE_REG
:
return
this
->
txRing
.
sizeLog
();
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
:
case
PORT_REG_PORT_ID
:
return
this
->
port
.
id
();
return
this
->
port
.
id
();
case
PORT_REG_PORT_FEATURES
:
case
PORT_REG_PORT_FEATURES
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment