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
41405a3d
Commit
41405a3d
authored
Jun 11, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kill 53c700 ->proc_info
All information is provided in sysfs nowdays.
parent
0294c491
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
drivers/scsi/53c700.c
drivers/scsi/53c700.c
+0
-31
No files found.
drivers/scsi/53c700.c
View file @
41405a3d
...
...
@@ -168,7 +168,6 @@ STATIC int NCR_700_abort(Scsi_Cmnd * SCpnt);
STATIC
int
NCR_700_bus_reset
(
Scsi_Cmnd
*
SCpnt
);
STATIC
int
NCR_700_dev_reset
(
Scsi_Cmnd
*
SCpnt
);
STATIC
int
NCR_700_host_reset
(
Scsi_Cmnd
*
SCpnt
);
STATIC
int
NCR_700_proc_directory_info
(
struct
Scsi_Host
*
,
char
*
,
char
**
,
off_t
,
int
,
int
);
STATIC
void
NCR_700_chip_setup
(
struct
Scsi_Host
*
host
);
STATIC
void
NCR_700_chip_reset
(
struct
Scsi_Host
*
host
);
STATIC
int
NCR_700_slave_configure
(
Scsi_Device
*
SDpnt
);
...
...
@@ -281,7 +280,6 @@ NCR_700_detect(Scsi_Host_Template *tpnt,
tpnt
->
sg_tablesize
=
NCR_700_SG_SEGMENTS
;
tpnt
->
cmd_per_lun
=
NCR_700_CMD_PER_LUN
;
tpnt
->
use_clustering
=
DISABLE_CLUSTERING
;
tpnt
->
proc_info
=
NCR_700_proc_directory_info
;
tpnt
->
slave_configure
=
NCR_700_slave_configure
;
tpnt
->
slave_destroy
=
NCR_700_slave_destroy
;
tpnt
->
use_blk_tcq
=
1
;
...
...
@@ -1710,35 +1708,6 @@ NCR_700_intr(int irq, void *dev_id, struct pt_regs *regs)
return
IRQ_RETVAL
(
handled
);
}
STATIC
int
NCR_700_proc_directory_info
(
struct
Scsi_Host
*
host
,
char
*
proc_buf
,
char
**
startp
,
off_t
offset
,
int
bytes_available
,
int
write
)
{
static
char
buf
[
4096
];
/* 1 page should be sufficient */
int
len
=
0
;
struct
NCR_700_Host_Parameters
*
hostdata
;
Scsi_Device
*
SDp
;
if
(
write
)
{
/* FIXME: Clear internal statistics here */
return
0
;
}
hostdata
=
(
struct
NCR_700_Host_Parameters
*
)
host
->
hostdata
[
0
];
len
+=
sprintf
(
&
buf
[
len
],
"Total commands outstanding: %d
\n
"
,
hostdata
->
command_slot_count
);
len
+=
sprintf
(
&
buf
[
len
],
"\
Target Active Next Tag
\n
\
====== ====== ========
\n
"
);
list_for_each_entry
(
SDp
,
&
host
->
my_devices
,
siblings
)
{
len
+=
sprintf
(
&
buf
[
len
],
" %2d:%2d %4d %4d
\n
"
,
SDp
->
id
,
SDp
->
lun
,
NCR_700_get_depth
(
SDp
),
SDp
->
current_tag
);
}
if
((
len
-=
offset
)
<=
0
)
return
0
;
if
(
len
>
bytes_available
)
len
=
bytes_available
;
memcpy
(
proc_buf
,
buf
+
offset
,
len
);
return
len
;
}
STATIC
int
NCR_700_queuecommand
(
Scsi_Cmnd
*
SCp
,
void
(
*
done
)(
Scsi_Cmnd
*
))
{
...
...
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