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
nexedi
linux
Commits
04a97afb
Commit
04a97afb
authored
Feb 19, 2004
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
Feb 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove dead/unfinished taskfile version of ide_cmd_ioctl()
parent
8eeeb1b9
Changes
1
Show 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 @
04a97afb
...
@@ -1669,7 +1669,6 @@ EXPORT_SYMBOL(ide_wait_cmd);
...
@@ -1669,7 +1669,6 @@ EXPORT_SYMBOL(ide_wait_cmd);
*/
*/
int
ide_cmd_ioctl
(
ide_drive_t
*
drive
,
unsigned
int
cmd
,
unsigned
long
arg
)
int
ide_cmd_ioctl
(
ide_drive_t
*
drive
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
#if 1
int
err
=
0
;
int
err
=
0
;
u8
args
[
4
],
*
argbuf
=
args
;
u8
args
[
4
],
*
argbuf
=
args
;
u8
xfer_rate
=
0
;
u8
xfer_rate
=
0
;
...
@@ -1720,70 +1719,6 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
...
@@ -1720,70 +1719,6 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
if
(
argsize
>
4
)
if
(
argsize
>
4
)
kfree
(
argbuf
);
kfree
(
argbuf
);
return
err
;
return
err
;
#else
int
err
=
-
EIO
;
u8
args
[
4
],
*
argbuf
=
args
;
u8
xfer_rate
=
0
;
int
argsize
=
0
;
ide_task_t
tfargs
;
if
(
NULL
==
(
void
*
)
arg
)
{
struct
request
rq
;
ide_init_drive_cmd
(
&
rq
);
return
ide_do_drive_cmd
(
drive
,
&
rq
,
ide_wait
);
}
if
(
copy_from_user
(
args
,
(
void
*
)
arg
,
4
))
return
-
EFAULT
;
memset
(
&
tfargs
,
0
,
sizeof
(
ide_task_t
));
tfargs
.
tfRegister
[
IDE_FEATURE_OFFSET
]
=
args
[
2
];
tfargs
.
tfRegister
[
IDE_NSECTOR_OFFSET
]
=
args
[
3
];
tfargs
.
tfRegister
[
IDE_SECTOR_OFFSET
]
=
args
[
1
];
tfargs
.
tfRegister
[
IDE_LCYL_OFFSET
]
=
0x00
;
tfargs
.
tfRegister
[
IDE_HCYL_OFFSET
]
=
0x00
;
tfargs
.
tfRegister
[
IDE_SELECT_OFFSET
]
=
0x00
;
tfargs
.
tfRegister
[
IDE_COMMAND_OFFSET
]
=
args
[
0
];
if
(
args
[
3
])
{
argsize
=
(
SECTOR_WORDS
*
4
*
args
[
3
]);
argbuf
=
kmalloc
(
argsize
,
GFP_KERNEL
);
if
(
argbuf
==
NULL
)
return
-
ENOMEM
;
}
if
(
set_transfer
(
drive
,
&
tfargs
))
{
xfer_rate
=
args
[
1
];
if
(
ide_ata66_check
(
drive
,
&
tfargs
))
goto
abort
;
}
tfargs
.
command_type
=
ide_cmd_type_parser
(
&
tfargs
);
err
=
ide_raw_taskfile
(
drive
,
&
tfargs
,
argbuf
);
if
(
!
err
&&
xfer_rate
)
{
/* active-retuning-calls future */
ide_set_xfer_rate
(
driver
,
xfer_rate
);
ide_driveid_update
(
drive
);
}
abort:
args
[
0
]
=
tfargs
.
tfRegister
[
IDE_COMMAND_OFFSET
];
args
[
1
]
=
tfargs
.
tfRegister
[
IDE_FEATURE_OFFSET
];
args
[
2
]
=
tfargs
.
tfRegister
[
IDE_NSECTOR_OFFSET
];
args
[
3
]
=
0
;
if
(
copy_to_user
((
void
*
)
arg
,
argbuf
,
4
))
err
=
-
EFAULT
;
if
(
argbuf
!=
NULL
)
{
if
(
copy_to_user
((
void
*
)
arg
,
argbuf
+
4
,
argsize
))
err
=
-
EFAULT
;
kfree
(
argbuf
);
}
return
err
;
#endif
}
}
EXPORT_SYMBOL
(
ide_cmd_ioctl
);
EXPORT_SYMBOL
(
ide_cmd_ioctl
);
...
...
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