Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
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
Simple VME FMC Carrier SVEC
Commits
e356c034
Commit
e356c034
authored
Sep 11, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: fix app_id build
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
44fd8dba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
svec-core-fpga.c
software/kernel/svec-core-fpga.c
+4
-4
No files found.
software/kernel/svec-core-fpga.c
View file @
e356c034
...
...
@@ -590,16 +590,16 @@ static int svec_fmc_exit(struct svec_fpga *svec_fpga)
/**
* Build the platform_device_id->name from metadata
*
* The byte order on SVEC is
little
endian, but we want to convert it
* in string. Use
big-endian read to swap word and get
the string order
* The byte order on SVEC is
big
endian, but we want to convert it
* in string. Use
little-endian read to keep
the string order
* from MSB to LSB
*/
static
int
svec_fpga_app_id_build
(
struct
svec_fpga
*
svec_fpga
,
unsigned
long
app_off
,
char
*
id
,
unsigned
int
size
)
{
uint32_t
vendor
=
ioread32
be
(
svec_fpga
->
fpga
+
app_off
+
FPGA_META_VENDOR
);
uint32_t
device
=
ioread32
be
(
svec_fpga
->
fpga
+
app_off
+
FPGA_META_DEVICE
);
uint32_t
vendor
=
ioread32
(
svec_fpga
->
fpga
+
app_off
+
FPGA_META_VENDOR
);
uint32_t
device
=
ioread32
(
svec_fpga
->
fpga
+
app_off
+
FPGA_META_DEVICE
);
memset
(
id
,
0
,
size
);
if
(
vendor
==
0xFF000000
)
{
...
...
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