Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 - Software
Commits
8e783ab4
Commit
8e783ab4
authored
Jan 09, 2019
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for CTRIE PTS
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
08b08c1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
speclib.c
tools/speclib.c
+3
-0
speclib.h
tools/speclib.h
+1
-0
No files found.
tools/speclib.c
View file @
8e783ab4
...
@@ -70,6 +70,9 @@ static int spec_check_id(int bus, int dev)
...
@@ -70,6 +70,9 @@ static int spec_check_id(int bus, int dev)
if
(
device
==
PCI_DEVICE_ID_SPEC
&&
vendor
==
PCI_VENDOR_ID_CERN
)
if
(
device
==
PCI_DEVICE_ID_SPEC
&&
vendor
==
PCI_VENDOR_ID_CERN
)
return
1
;
return
1
;
if
(
device
==
PCI_DEVICE_ID_CTRIE
&&
vendor
==
PCI_VENDOR_ID_CERN
)
return
1
;
if
(
device
==
PCI_DEVICE_ID_GN4124
&&
vendor
==
PCI_VENDOR_ID_GENNUM
)
if
(
device
==
PCI_DEVICE_ID_GN4124
&&
vendor
==
PCI_VENDOR_ID_GENNUM
)
return
1
;
return
1
;
...
...
tools/speclib.h
View file @
8e783ab4
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
#define PCI_DEVICE_ID_SPEC 0x018d
#define PCI_DEVICE_ID_SPEC 0x018d
#define PCI_VENDOR_ID_GENNUM 0x1a39
#define PCI_VENDOR_ID_GENNUM 0x1a39
#define PCI_DEVICE_ID_GN4124 0x0004
#define PCI_DEVICE_ID_GN4124 0x0004
#define PCI_DEVICE_ID_CTRIE 0x01ae
/* 'Opens' the SPEC card at PCI bus [bus], device/function [dev].
/* 'Opens' the SPEC card at PCI bus [bus], device/function [dev].
Returns a handle to the card or NULL in case of failure. */
Returns a handle to the card or NULL in case of failure. */
...
...
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