Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FPGA Configuration Space
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
FPGA Configuration Space
Commits
5b287d1a
There was an error fetching the commit references. Please try again later.
Commit
5b287d1a
authored
12 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
Oops. Only write one width.
parent
c9973e18
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
driver/wishbone.c
+4
-4
4 additions, 4 deletions
driver/wishbone.c
with
4 additions
and
4 deletions
driver/wishbone.c
+
4
−
4
View file @
5b287d1a
...
@@ -40,10 +40,10 @@ static inline wb_data_t eb_to_cpu(unsigned char* x)
...
@@ -40,10 +40,10 @@ static inline wb_data_t eb_to_cpu(unsigned char* x)
static
inline
void
eb_from_cpu
(
unsigned
char
*
x
,
wb_data_t
dat
)
static
inline
void
eb_from_cpu
(
unsigned
char
*
x
,
wb_data_t
dat
)
{
{
switch
(
sizeof
(
wb_data_t
))
{
switch
(
sizeof
(
wb_data_t
))
{
case
8
:
*
(
wb_data_t
*
)
x
=
cpu_to_be64
(
dat
);
case
8
:
*
(
wb_data_t
*
)
x
=
cpu_to_be64
(
dat
);
break
;
case
4
:
*
(
wb_data_t
*
)
x
=
cpu_to_be32
(
dat
);
case
4
:
*
(
wb_data_t
*
)
x
=
cpu_to_be32
(
dat
);
break
;
case
2
:
*
(
wb_data_t
*
)
x
=
cpu_to_be16
(
dat
);
case
2
:
*
(
wb_data_t
*
)
x
=
cpu_to_be16
(
dat
);
break
;
case
1
:
*
(
wb_data_t
*
)
x
=
dat
;
case
1
:
*
(
wb_data_t
*
)
x
=
dat
;
break
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment