Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FPGA Configuration Space
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FPGA Configuration Space
Commits
afae5412
Commit
afae5412
authored
Apr 28, 2016
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wishbone: in case hardware has a pending MSI on power-up, prime the Q!
parent
3d8fc88e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
wishbone.c
pcie-wb/wishbone.c
+5
-2
No files found.
pcie-wb/wishbone.c
View file @
afae5412
...
...
@@ -164,13 +164,12 @@ retry:
/* If no MSI handler, handle it immediately */
index
=
request
.
addr
/
((
wb
->
mask
/
WISHBONE_MAX_MSI_OPEN
)
+
1
);
if
(
!
wb
->
msi_map
[
index
]
)
{
if
(
!
(
context
=
wb
->
msi_map
[
index
])
)
{
wb
->
wops
->
reply
(
wb
,
1
,
~
(
wb_data_t
)
0
);
goto
retry
;
}
/* Fill in the MSI data */
context
=
wb
->
msi_map
[
index
];
wptr
=
&
context
->
msi
[
0
];
wptr
[
0
]
=
ETHERBONE_BCA
;
...
...
@@ -625,6 +624,10 @@ int wishbone_register(struct wishbone* wb)
list_add_tail
(
&
wb
->
list
,
list_pos
);
mutex_unlock
(
&
wishbone_mutex
);
/* Startup the MSI queue */
wishbone_slave_ready
(
wb
);
return
0
;
fail_master_cdev:
...
...
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