Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Network Interface Card
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
White Rabbit Network Interface Card
Commits
116dd5d4
Commit
116dd5d4
authored
Jun 12, 2012
by
Tomasz Wlostowski
Committed by
Miguel Jimenez Lopez
Sep 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/wbgen-regs: NIC register layout fixed (was generated from wrong .wb file)
parent
b23c2b94
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
123 additions
and
178 deletions
+123
-178
nic-regs.h
kernel/wbgen-regs/nic-regs.h
+112
-118
nic-regs.wb
kernel/wbgen-regs/nic-regs.wb
+11
-60
No files found.
kernel/wbgen-regs/nic-regs.h
View file @
116dd5d4
This diff is collapsed.
Click to expand it.
kernel/wbgen-regs/nic-regs.wb
View file @
116dd5d4
...
@@ -92,57 +92,6 @@ top = peripheral {
...
@@ -92,57 +92,6 @@ top = peripheral {
access_dev = READ_WRITE;
access_dev = READ_WRITE;
load = LOAD_EXT;
load = LOAD_EXT;
};
};
field {
name = "Transmission done";
prefix = "tx_done";
description = "read 1: All non-empty TX descriptors have been transmitted\
read 0: Transmission in progress\
write 1: Clears the flag\
write 0: No effect";
type = BIT;
access_bus = READ_WRITE;
access_dev = READ_WRITE;
load = LOAD_EXT;
};
field {
name = "Transmission error";
prefix = "tx_error";
description = "read 1: A TX error occured and the transmission was stopped. CUR_TX_DESC is pointing the TX descriptor for which the error occured\
read 0: No TX error\
write 1: Clears the flag\
write 0: No effect";
type = BIT;
access_bus = READ_WRITE;
access_dev = READ_WRITE;
load = LOAD_EXT;
};
field {
align = 8;
name = "Current TX descriptor";
size = 3;
prefix = "cur_TX_Desc";
description = "Index of the currently handled TX descriptor";
type = SLV;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
field {
align = 8;
name = "Current RX descriptor";
size = 3;
prefix = "cur_RX_DESC";
description = "Index of the currently handled RX descriptor";
type = SLV;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
};
};
...
@@ -160,7 +109,6 @@ top = peripheral {
...
@@ -160,7 +109,6 @@ top = peripheral {
irq {
irq {
name = "Receive Complete";
name = "Receive Complete";
prefix = "rcomp";
prefix = "rcomp";
ack_line = true;
description = "A frame has been stored in memory.";
description = "A frame has been stored in memory.";
trigger = LEVEL_1;
trigger = LEVEL_1;
};
};
...
@@ -168,17 +116,20 @@ top = peripheral {
...
@@ -168,17 +116,20 @@ top = peripheral {
irq {
irq {
name = "Transmit Complete";
name = "Transmit Complete";
prefix = "tcomp";
prefix = "tcomp";
ack_line = true;
mask_line = true;
description = "Frame successfully transmitted";
description = "Frame successfully transmitted";
trigger = LEVEL_1;
trigger = LEVEL_1;
};
};
irq {
name = "Receive Error";
prefix = "rxerr";
description = "Receive Error";
trigger = LEVEL_1;
};
irq {
irq {
name = "Transmit Error";
name = "Transmit Error";
prefix = "txerr";
prefix = "txerr";
ack_line = true;
mask_line = true;
trigger = LEVEL_1;
trigger = LEVEL_1;
};
};
...
@@ -287,7 +238,7 @@ TX_desc_template =
...
@@ -287,7 +238,7 @@ TX_desc_template =
name = "offset in RAM--in bytes, must be aligned to 32-bit boundary";
name = "offset in RAM--in bytes, must be aligned to 32-bit boundary";
prefix = "offset";
prefix = "offset";
type = SLV;
type = SLV;
size = 1
3
;
size = 1
6
;
access_bus = READ_WRITE;
access_bus = READ_WRITE;
access_dev = READ_ONLY;
access_dev = READ_ONLY;
};
};
...
@@ -296,7 +247,7 @@ TX_desc_template =
...
@@ -296,7 +247,7 @@ TX_desc_template =
name = "Length of buffer--in bytes. Least significant bit must always be 0 (the packet size must be divisible by 2)";
name = "Length of buffer--in bytes. Least significant bit must always be 0 (the packet size must be divisible by 2)";
prefix = "len";
prefix = "len";
type = SLV;
type = SLV;
size = 1
3
;
size = 1
6
;
align = 16;
align = 16;
access_bus = READ_WRITE;
access_bus = READ_WRITE;
access_dev = READ_ONLY;
access_dev = READ_ONLY;
...
@@ -415,7 +366,7 @@ RX_desc_template = {
...
@@ -415,7 +366,7 @@ RX_desc_template = {
name = "Offset in packet RAM (in bytes, 32-bit aligned)";
name = "Offset in packet RAM (in bytes, 32-bit aligned)";
prefix = "offset";
prefix = "offset";
type = SLV;
type = SLV;
size = 1
3
;
size = 1
6
;
access_bus = READ_WRITE;
access_bus = READ_WRITE;
access_dev = READ_ONLY;
access_dev = READ_ONLY;
},
},
...
@@ -424,7 +375,7 @@ RX_desc_template = {
...
@@ -424,7 +375,7 @@ RX_desc_template = {
name = "Length of buffer in bytes. After reception of the packet, it's updated with the length of the received packet.";
name = "Length of buffer in bytes. After reception of the packet, it's updated with the length of the received packet.";
prefix = "len";
prefix = "len";
type = SLV;
type = SLV;
size = 1
3
;
size = 1
6
;
align = 16;
align = 16;
access_bus = READ_WRITE;
access_bus = READ_WRITE;
access_dev = READ_WRITE;
access_dev = READ_WRITE;
...
...
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