diff options
Diffstat (limited to 'include/linux/hdreg.h')
-rw-r--r-- | include/linux/hdreg.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/include/linux/hdreg.h b/include/linux/hdreg.h index 818c6afc1091..3bcb88560418 100644 --- a/include/linux/hdreg.h +++ b/include/linux/hdreg.h | |||
@@ -87,10 +87,10 @@ | |||
87 | #ifndef __KERNEL__ | 87 | #ifndef __KERNEL__ |
88 | #define IDE_TASKFILE_STD_OUT_FLAGS 0xFE | 88 | #define IDE_TASKFILE_STD_OUT_FLAGS 0xFE |
89 | #define IDE_HOB_STD_OUT_FLAGS 0x3C | 89 | #define IDE_HOB_STD_OUT_FLAGS 0x3C |
90 | #endif | ||
91 | 90 | ||
92 | typedef unsigned char task_ioreg_t; | 91 | typedef unsigned char task_ioreg_t; |
93 | typedef unsigned long sata_ioreg_t; | 92 | typedef unsigned long sata_ioreg_t; |
93 | #endif | ||
94 | 94 | ||
95 | typedef union ide_reg_valid_s { | 95 | typedef union ide_reg_valid_s { |
96 | unsigned all : 16; | 96 | unsigned all : 16; |
@@ -116,8 +116,8 @@ typedef union ide_reg_valid_s { | |||
116 | } ide_reg_valid_t; | 116 | } ide_reg_valid_t; |
117 | 117 | ||
118 | typedef struct ide_task_request_s { | 118 | typedef struct ide_task_request_s { |
119 | task_ioreg_t io_ports[8]; | 119 | __u8 io_ports[8]; |
120 | task_ioreg_t hob_ports[8]; | 120 | __u8 hob_ports[8]; |
121 | ide_reg_valid_t out_flags; | 121 | ide_reg_valid_t out_flags; |
122 | ide_reg_valid_t in_flags; | 122 | ide_reg_valid_t in_flags; |
123 | int data_phase; | 123 | int data_phase; |
@@ -133,32 +133,32 @@ typedef struct ide_ioctl_request_s { | |||
133 | } ide_ioctl_request_t; | 133 | } ide_ioctl_request_t; |
134 | 134 | ||
135 | struct hd_drive_cmd_hdr { | 135 | struct hd_drive_cmd_hdr { |
136 | task_ioreg_t command; | 136 | __u8 command; |
137 | task_ioreg_t sector_number; | 137 | __u8 sector_number; |
138 | task_ioreg_t feature; | 138 | __u8 feature; |
139 | task_ioreg_t sector_count; | 139 | __u8 sector_count; |
140 | }; | 140 | }; |
141 | 141 | ||
142 | typedef struct hd_drive_task_hdr { | 142 | typedef struct hd_drive_task_hdr { |
143 | task_ioreg_t data; | 143 | __u8 data; |
144 | task_ioreg_t feature; | 144 | __u8 feature; |
145 | task_ioreg_t sector_count; | 145 | __u8 sector_count; |
146 | task_ioreg_t sector_number; | 146 | __u8 sector_number; |
147 | task_ioreg_t low_cylinder; | 147 | __u8 low_cylinder; |
148 | task_ioreg_t high_cylinder; | 148 | __u8 high_cylinder; |
149 | task_ioreg_t device_head; | 149 | __u8 device_head; |
150 | task_ioreg_t command; | 150 | __u8 command; |
151 | } task_struct_t; | 151 | } task_struct_t; |
152 | 152 | ||
153 | typedef struct hd_drive_hob_hdr { | 153 | typedef struct hd_drive_hob_hdr { |
154 | task_ioreg_t data; | 154 | __u8 data; |
155 | task_ioreg_t feature; | 155 | __u8 feature; |
156 | task_ioreg_t sector_count; | 156 | __u8 sector_count; |
157 | task_ioreg_t sector_number; | 157 | __u8 sector_number; |
158 | task_ioreg_t low_cylinder; | 158 | __u8 low_cylinder; |
159 | task_ioreg_t high_cylinder; | 159 | __u8 high_cylinder; |
160 | task_ioreg_t device_head; | 160 | __u8 device_head; |
161 | task_ioreg_t control; | 161 | __u8 control; |
162 | } hob_struct_t; | 162 | } hob_struct_t; |
163 | 163 | ||
164 | #define TASKFILE_INVALID 0x7fff | 164 | #define TASKFILE_INVALID 0x7fff |