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
6b97ce18
Commit
6b97ce18
authored
Sep 01, 2020
by
Antoine Kaufmann
Browse files
i40e: add icr0 register
parent
bdf29016
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
i40e_bm/i40e_bm.cc
i40e_bm/i40e_bm.cc
+9
-0
i40e_bm/i40e_bm.h
i40e_bm/i40e_bm.h
+1
-0
No files found.
i40e_bm/i40e_bm.cc
View file @
6b97ce18
...
...
@@ -212,6 +212,12 @@ uint32_t i40e_bm::reg_mem_read32(uint64_t addr)
val
=
regs
.
pfint_icr0_ena
;
break
;
case
I40E_PFINT_ICR0
:
val
=
regs
.
pfint_icr0
;
// read clears
regs
.
pfint_icr0
=
0
;
break
;
case
I40E_GLPCI_CNF2
:
val
=
((
NUM_PFINTS
-
2
)
<<
I40E_GLPCI_CNF2_MSI_X_PF_N_SHIFT
)
|
(
2
<<
I40E_GLPCI_CNF2_MSI_X_VF_N_SHIFT
);
/* that is ugly,
...
...
@@ -439,6 +445,9 @@ void i40e_bm::reg_mem_write32(uint64_t addr, uint32_t val)
case
I40E_PFINT_ICR0_ENA
:
regs
.
pfint_icr0_ena
=
val
;
break
;
case
I40E_PFINT_ICR0
:
regs
.
pfint_icr0
=
val
;
break
;
case
I40E_PFHMC_SDCMD
:
regs
.
pfhmc_sdcmd
=
val
;
...
...
i40e_bm/i40e_bm.h
View file @
6b97ce18
...
...
@@ -265,6 +265,7 @@ protected:
uint32_t
gllan_rctl_0
;
uint32_t
pfint_lnklst0
;
uint32_t
pfint_icr0_ena
;
uint32_t
pfint_icr0
;
uint32_t
pfint_dyn_ctln
[
NUM_PFINTS
-
1
];
uint32_t
pfint_lnklstn
[
NUM_PFINTS
-
1
];
...
...
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