aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:40 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:40 -0400
commit7f612f272ad8abe82411f368bfacf793b466e1b3 (patch)
tree4d850be5dc0569a24a7f8049d4b68d6ab511518e /include/linux/ide.h
parent123995b97136cb41fa282f0ed2385f2c8066df96 (diff)
ide: remove [ata_]select_t
* Use 'drive->dn & 1' in ide_init_disk(). * remove [ata_]select_t. While at it: * Use ATA_DEVICE_OBS define in ide_port_init_devices_data(). 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.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