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
895dd2ce
Commit
895dd2ce
authored
Aug 28, 2020
by
Antoine Kaufmann
Browse files
i40e: add some more RO registers
parent
f00a5df4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
i40e_bm/i40e_bm.cc
i40e_bm/i40e_bm.cc
+28
-0
No files found.
i40e_bm/i40e_bm.cc
View file @
895dd2ce
...
@@ -172,6 +172,10 @@ uint32_t i40e_bm::reg_mem_read32(uint64_t addr)
...
@@ -172,6 +172,10 @@ uint32_t i40e_bm::reg_mem_read32(uint64_t addr)
val
=
regs
.
glgen_rstctl
;
val
=
regs
.
glgen_rstctl
;
break
;
break
;
case
I40E_GLVFGEN_TIMER
:
val
=
runner
->
time_ps
()
/
1000000
;
break
;
case
I40E_PFINT_LNKLST0
:
case
I40E_PFINT_LNKLST0
:
val
=
regs
.
pfint_lnklst0
;
val
=
regs
.
pfint_lnklst0
;
break
;
break
;
...
@@ -215,6 +219,30 @@ uint32_t i40e_bm::reg_mem_read32(uint64_t addr)
...
@@ -215,6 +219,30 @@ uint32_t i40e_bm::reg_mem_read32(uint64_t addr)
break
;
break
;
case
I40E_GLHMC_LANTXOBJSZ
:
val
=
7
;
// 128 B
break
;
case
I40E_GLHMC_LANQMAX
:
val
=
NUM_QUEUES
;
break
;
case
I40E_GLHMC_LANRXOBJSZ
:
val
=
5
;
// 32 B
break
;
case
I40E_GLHMC_FCOEMAX
:
val
=
0
;
break
;
case
I40E_GLHMC_FCOEDDPOBJSZ
:
val
=
0
;
break
;
case
I40E_GLHMC_FCOEFMAX
:
val
=
0
;
break
;
case
I40E_GLHMC_FCOEFOBJSZ
:
val
=
0
;
break
;
case
I40E_PF_ATQBAL
:
case
I40E_PF_ATQBAL
:
val
=
regs
.
pf_atqba
;
val
=
regs
.
pf_atqba
;
break
;
break
;
...
...
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