Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
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 PCIe FMC carrier SPEC
Commits
94bf3e4e
Commit
94bf3e4e
authored
Jul 30, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdl|sw: update spec-base version for next release
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
decbfd2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
spec_base_wr.vhd
hdl/rtl/spec_base_wr.vhd
+1
-1
spec-core-fpga.c
software/kernel/spec-core-fpga.c
+2
-1
spec.h
software/kernel/spec.h
+1
-1
No files found.
hdl/rtl/spec_base_wr.vhd
View file @
94bf3e4e
...
@@ -604,7 +604,7 @@ begin -- architecture top
...
@@ -604,7 +604,7 @@ begin -- architecture top
metadata_data
<=
x"53504543"
;
metadata_data
<=
x"53504543"
;
when
x"2"
=>
when
x"2"
=>
-- Version
-- Version
metadata_data
<=
x"0
104000d
"
;
metadata_data
<=
x"0
2000000
"
;
when
x"3"
=>
when
x"3"
=>
-- BOM
-- BOM
metadata_data
<=
x"fffe0000"
;
metadata_data
<=
x"fffe0000"
;
...
...
software/kernel/spec-core-fpga.c
View file @
94bf3e4e
...
@@ -1128,6 +1128,7 @@ static void spec_fpga_app_exit(struct spec_fpga *spec_fpga)
...
@@ -1128,6 +1128,7 @@ static void spec_fpga_app_exit(struct spec_fpga *spec_fpga)
static
bool
spec_fpga_is_valid
(
struct
spec_gn412x
*
spec_gn412x
,
static
bool
spec_fpga_is_valid
(
struct
spec_gn412x
*
spec_gn412x
,
struct
spec_meta_id
*
meta
)
struct
spec_meta_id
*
meta
)
{
{
if
((
meta
->
bom
&
SPEC_META_BOM_END_MASK
)
!=
SPEC_META_BOM_LE
)
{
if
((
meta
->
bom
&
SPEC_META_BOM_END_MASK
)
!=
SPEC_META_BOM_LE
)
{
dev_err
(
&
spec_gn412x
->
pdev
->
dev
,
dev_err
(
&
spec_gn412x
->
pdev
->
dev
,
"Expected Little Endian devices BOM: 0x%x
\n
"
,
"Expected Little Endian devices BOM: 0x%x
\n
"
,
...
@@ -1150,7 +1151,7 @@ static bool spec_fpga_is_valid(struct spec_gn412x *spec_gn412x,
...
@@ -1150,7 +1151,7 @@ static bool spec_fpga_is_valid(struct spec_gn412x *spec_gn412x,
return
false
;
return
false
;
}
}
if
((
meta
->
version
&
SPEC_META_VERSION_MASK
)
!=
SPEC_META_VERSION_
1_4
)
{
if
((
meta
->
version
&
SPEC_META_VERSION_MASK
)
!=
SPEC_META_VERSION_
2_0
)
{
dev_err
(
&
spec_gn412x
->
pdev
->
dev
,
dev_err
(
&
spec_gn412x
->
pdev
->
dev
,
"Unknow version: %08x
\n
"
,
meta
->
version
);
"Unknow version: %08x
\n
"
,
meta
->
version
);
return
false
;
return
false
;
...
...
software/kernel/spec.h
View file @
94bf3e4e
...
@@ -85,7 +85,7 @@ enum {
...
@@ -85,7 +85,7 @@ enum {
#define SPEC_META_BOM_END_MASK 0xFFFF0000
#define SPEC_META_BOM_END_MASK 0xFFFF0000
#define SPEC_META_BOM_VER_MASK 0x0000FFFF
#define SPEC_META_BOM_VER_MASK 0x0000FFFF
#define SPEC_META_VERSION_MASK 0xFFFF0000
#define SPEC_META_VERSION_MASK 0xFFFF0000
#define SPEC_META_VERSION_
1_4 0x0104
0000
#define SPEC_META_VERSION_
2_0 0x0200
0000
/**
/**
* struct spec_meta_id Metadata
* struct spec_meta_id Metadata
...
...
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