Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
White Rabbit core collection
Commits
10dff03a
Commit
10dff03a
authored
Aug 04, 2016
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrsw_nic: fix indentation in *.wb file
parent
7f520434
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
385 additions
and
398 deletions
+385
-398
wr_nic.wb
modules/wrsw_nic/wr_nic.wb
+385
-398
No files found.
modules/wrsw_nic/wr_nic.wb
View file @
10dff03a
...
...
@@ -137,7 +137,6 @@ top = peripheral {
load = LOAD_EXT;
};
field {
align = 8;
name = "Current TX descriptor";
...
...
@@ -245,9 +244,7 @@ top = peripheral {
};
TX_desc_template =
{
TX_desc_template = {
reg {
name = "TX Descriptor %d register 1";
...
...
@@ -265,7 +262,6 @@ TX_desc_template =
access_bus = READ_WRITE;
access_dev = READ_WRITE;
load = LOAD_EXT;
};
field {
...
...
@@ -276,7 +272,6 @@ TX_desc_template =
type = BIT;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
field {
...
...
@@ -410,8 +405,6 @@ RX_desc_template = {
};
};
reg {
name = "RX Descriptor %d register 2";
prefix = "rx%d_d2";
...
...
@@ -437,10 +430,10 @@ RX_desc_template = {
};
};
reg {
name = "RX Descriptor %d register 3";
prefix = "rx%d_d3";
field {
name = "Offset in packet RAM (in bytes, 32-bit aligned)";
prefix = "offset";
...
...
@@ -461,8 +454,8 @@ RX_desc_template = {
load = LOAD_EXT;
};
};
};
};
function generate_descriptors(n)
...
...
@@ -471,21 +464,18 @@ function generate_descriptors(n)
for i=1,n do
local T=deepcopy(TX_desc_template);
foreach_reg({TYPE_REG}, function(r)
r.name = string.format(r.name, i);
r.prefix = string.format(r.prefix, i);
print(r.name)
end, T);
table_join(periph, T);
end
for i=1,n do
local T=deepcopy(RX_desc_template);
foreach_reg({TYPE_REG}, function(r)
r.name = string.format(r.name, i);
r.prefix = string.format(r.prefix, i);
...
...
@@ -494,9 +484,6 @@ function generate_descriptors(n)
table_join(periph, T);
end
end
--generate_descriptors(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