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
34bd0020
Commit
34bd0020
authored
Feb 13, 2019
by
Dimitris Lampridis
Committed by
Federico Vaga
Feb 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for SPEC 150T variant
parent
18a65903
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
spec-pci.c
kernel/spec-pci.c
+4
-0
spec.h
kernel/spec.h
+1
-0
No files found.
kernel/spec-pci.c
View file @
34bd0020
...
...
@@ -30,6 +30,7 @@
static
char
*
spec_fw_name_45t
=
"fmc/spec-init.bin"
;
static
char
*
spec_fw_name_100t
=
"fmc/spec-init-100T.bin"
;
static
char
*
spec_fw_name_150t
=
"fmc/spec-init-150T.bin"
;
char
*
spec_fw_name
=
""
;
module_param_named
(
fw_name
,
spec_fw_name
,
charp
,
0444
);
...
...
@@ -48,6 +49,8 @@ static char *spec_golden_name_get(unsigned int device_id)
return
spec_fw_name_45t
;
case
PCI_DEVICE_ID_SPEC_100T
:
return
spec_fw_name_100t
;
case
PCI_DEVICE_ID_SPEC_150T
:
return
spec_fw_name_150t
;
}
return
NULL
;
}
...
...
@@ -323,6 +326,7 @@ static void spec_remove(struct pci_dev *pdev)
static
const
struct
pci_device_id
spec_idtable
[]
=
{
{
PCI_DEVICE
(
PCI_VENDOR_ID_CERN
,
PCI_DEVICE_ID_SPEC_45T
)
},
{
PCI_DEVICE
(
PCI_VENDOR_ID_CERN
,
PCI_DEVICE_ID_SPEC_100T
)
},
{
PCI_DEVICE
(
PCI_VENDOR_ID_CERN
,
PCI_DEVICE_ID_SPEC_150T
)
},
{
PCI_DEVICE
(
PCI_VENDOR_ID_GENNUM
,
PCI_DEVICE_ID_GN4124
)
},
{
0
,},
};
...
...
kernel/spec.h
View file @
34bd0020
...
...
@@ -19,6 +19,7 @@
#define PCI_VENDOR_ID_CERN 0x10dc
#define PCI_DEVICE_ID_SPEC_45T 0x018d
#define PCI_DEVICE_ID_SPEC_100T 0x01a2
#define PCI_DEVICE_ID_SPEC_150T 0x01a3
#define PCI_VENDOR_ID_GENNUM 0x1a39
#define PCI_DEVICE_ID_GN4124 0x0004
...
...
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