aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 16:17:06 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 16:17:06 -0500
commitcd2a2d969761c26542095c01324201ca0b3ee896 (patch)
treefa95d329ac2f2ae3fca30833b8b0ec91aefbd243 /include/linux/ide.h
parent1c029fd658baa2442e8e51dc9c819301cad95777 (diff)
ide: remove task_ioreg_t typedef (take 2)
Remove task_ioreg_t typedef from the kernel code (but leave it in <linux/hdreg.h> for #ifndef/#endif __KERNEL__ case). While at it also move sata_ioreg_t typedef under #ifndef/#endif __KERNEL__. v2: Remove name of the second parameter from ide_execute_command() declaration. (Noticed by Sergei). Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 1fb03b630676..66a38f101175 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1019,7 +1019,8 @@ int ide_end_dequeued_request(ide_drive_t *drive, struct request *rq,
1019 1019
1020extern void ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry); 1020extern void ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry);
1021 1021
1022extern void ide_execute_command(ide_drive_t *, task_ioreg_t cmd, ide_handler_t *, unsigned int, ide_expiry_t *); 1022void ide_execute_command(ide_drive_t *, u8, ide_handler_t *, unsigned int,
1023 ide_expiry_t *);
1023 1024
1024ide_startstop_t __ide_error(ide_drive_t *, struct request *, u8, u8); 1025ide_startstop_t __ide_error(ide_drive_t *, struct request *, u8, u8);
1025 1026
@@ -1068,8 +1069,8 @@ typedef struct ide_task_s {
1068 * struct hd_drive_hob_hdr hobf; 1069 * struct hd_drive_hob_hdr hobf;
1069 * hob_struct_t hobf; 1070 * hob_struct_t hobf;
1070 */ 1071 */
1071 task_ioreg_t tfRegister[8]; 1072 u8 tfRegister[8];
1072 task_ioreg_t hobRegister[8]; 1073 u8 hobRegister[8];
1073 ide_reg_valid_t tf_out_flags; 1074 ide_reg_valid_t tf_out_flags;
1074 ide_reg_valid_t tf_in_flags; 1075 ide_reg_valid_t tf_in_flags;
1075 int data_phase; 1076 int data_phase;