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
73c8ae7c
Commit
73c8ae7c
authored
Oct 08, 2002
by
Alan Cox
Committed by
James Simmons
Oct 08, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] first pass over the in2000
- new locking - new_eh - use ->page/->offset
parent
ff64a6e3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
67 deletions
+81
-67
drivers/scsi/in2000.c
drivers/scsi/in2000.c
+57
-47
drivers/scsi/in2000.h
drivers/scsi/in2000.h
+24
-20
No files found.
drivers/scsi/in2000.c
View file @
73c8ae7c
This diff is collapsed.
Click to expand it.
drivers/scsi/in2000.h
View file @
73c8ae7c
...
@@ -397,13 +397,15 @@ struct IN2000_hostdata {
...
@@ -397,13 +397,15 @@ struct IN2000_hostdata {
# define CLISPIN_UNLOCK(host,flags) spin_unlock_irqrestore(host->host_lock, \
# define CLISPIN_UNLOCK(host,flags) spin_unlock_irqrestore(host->host_lock, \
flags)
flags)
int
in2000_detect
(
Scsi_Host_Template
*
)
in2000__INIT
;
static
int
in2000_detect
(
Scsi_Host_Template
*
)
in2000__INIT
;
int
in2000_queuecommand
(
Scsi_Cmnd
*
,
void
(
*
done
)(
Scsi_Cmnd
*
));
static
int
in2000_queuecommand
(
Scsi_Cmnd
*
,
void
(
*
done
)(
Scsi_Cmnd
*
));
int
in2000_abort
(
Scsi_Cmnd
*
);
static
int
in2000_abort
(
Scsi_Cmnd
*
);
void
in2000_setup
(
char
*
,
int
*
)
in2000__INIT
;
static
void
in2000_setup
(
char
*
,
int
*
)
in2000__INIT
;
int
in2000_proc_info
(
char
*
,
char
**
,
off_t
,
int
,
int
,
int
);
static
int
in2000_proc_info
(
char
*
,
char
**
,
off_t
,
int
,
int
,
int
);
int
in2000_biosparam
(
struct
scsi_disk
*
,
struct
block_device
*
,
int
*
);
static
int
in2000_biosparam
(
struct
scsi_disk
*
,
struct
block_device
*
,
int
*
);
int
in2000_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
static
int
in2000_host_reset
(
Scsi_Cmnd
*
);
static
int
in2000_bus_reset
(
Scsi_Cmnd
*
);
static
int
in2000_device_reset
(
Scsi_Cmnd
*
);
#define IN2000_CAN_Q 16
#define IN2000_CAN_Q 16
...
@@ -411,19 +413,21 @@ int in2000_reset(Scsi_Cmnd *, unsigned int);
...
@@ -411,19 +413,21 @@ int in2000_reset(Scsi_Cmnd *, unsigned int);
#define IN2000_CPL 2
#define IN2000_CPL 2
#define IN2000_HOST_ID 7
#define IN2000_HOST_ID 7
#define IN2000 { proc_name: "in2000",
/* name of /proc/scsi directory entry */
\
#define IN2000 { proc_name: "in2000",
/* name of /proc/scsi directory entry */
\
proc_info: in2000_proc_info,
/* pointer to proc info function */
\
proc_info: in2000_proc_info,
/* pointer to proc info function */
\
name: "Always IN2000",
/* device name */
\
name: "Always IN2000",
/* device name */
\
detect: in2000_detect,
/* returns number of in2000's found */
\
detect: in2000_detect,
/* returns number of in2000's found */
\
queuecommand: in2000_queuecommand,
/* queue scsi command, don't wait */
\
queuecommand: in2000_queuecommand,
/* queue scsi command, don't wait */
\
abort: in2000_abort,
/* abort current command */
\
eh_abort_handler: in2000_abort,
/* abort current command */
\
reset: in2000_reset,
/* reset scsi bus */
\
eh_bus_reset_handler: in2000_bus_reset,
/* reset scsi bus */
\
bios_param: in2000_biosparam,
/* figures out BIOS parameters for lilo, etc */
\
eh_device_reset_handler: in2000_device_reset,
/* reset scsi device */
\
can_queue: IN2000_CAN_Q,
/* max commands we can queue up */
\
eh_host_reset_handler: in2000_host_reset,
/* reset scsi hba */
\
this_id: IN2000_HOST_ID,
/* host-adapter scsi id */
\
bios_param: in2000_biosparam,
/* figures out BIOS parameters for lilo, etc */
\
sg_tablesize: IN2000_SG,
/* scatter-gather table size */
\
can_queue: IN2000_CAN_Q,
/* max commands we can queue up */
\
cmd_per_lun: IN2000_CPL,
/* commands per lun */
\
this_id: IN2000_HOST_ID,
/* host-adapter scsi id */
\
use_clustering: DISABLE_CLUSTERING,
/* ENABLE_CLUSTERING may speed things up */
\
sg_tablesize: IN2000_SG,
/* scatter-gather table size */
\
cmd_per_lun: IN2000_CPL,
/* commands per lun */
\
use_clustering: DISABLE_CLUSTERING,
/* ENABLE_CLUSTERING may speed things up */
\
}
}
#endif
/* IN2000_H */
#endif
/* IN2000_H */
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