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
01288732
Commit
01288732
authored
Oct 18, 2006
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[initio] Add pci dev table for module auto loading.
Signed-off-by:
Ben Collins
<
bcollins@ubuntu.com
>
parent
3985b977
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
drivers/scsi/initio.c
drivers/scsi/initio.c
+10
-9
No files found.
drivers/scsi/initio.c
View file @
01288732
...
...
@@ -142,8 +142,6 @@
#define i91u_MAXQUEUE 2
#define i91u_REVID "Initio INI-9X00U/UW SCSI device driver; Revision: 1.04a"
#define INI_VENDOR_ID 0x1101
/* Initio's PCI vendor ID */
#define DMX_VENDOR_ID 0x134a
/* Domex's PCI vendor ID */
#define I950_DEVICE_ID 0x9500
/* Initio's inic-950 product ID */
#define I940_DEVICE_ID 0x9400
/* Initio's inic-940 product ID */
#define I935_DEVICE_ID 0x9401
/* Initio's inic-935 product ID */
...
...
@@ -171,13 +169,16 @@ static int setup_debug = 0;
static
void
i91uSCBPost
(
BYTE
*
pHcb
,
BYTE
*
pScb
);
static
const
PCI_ID
i91u_pci_devices
[]
=
{
{
INI_VENDOR_ID
,
I950_DEVICE_ID
},
{
INI_VENDOR_ID
,
I940_DEVICE_ID
},
{
INI_VENDOR_ID
,
I935_DEVICE_ID
},
{
INI_VENDOR_ID
,
I920_DEVICE_ID
},
{
DMX_VENDOR_ID
,
I920_DEVICE_ID
},
/* PCI Devices supported by this driver */
static
struct
pci_device_id
i91u_pci_devices
[]
__devinitdata
=
{
{
PCI_VENDOR_ID_INIT
,
I950_DEVICE_ID
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
PCI_VENDOR_ID_INIT
,
I940_DEVICE_ID
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
PCI_VENDOR_ID_INIT
,
I935_DEVICE_ID
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
PCI_VENDOR_ID_INIT
,
I920_DEVICE_ID
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
PCI_VENDOR_ID_DOMEX
,
I920_DEVICE_ID
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
}
};
MODULE_DEVICE_TABLE
(
pci
,
i91u_pci_devices
);
#define DEBUG_INTERRUPT 0
#define DEBUG_QUEUE 0
...
...
@@ -2771,7 +2772,7 @@ static int tul_NewReturnNumberOfAdapters(void)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
i91u_pci_devices
);
i
++
)
{
while
((
pDev
=
pci_find_device
(
i91u_pci_devices
[
i
].
vendor
_id
,
i91u_pci_devices
[
i
].
device_id
,
pDev
))
!=
NULL
)
{
while
((
pDev
=
pci_find_device
(
i91u_pci_devices
[
i
].
vendor
,
i91u_pci_devices
[
i
].
device
,
pDev
))
!=
NULL
)
{
if
(
pci_enable_device
(
pDev
))
continue
;
pci_read_config_dword
(
pDev
,
0x44
,
(
u32
*
)
&
dRegValue
);
...
...
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