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
92f3a560
Commit
92f3a560
authored
Feb 08, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: detect 100T spec variant
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
0598de40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
spec-pci.c
kernel/spec-pci.c
+3
-2
spec.h
kernel/spec.h
+3
-2
speclib.h
tools/speclib.h
+5
-1
No files found.
kernel/spec-pci.c
View file @
92f3a560
...
...
@@ -171,7 +171,7 @@ static void spec_destroy_misc_device(struct spec_dev *spec)
/* * * * * * END MISC DEVICE * * * * */
static
int
spec_probe
(
struct
pci_dev
*
pdev
,
const
struct
pci_device_id
*
id
)
const
struct
pci_device_id
*
id
)
{
struct
spec_dev
*
spec
;
int
i
,
ret
;
...
...
@@ -284,7 +284,8 @@ static void spec_remove(struct pci_dev *pdev)
DEFINE_PCI_DEVICE_TABLE
(
spec_idtable
)
=
{
{
PCI_DEVICE
(
PCI_VENDOR_ID_CERN
,
PCI_DEVICE_ID_SPEC
)
},
{
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_GENNUM
,
PCI_DEVICE_ID_GN4124
)
},
{
0
,},
};
...
...
kernel/spec.h
View file @
92f3a560
...
...
@@ -17,9 +17,10 @@
#include <linux/gpio.h>
#define PCI_VENDOR_ID_CERN 0x10dc
#define PCI_DEVICE_ID_SPEC 0x018d
#define PCI_DEVICE_ID_SPEC_45T 0x018d
#define PCI_DEVICE_ID_SPEC_100T 0x01a2
#define PCI_VENDOR_ID_GENNUM 0x1a39
#define PCI_DEVICE_ID_GN4124
0x0004
#define PCI_DEVICE_ID_GN4124 0x0004
#define SPEC_DEFAULT_LM32_ADDR 0x80000
/* used if "1" is passed */
...
...
tools/speclib.h
View file @
92f3a560
...
...
@@ -5,10 +5,14 @@
/* Vendor/Device ID to identify the SPEC */
#define PCI_VENDOR_ID_CERN 0x10dc
#define PCI_DEVICE_ID_SPEC 0x018d
#define PCI_DEVICE_ID_SPEC_45T 0x018d
#define PCI_DEVICE_ID_SPEC_100T 0x01a2
#define PCI_VENDOR_ID_GENNUM 0x1a39
#define PCI_DEVICE_ID_GN4124 0x0004
/* For compatibility */
#define PCI_DEVICE_ID_SPEC PCI_DEVICE_ID_SPEC_45T
/* 'Opens' the SPEC card at PCI bus [bus], device/function [dev].
Returns a handle to the card or NULL in case of failure. */
void
*
spec_open
(
int
bus
,
int
dev
);
...
...
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