Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
7312da3c
Commit
7312da3c
authored
Feb 21, 2017
by
Alessandro Rubini
Committed by
Adam Wujek
Feb 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minic: assert tx fifo is not full
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
3b630300
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
minic.c
dev/minic.c
+3
-1
No files found.
dev/minic.c
View file @
7312da3c
...
...
@@ -11,6 +11,7 @@
#include <string.h>
#include <wrc.h>
#include <wrpc.h>
#include <assert.h>
#include "types.h"
#include "board.h"
...
...
@@ -269,8 +270,9 @@ int minic_tx_frame(struct wr_ethhdr_vlan *hdr, uint8_t *payload, uint32_t size,
minic_txword
(
WRF_OOB
,
WRPC_FID
);
}
/* Start sending the frame */
/* Start sending the frame
, and while we read mcr check for fifo full
*/
mcr
=
minic_readl
(
MINIC_REG_MCR
);
assert
((
mcr
&
MINIC_MCR_TX_FULL
)
==
0
,
"Minic tx fifo full"
);
minic_writel
(
MINIC_REG_MCR
,
mcr
|
MINIC_MCR_TX_START
);
/* wait for the DMA to finish */
...
...
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