Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pts-base
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
misc
pts-base
Commits
41fd930c
Commit
41fd930c
authored
13 years ago
by
Samuel Iglesias Gonsalvez
Browse files
Options
Downloads
Patches
Plain Diff
rawrabbit: allow GENNUM VENDOR/DEVICE ID and CERN VENDOR ID and SPEC DEVICE ID
parent
d8ad9012
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gnurabbit-2010-08-05/kernel/rawrabbit.c
+13
-7
13 additions, 7 deletions
gnurabbit-2010-08-05/kernel/rawrabbit.c
gnurabbit-2010-08-05/kernel/rawrabbit.h
+2
-0
2 additions, 0 deletions
gnurabbit-2010-08-05/kernel/rawrabbit.h
with
15 additions
and
7 deletions
gnurabbit-2010-08-05/kernel/rawrabbit.c
+
13
−
7
View file @
41fd930c
...
...
@@ -57,19 +57,25 @@ irqreturn_t rr_interrupt(int irq, void *devid)
* One device id only is supported.
*/
static
struct
pci_device_id
rr_idtable
[
2
];
/* last must be zero */
static
struct
pci_device_id
rr_idtable
[
3
];
/* last must be zero */
static
void
rr_fill_table
(
struct
rr_dev
*
dev
)
{
if
(
dev
->
devsel
->
subvendor
==
RR_DEVSEL_UNUSED
)
{
dev
->
id_table
->
subvendor
=
PCI_ANY_ID
;
dev
->
id_table
->
subdevice
=
PCI_ANY_ID
;
dev
->
id_table
[
0
].
subvendor
=
PCI_ANY_ID
;
dev
->
id_table
[
0
].
subdevice
=
PCI_ANY_ID
;
}
else
{
dev
->
id_table
->
subvendor
=
dev
->
devsel
->
subvendor
;
dev
->
id_table
->
subdevice
=
dev
->
devsel
->
subdevice
;
dev
->
id_table
[
0
].
subvendor
=
dev
->
devsel
->
subvendor
;
dev
->
id_table
[
0
].
subdevice
=
dev
->
devsel
->
subdevice
;
}
dev
->
id_table
->
vendor
=
dev
->
devsel
->
vendor
;
dev
->
id_table
->
device
=
dev
->
devsel
->
device
;
dev
->
id_table
[
0
].
vendor
=
dev
->
devsel
->
vendor
;
dev
->
id_table
[
0
].
device
=
dev
->
devsel
->
device
;
dev
->
id_table
[
1
].
vendor
=
RR_CERN_VENDOR
;
dev
->
id_table
[
1
].
device
=
RR_CERN_DEVICE
;
dev
->
id_table
[
1
].
subvendor
=
PCI_ANY_ID
;
dev
->
id_table
[
1
].
subdevice
=
PCI_ANY_ID
;
}
static
int
rr_fill_table_and_probe
(
struct
rr_dev
*
dev
)
...
...
This diff is collapsed.
Click to expand it.
gnurabbit-2010-08-05/kernel/rawrabbit.h
+
2
−
0
View file @
41fd930c
...
...
@@ -49,6 +49,8 @@ struct rr_dev {
/* By default, the driver registers for this vendor/devid */
#define RR_DEFAULT_VENDOR 0x1a39
#define RR_DEFAULT_DEVICE 0x0004
#define RR_CERN_VENDOR 0x10dc
#define RR_CERN_DEVICE 0x018d
#define RR_DEFAULT_BUFSIZE (1<<20)
/* 1MB */
#define RR_PLIST_SIZE 4096
/* no PAGE_SIZE in user space */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment