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
8fa8e4c8
Commit
8fa8e4c8
authored
Nov 25, 2002
by
Alan Cox
Committed by
Linus Torvalds
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch ide taskfile to new DMA policy
parent
23f9e70c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
drivers/ide/ide-taskfile.c
drivers/ide/ide-taskfile.c
+2
-8
No files found.
drivers/ide/ide-taskfile.c
View file @
8fa8e4c8
...
@@ -1068,7 +1068,6 @@ ide_handler_t * ide_handler_parser (struct hd_drive_task_hdr *taskfile, struct h
...
@@ -1068,7 +1068,6 @@ ide_handler_t * ide_handler_parser (struct hd_drive_task_hdr *taskfile, struct h
case
DISABLE_SEAGATE
:
case
DISABLE_SEAGATE
:
case
EXABYTE_ENABLE_NEST
:
case
EXABYTE_ENABLE_NEST
:
return
&
task_no_data_intr
;
return
&
task_no_data_intr
;
#ifdef CONFIG_BLK_DEV_IDEDMA
case
WIN_READDMA
:
case
WIN_READDMA
:
// case WIN_READDMA_ONCE:
// case WIN_READDMA_ONCE:
case
WIN_IDENTIFY_DMA
:
case
WIN_IDENTIFY_DMA
:
...
@@ -1080,7 +1079,6 @@ ide_handler_t * ide_handler_parser (struct hd_drive_task_hdr *taskfile, struct h
...
@@ -1080,7 +1079,6 @@ ide_handler_t * ide_handler_parser (struct hd_drive_task_hdr *taskfile, struct h
case
WIN_WRITEDMA_QUEUED
:
case
WIN_WRITEDMA_QUEUED
:
case
WIN_WRITEDMA_EXT
:
case
WIN_WRITEDMA_EXT
:
case
WIN_WRITEDMA_QUEUED_EXT
:
case
WIN_WRITEDMA_QUEUED_EXT
:
#endif
case
WIN_FORMAT
:
case
WIN_FORMAT
:
case
WIN_INIT
:
case
WIN_INIT
:
case
WIN_DEVICE_RESET
:
case
WIN_DEVICE_RESET
:
...
@@ -1164,7 +1162,6 @@ int ide_cmd_type_parser (ide_task_t *args)
...
@@ -1164,7 +1162,6 @@ int ide_cmd_type_parser (ide_task_t *args)
default:
default:
return
IDE_DRIVE_TASK_NO_DATA
;
return
IDE_DRIVE_TASK_NO_DATA
;
}
}
#ifdef CONFIG_BLK_DEV_IDEDMA
case
WIN_READDMA
:
case
WIN_READDMA
:
// case WIN_READDMA_ONCE:
// case WIN_READDMA_ONCE:
case
WIN_IDENTIFY_DMA
:
case
WIN_IDENTIFY_DMA
:
...
@@ -1178,7 +1175,6 @@ int ide_cmd_type_parser (ide_task_t *args)
...
@@ -1178,7 +1175,6 @@ int ide_cmd_type_parser (ide_task_t *args)
case
WIN_WRITEDMA_EXT
:
case
WIN_WRITEDMA_EXT
:
case
WIN_WRITEDMA_QUEUED_EXT
:
case
WIN_WRITEDMA_QUEUED_EXT
:
return
IDE_DRIVE_TASK_RAW_WRITE
;
return
IDE_DRIVE_TASK_RAW_WRITE
;
#endif
case
WIN_SETFEATURES
:
case
WIN_SETFEATURES
:
switch
(
args
->
tfRegister
[
IDE_FEATURE_OFFSET
])
{
switch
(
args
->
tfRegister
[
IDE_FEATURE_OFFSET
])
{
case
SETFEATURES_EN_8BIT
:
case
SETFEATURES_EN_8BIT
:
...
@@ -1669,8 +1665,7 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
...
@@ -1669,8 +1665,7 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
if
(
!
err
&&
xfer_rate
)
{
if
(
!
err
&&
xfer_rate
)
{
/* active-retuning-calls future */
/* active-retuning-calls future */
if
((
HWIF
(
drive
)
->
speedproc
)
!=
NULL
)
ide_set_xfer_rate
(
drive
,
xfer_rate
);
HWIF
(
drive
)
->
speedproc
(
drive
,
xfer_rate
);
ide_driveid_update
(
drive
);
ide_driveid_update
(
drive
);
}
}
abort:
abort:
...
@@ -1724,8 +1719,7 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
...
@@ -1724,8 +1719,7 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
if
(
!
err
&&
xfer_rate
)
{
if
(
!
err
&&
xfer_rate
)
{
/* active-retuning-calls future */
/* active-retuning-calls future */
if
((
HWIF
(
drive
)
->
speedproc
)
!=
NULL
)
ide_set_xfer_rate
(
driver
,
xfer_rate
);
HWIF
(
drive
)
->
speedproc
(
drive
,
xfer_rate
);
ide_driveid_update
(
drive
);
ide_driveid_update
(
drive
);
}
}
abort:
abort:
...
...
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