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
3afdfcba
Commit
3afdfcba
authored
Feb 09, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: detect 100T spec variant
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
92f3a560
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
speclib.c
tools/speclib.c
+3
-2
No files found.
tools/speclib.c
View file @
3afdfcba
...
...
@@ -67,9 +67,10 @@ static int spec_check_id(int bus, int dev)
fscanf
(
f
,
"%x"
,
&
vendor
);
fclose
(
f
);
if
(
device
==
PCI_DEVICE_ID_SPEC
&&
vendor
==
PCI_VENDOR_ID_CERN
)
if
(
vendor
==
PCI_VENDOR_ID_CERN
&&
device
==
PCI_DEVICE_ID_SPEC_45T
)
return
1
;
if
(
vendor
==
PCI_VENDOR_ID_CERN
&&
device
==
PCI_DEVICE_ID_SPEC_100T
)
return
1
;
if
(
device
==
PCI_DEVICE_ID_GN4124
&&
vendor
==
PCI_VENDOR_ID_GENNUM
)
return
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