Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7cd37ccc
Commit
7cd37ccc
authored
Aug 22, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: change pci host drivers to use PCI_DEVICE_CLASS() macro.
parent
995695f4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
33 deletions
+6
-33
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hcd.c
+4
-13
drivers/usb/host/ohci-pci.c
drivers/usb/host/ohci-pci.c
+1
-10
drivers/usb/host/uhci-hcd.c
drivers/usb/host/uhci-hcd.c
+1
-10
No files found.
drivers/usb/host/ehci-hcd.c
View file @
7cd37ccc
...
@@ -979,21 +979,12 @@ static const struct hc_driver ehci_driver = {
...
@@ -979,21 +979,12 @@ static const struct hc_driver ehci_driver = {
/* EHCI spec says PCI is required. */
/* EHCI spec says PCI is required. */
/* PCI driver selection metadata; PCI hotplugging uses this */
/* PCI driver selection metadata; PCI hotplugging uses this */
static
struct
pci_device_id
pci_ids
[]
=
{
{
static
const
struct
pci_device_id
pci_ids
[]
=
{
{
/* handle any USB 2.0 EHCI controller */
/* handle any USB 2.0 EHCI controller */
PCI_DEVICE_CLASS
(((
PCI_CLASS_SERIAL_USB
<<
8
)
|
0x20
),
~
0
),
.
class
=
((
PCI_CLASS_SERIAL_USB
<<
8
)
|
0x20
),
.
class_mask
=
~
0
,
.
driver_data
=
(
unsigned
long
)
&
ehci_driver
,
.
driver_data
=
(
unsigned
long
)
&
ehci_driver
,
},
/* no matter who makes it */
{
/* end: all zeroes */
}
.
vendor
=
PCI_ANY_ID
,
.
device
=
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{
/* end: all zeroes */
}
};
};
MODULE_DEVICE_TABLE
(
pci
,
pci_ids
);
MODULE_DEVICE_TABLE
(
pci
,
pci_ids
);
...
...
drivers/usb/host/ohci-pci.c
View file @
7cd37ccc
...
@@ -351,18 +351,9 @@ static const struct hc_driver ohci_pci_hc_driver = {
...
@@ -351,18 +351,9 @@ static const struct hc_driver ohci_pci_hc_driver = {
static
const
struct
pci_device_id
pci_ids
[]
=
{
{
static
const
struct
pci_device_id
pci_ids
[]
=
{
{
/* handle any USB OHCI controller */
/* handle any USB OHCI controller */
.
class
=
(
PCI_CLASS_SERIAL_USB
<<
8
)
|
0x10
,
PCI_DEVICE_CLASS
((
PCI_CLASS_SERIAL_USB
<<
8
)
|
0x10
,
~
0
),
.
class_mask
=
~
0
,
.
driver_data
=
(
unsigned
long
)
&
ohci_pci_hc_driver
,
.
driver_data
=
(
unsigned
long
)
&
ohci_pci_hc_driver
,
/* no matter who makes it */
.
vendor
=
PCI_ANY_ID
,
.
device
=
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{
/* end: all zeroes */
}
},
{
/* end: all zeroes */
}
};
};
MODULE_DEVICE_TABLE
(
pci
,
pci_ids
);
MODULE_DEVICE_TABLE
(
pci
,
pci_ids
);
...
...
drivers/usb/host/uhci-hcd.c
View file @
7cd37ccc
...
@@ -2504,18 +2504,9 @@ static const struct hc_driver uhci_driver = {
...
@@ -2504,18 +2504,9 @@ static const struct hc_driver uhci_driver = {
};
};
static
const
struct
pci_device_id
uhci_pci_ids
[]
=
{
{
static
const
struct
pci_device_id
uhci_pci_ids
[]
=
{
{
/* handle any USB UHCI controller */
/* handle any USB UHCI controller */
.
class
=
((
PCI_CLASS_SERIAL_USB
<<
8
)
|
0x00
),
PCI_DEVICE_CLASS
(((
PCI_CLASS_SERIAL_USB
<<
8
)
|
0x00
),
~
0
),
.
class_mask
=
~
0
,
.
driver_data
=
(
unsigned
long
)
&
uhci_driver
,
.
driver_data
=
(
unsigned
long
)
&
uhci_driver
,
/* no matter who makes it */
.
vendor
=
PCI_ANY_ID
,
.
device
=
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{
/* end: all zeroes */
}
},
{
/* end: all zeroes */
}
};
};
...
...
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