aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/ide.h32
1 files changed, 1 insertions, 31 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 02984f1f041a..3e418b996ef5 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -279,36 +279,6 @@ typedef union {
279} special_t; 279} special_t;
280 280
281/* 281/*
282 * ATA-IDE Select Register, aka Device-Head
283 *
284 * head : always zeros here
285 * unit : drive select number: 0/1
286 * bit5 : always 1
287 * lba : using LBA instead of CHS
288 * bit7 : always 1
289 */
290typedef union {
291 unsigned all : 8;
292 struct {
293#if defined(__LITTLE_ENDIAN_BITFIELD)
294 unsigned head : 4;
295 unsigned unit : 1;
296 unsigned bit5 : 1;
297 unsigned lba : 1;
298 unsigned bit7 : 1;
299#elif defined(__BIG_ENDIAN_BITFIELD)
300 unsigned bit7 : 1;
301 unsigned lba : 1;
302 unsigned bit5 : 1;
303 unsigned unit : 1;
304 unsigned head : 4;
305#else
306#error "Please fix <asm/byteorder.h>"
307#endif
308 } b;
309} select_t, ata_select_t;
310
311/*
312 * Status returned from various ide_ functions 282 * Status returned from various ide_ functions
313 */ 283 */
314typedef enum { 284typedef enum {
@@ -529,8 +499,8 @@ struct ide_drive_s {
529 unsigned long timeout; /* max time to wait for irq */ 499 unsigned long timeout; /* max time to wait for irq */
530 500
531 special_t special; /* special action flags */ 501 special_t special; /* special action flags */
532 select_t select; /* basic drive/head select reg value */
533 502
503 u8 select; /* basic drive/head select reg value */
534 u8 retry_pio; /* retrying dma capable host in pio */ 504 u8 retry_pio; /* retrying dma capable host in pio */
535 u8 waiting_for_dma; /* dma currently in progress */ 505 u8 waiting_for_dma; /* dma currently in progress */
536 506