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
5605a515
Commit
5605a515
authored
Nov 06, 2002
by
Doug Ledford
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aic7xxx_old: multiple updates and fixes, driver ported to scsi
mid-layer new error handling scheme
parent
32e71bf0
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
432 additions
and
633 deletions
+432
-633
drivers/scsi/aic7xxx_old.c
drivers/scsi/aic7xxx_old.c
+409
-613
drivers/scsi/aic7xxx_old/aic7xxx.h
drivers/scsi/aic7xxx_old/aic7xxx.h
+6
-0
drivers/scsi/aic7xxx_old/aic7xxx_proc.c
drivers/scsi/aic7xxx_old/aic7xxx_proc.c
+17
-20
No files found.
drivers/scsi/aic7xxx_old.c
View file @
5605a515
This diff is collapsed.
Click to expand it.
drivers/scsi/aic7xxx_old/aic7xxx.h
View file @
5605a515
...
...
@@ -38,6 +38,9 @@
slave_attach: aic7xxx_slave_attach, \
slave_detach: aic7xxx_slave_detach, \
bios_param: aic7xxx_biosparam, \
eh_abort_handler: aic7xxx_abort, \
eh_device_reset_handler: aic7xxx_bus_device_reset, \
eh_host_reset_handler: aic7xxx_reset, \
can_queue: 255,
/* max simultaneous cmds */
\
this_id: -1,
/* scsi id of host adapter */
\
sg_tablesize: 0,
/* max scatter-gather cmds */
\
...
...
@@ -55,6 +58,9 @@ extern int aic7xxx_command(Scsi_Cmnd *);
extern
int
aic7xxx_release
(
struct
Scsi_Host
*
);
extern
int
aic7xxx_slave_attach
(
Scsi_Device
*
);
extern
void
aic7xxx_slave_detach
(
Scsi_Device
*
);
extern
int
aic7xxx_abort
(
Scsi_Cmnd
*
);
extern
int
aic7xxx_bus_device_reset
(
Scsi_Cmnd
*
);
extern
int
aic7xxx_reset
(
Scsi_Cmnd
*
);
extern
const
char
*
aic7xxx_info
(
struct
Scsi_Host
*
);
...
...
drivers/scsi/aic7xxx_old/aic7xxx_proc.c
View file @
5605a515
...
...
@@ -90,7 +90,6 @@ aic7xxx_proc_info ( char *buffer, char **start, off_t offset, int length,
int
size
=
0
;
unsigned
char
i
;
unsigned
char
tindex
;
struct
list_head
*
list_item
;
HBAptr
=
NULL
;
...
...
@@ -132,10 +131,8 @@ aic7xxx_proc_info ( char *buffer, char **start, off_t offset, int length,
*/
size
=
4096
;
list_for_each
(
list_item
,
&
p
->
aic_devs
)
{
list_for_each_entry
(
aic_dev
,
&
p
->
aic_devs
,
list
)
size
+=
512
;
}
if
(
aic7xxx_buffer_size
!=
size
)
{
if
(
aic7xxx_buffer
!=
NULL
)
...
...
@@ -157,13 +154,6 @@ aic7xxx_proc_info ( char *buffer, char **start, off_t offset, int length,
size
+=
sprintf
(
BLS
,
"Adaptec AIC7xxx driver version: "
);
size
+=
sprintf
(
BLS
,
"%s/"
,
AIC7XXX_C_VERSION
);
size
+=
sprintf
(
BLS
,
"%s"
,
AIC7XXX_H_VERSION
);
size
+=
sprintf
(
BLS
,
"
\n
"
);
size
+=
sprintf
(
BLS
,
"Compile Options:
\n
"
);
#ifdef CONFIG_AIC7XXX_OLD_TCQ_ON_BY_DEFAULT
size
+=
sprintf
(
BLS
,
" TCQ Enabled By Default : Enabled
\n
"
);
#else
size
+=
sprintf
(
BLS
,
" TCQ Enabled By Default : Disabled
\n
"
);
#endif
size
+=
sprintf
(
BLS
,
"
\n
"
);
size
+=
sprintf
(
BLS
,
"Adapter Configuration:
\n
"
);
size
+=
sprintf
(
BLS
,
" SCSI Adapter: %s
\n
"
,
...
...
@@ -263,7 +253,7 @@ aic7xxx_proc_info ( char *buffer, char **start, off_t offset, int length,
{
size
+=
sprintf
(
BLS
,
" Ultra Enable Flags: 0x%04x
\n
"
,
p
->
ultraenb
);
}
size
+=
sprintf
(
BLS
,
"Default Tag Queue Depth: %d
\n
"
,
AIC7XXX_CMDS_PER_DEVICE
);
size
+=
sprintf
(
BLS
,
"Default Tag Queue Depth: %d
\n
"
,
aic7xxx_default_queue_depth
);
size
+=
sprintf
(
BLS
,
" Tagged Queue By Device array for aic7xxx host "
"instance %d:
\n
"
,
p
->
instance
);
size
+=
sprintf
(
BLS
,
" {"
);
...
...
@@ -273,9 +263,8 @@ aic7xxx_proc_info ( char *buffer, char **start, off_t offset, int length,
size
+=
sprintf
(
BLS
,
"
\n
"
);
size
+=
sprintf
(
BLS
,
"Statistics:
\n\n
"
);
list_for_each
(
list_item
,
&
p
->
aic_devs
)
list_for_each
_entry
(
aic_dev
,
&
p
->
aic_devs
,
list
)
{
aic_dev
=
list_entry
(
list_item
,
struct
aic_dev_data
,
list
);
sdptr
=
aic_dev
->
SDptr
;
tindex
=
sdptr
->
channel
<<
3
|
sdptr
->
id
;
size
+=
sprintf
(
BLS
,
"(scsi%d:%d:%d:%d)
\n
"
,
...
...
@@ -322,24 +311,32 @@ aic7xxx_proc_info ( char *buffer, char **start, off_t offset, int length,
p
->
user
[
tindex
].
offset
,
p
->
user
[
tindex
].
width
,
p
->
user
[
tindex
].
options
);
size
+=
sprintf
(
BLS
,
" Total transfers %ld (%ld reads and %ld writes)
\n
"
,
aic_dev
->
r_total
+
aic_dev
->
w_total
,
aic_dev
->
r_total
,
aic_dev
->
w_total
);
if
(
sdptr
->
simple_tags
)
{
size
+=
sprintf
(
BLS
,
" Tagged Command Queueing Enabled, Ordered Tags %s
\n
"
,
sdptr
->
ordered_tags
?
"Enabled"
:
"Disabled"
);
}
if
(
aic_dev
->
barrier_total
)
size
+=
sprintf
(
BLS
,
" Total transfers %ld:
\n
(%ld/%ld/%ld/%ld reads/writes/REQ_BARRIER/Ordered Tags)
\n
"
,
aic_dev
->
r_total
+
aic_dev
->
w_total
,
aic_dev
->
r_total
,
aic_dev
->
w_total
,
aic_dev
->
barrier_total
,
aic_dev
->
ordered_total
);
else
size
+=
sprintf
(
BLS
,
" Total transfers %ld:
\n
(%ld/%ld reads/writes)
\n
"
,
aic_dev
->
r_total
+
aic_dev
->
w_total
,
aic_dev
->
r_total
,
aic_dev
->
w_total
);
size
+=
sprintf
(
BLS
,
"%s
\n
"
,
HDRB
);
size
+=
sprintf
(
BLS
,
" Reads:"
);
for
(
i
=
0
;
i
<
NUMBER
(
aic_dev
->
r_bins
);
i
++
)
{
size
+=
sprintf
(
BLS
,
" %
7
ld"
,
aic_dev
->
r_bins
[
i
]);
size
+=
sprintf
(
BLS
,
" %
10
ld"
,
aic_dev
->
r_bins
[
i
]);
}
size
+=
sprintf
(
BLS
,
"
\n
"
);
size
+=
sprintf
(
BLS
,
" Writes:"
);
for
(
i
=
0
;
i
<
NUMBER
(
aic_dev
->
w_bins
);
i
++
)
{
size
+=
sprintf
(
BLS
,
" %
7
ld"
,
aic_dev
->
w_bins
[
i
]);
size
+=
sprintf
(
BLS
,
" %
10
ld"
,
aic_dev
->
w_bins
[
i
]);
}
size
+=
sprintf
(
BLS
,
"
\n
"
);
size
+=
sprintf
(
BLS
,
"
\n\n
"
);
}
if
(
size
>=
aic7xxx_buffer_size
)
{
printk
(
KERN_WARNING
"aic7xxx: Overflow in aic7xxx_proc.c
\n
"
);
...
...
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