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
c2351f2a
Commit
c2351f2a
authored
Feb 26, 2003
by
Dave Jones
Committed by
James Bottomley
Feb 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fdomain pcmcia update from 2.4
parent
6ebaf254
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
drivers/scsi/pcmcia/fdomain_stub.c
drivers/scsi/pcmcia/fdomain_stub.c
+23
-18
No files found.
drivers/scsi/pcmcia/fdomain_stub.c
View file @
c2351f2a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
A driver for Future Domain-compatible PCMCIA SCSI cards
A driver for Future Domain-compatible PCMCIA SCSI cards
fdomain_cs.c 1.4
3 2000/06/12 21:27:25
fdomain_cs.c 1.4
7 2001/10/13 00:08:52
The contents of this file are subject to the Mozilla Public
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
License Version 1.1 (the "License"); you may not use this file
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
are Copyright (C) 1999 David A. Hinds. All Rights Reserved.
are Copyright (C) 1999 David A. Hinds. All Rights Reserved.
Alternatively, the contents of this file may be used under the
Alternatively, the contents of this file may be used under the
terms of the GNU General Public License version 2 (the "GPL"), in
which
terms of the GNU General Public License version 2 (the "GPL"), in
case the provisions of the GPL are applicable instead of the
which
case the provisions of the GPL are applicable instead of the
above. If you wish to allow the use of your version of this file
above. If you wish to allow the use of your version of this file
only under the terms of the GPL and not to allow others to use
only under the terms of the GPL and not to allow others to use
your version of this file under the MPL, indicate your decision
your version of this file under the MPL, indicate your decision
...
@@ -53,27 +53,30 @@
...
@@ -53,27 +53,30 @@
#include <pcmcia/cistpl.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/ds.h>
#include <pcmcia/ds.h>
#ifdef PCMCIA_DEBUG
static
int
pc_debug
=
PCMCIA_DEBUG
;
MODULE_PARM
(
pc_debug
,
"i"
);
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
static
char
*
version
=
"fdomain_cs.c 1.43 2000/06/12 21:27:25 (David Hinds)"
;
#else
#define DEBUG(n, args...)
#endif
/*====================================================================*/
/*====================================================================*/
/* Parameters that can be set with 'insmod' */
/* Module parameters */
MODULE_AUTHOR
(
"David Hinds <dahinds@users.sourceforge.net>"
);
MODULE_DESCRIPTION
(
"Future Domain PCMCIA SCSI driver"
);
MODULE_LICENSE
(
"Dual MPL/GPL"
);
#define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i")
/* Bit map of interrupts to choose from */
/* Bit map of interrupts to choose from */
static
u_int
irq_mask
=
0xdeb8
;
INT_MODULE_PARM
(
irq_mask
,
0xdeb8
)
;
static
int
irq_list
[
4
]
=
{
-
1
};
static
int
irq_list
[
4
]
=
{
-
1
};
MODULE_PARM
(
irq_mask
,
"i"
);
MODULE_PARM
(
irq_list
,
"1-4i"
);
MODULE_PARM
(
irq_list
,
"1-4i"
);
#ifdef PCMCIA_DEBUG
INT_MODULE_PARM
(
pc_debug
,
PCMCIA_DEBUG
);
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
static
char
*
version
=
"fdomain_cs.c 1.47 2001/10/13 00:08:52 (David Hinds)"
;
#else
#define DEBUG(n, args...)
#endif
/*====================================================================*/
/*====================================================================*/
typedef
struct
scsi_info_t
{
typedef
struct
scsi_info_t
{
...
@@ -213,6 +216,7 @@ static void fdomain_config(dev_link_t *link)
...
@@ -213,6 +216,7 @@ static void fdomain_config(dev_link_t *link)
u_char
tuple_data
[
64
];
u_char
tuple_data
[
64
];
Scsi_Device
*
dev
;
Scsi_Device
*
dev
;
dev_node_t
*
node
,
**
tail
;
dev_node_t
*
node
,
**
tail
;
char
str
[
16
];
struct
Scsi_Host
*
host
;
struct
Scsi_Host
*
host
;
DEBUG
(
0
,
"fdomain_config(0x%p)
\n
"
,
link
);
DEBUG
(
0
,
"fdomain_config(0x%p)
\n
"
,
link
);
...
@@ -253,7 +257,8 @@ static void fdomain_config(dev_link_t *link)
...
@@ -253,7 +257,8 @@ static void fdomain_config(dev_link_t *link)
ints
[
0
]
=
2
;
ints
[
0
]
=
2
;
ints
[
1
]
=
link
->
io
.
BasePort1
;
ints
[
1
]
=
link
->
io
.
BasePort1
;
ints
[
2
]
=
link
->
irq
.
AssignedIRQ
;
ints
[
2
]
=
link
->
irq
.
AssignedIRQ
;
fdomain_setup
(
"PCMCIA setup"
,
ints
);
sprintf
(
str
,
"%d,%d"
,
link
->
io
.
BasePort1
,
link
->
irq
.
AssignedIRQ
);
fdomain_setup
(
str
,
ints
);
scsi_register_host
(
&
driver_template
);
scsi_register_host
(
&
driver_template
);
...
...
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