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
4e33fe51
Commit
4e33fe51
authored
Jun 26, 2003
by
Bartlomiej Zolnierkiewicz
Committed by
Jeff Garzik
Jun 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ide: remove dead and broken ide_diag_taskfile() variant
parent
d8f5c254
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
65 deletions
+0
-65
drivers/ide/ide-taskfile.c
drivers/ide/ide-taskfile.c
+0
-65
No files found.
drivers/ide/ide-taskfile.c
View file @
4e33fe51
...
@@ -1367,8 +1367,6 @@ void ide_init_drive_taskfile (struct request *rq)
...
@@ -1367,8 +1367,6 @@ void ide_init_drive_taskfile (struct request *rq)
EXPORT_SYMBOL
(
ide_init_drive_taskfile
);
EXPORT_SYMBOL
(
ide_init_drive_taskfile
);
#if 1
int
ide_diag_taskfile
(
ide_drive_t
*
drive
,
ide_task_t
*
args
,
unsigned
long
data_size
,
u8
*
buf
)
int
ide_diag_taskfile
(
ide_drive_t
*
drive
,
ide_task_t
*
args
,
unsigned
long
data_size
,
u8
*
buf
)
{
{
struct
request
rq
;
struct
request
rq
;
...
@@ -1407,69 +1405,6 @@ int ide_diag_taskfile (ide_drive_t *drive, ide_task_t *args, unsigned long data_
...
@@ -1407,69 +1405,6 @@ int ide_diag_taskfile (ide_drive_t *drive, ide_task_t *args, unsigned long data_
return
ide_do_drive_cmd
(
drive
,
&
rq
,
ide_wait
);
return
ide_do_drive_cmd
(
drive
,
&
rq
,
ide_wait
);
}
}
#else
int
ide_diag_taskfile
(
ide_drive_t
*
drive
,
ide_task_t
*
args
,
unsigned
long
data_size
,
u8
*
buf
)
{
struct
request
*
rq
;
unsigned
long
flags
;
ide_hwgroup_t
*
hwgroup
=
HWGROUP
(
drive
);
struct
list_head
*
queue_head
=
&
drive
->
queue
.
queue_head
;
DECLARE_COMPLETION
(
wait
);
if
(
HWIF
(
drive
)
->
chipset
==
ide_pdc4030
&&
buf
!=
NULL
)
return
-
ENOSYS
;
/* special drive cmds not supported */
memset
(
rq
,
0
,
sizeof
(
*
rq
));
rq
->
flags
=
REQ_DRIVE_TASKFILE
;
rq
->
buffer
=
buf
;
/*
* (ks) We transfer currently only whole sectors.
* This is suffient for now. But, it would be great,
* if we would find a solution to transfer any size.
* To support special commands like READ LONG.
*/
if
(
args
->
command_type
!=
IDE_DRIVE_TASK_NO_DATA
)
{
if
(
data_size
==
0
)
{
ata_nsector_t
nsector
;
nsector
.
b
.
low
=
args
->
hobRegister
[
IDE_NSECTOR_OFFSET_HOB
];
nsector
.
b
.
high
=
args
->
tfRegister
[
IDE_NSECTOR_OFFSET
];
rq
.
nr_sectors
=
nsector
.
all
;
}
else
{
rq
.
nr_sectors
=
data_size
/
SECTOR_SIZE
;
}
rq
.
current_nr_sectors
=
rq
.
nr_sectors
;
// rq.hard_cur_sectors = rq.nr_sectors;
}
if
(
args
->
tf_out_flags
.
all
==
0
)
{
/*
* clean up kernel settings for driver sanity, regardless.
* except for discrete diag services.
*/
args
->
posthandler
=
ide_post_handler_parser
(
(
struct
hd_drive_task_hdr
*
)
args
->
tfRegister
,
(
struct
hd_drive_hob_hdr
*
)
args
->
hobRegister
);
}
rq
->
special
=
args
;
rq
->
errors
=
0
;
rq
->
rq_status
=
RQ_ACTIVE
;
rq
->
rq_disk
=
drive
->
disk
;
rq
->
waiting
=
&
wait
;
spin_lock_irqsave
(
&
ide_lock
,
flags
);
queue_head
=
queue_head
->
prev
;
list_add
(
&
rq
->
queue
,
queue_head
);
ide_do_request
(
hwgroup
,
0
);
spin_unlock_irqrestore
(
&
ide_lock
,
flags
);
wait_for_completion
(
&
wait
);
/* wait for it to be serviced */
return
rq
->
errors
?
-
EIO
:
0
;
/* return -EIO if errors */
}
#endif
EXPORT_SYMBOL
(
ide_diag_taskfile
);
EXPORT_SYMBOL
(
ide_diag_taskfile
);
int
ide_raw_taskfile
(
ide_drive_t
*
drive
,
ide_task_t
*
args
,
u8
*
buf
)
int
ide_raw_taskfile
(
ide_drive_t
*
drive
,
ide_task_t
*
args
,
u8
*
buf
)
...
...
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