aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 16:17:12 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 16:17:12 -0500
commit8e7657ae0f56c14882e53ffdae8055c2b1624de1 (patch)
tree93e8fbbf66d0a9f877b13d4534c6052713f3a268 /include/linux
parent790d1239898d4f893112280decd344d90f43ee96 (diff)
ide: remove atapi_ireason_t (take 3)
Remove atapi_ireason_t. While at it: * replace 'HWIF(drive)' by 'drive->hwif' (or just 'hwif' where possible) v2: * v1 had CD and IO bits reversed in many places. * Use CD and IO defines from <linux/hdreg.h>. v3: * Fix incorrect "(ireason & IO) == test_bit()". (Noticed by Sergei) Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ide.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index cf1a5aaebd9e..790ffa7f6949 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -346,30 +346,6 @@ typedef union {
346} select_t, ata_select_t; 346} select_t, ata_select_t;
347 347
348/* 348/*
349 * ATAPI Interrupt Reason Register.
350 *
351 * cod : Information transferred is command (1) or data (0)
352 * io : The device requests us to read (1) or write (0)
353 * reserved : Reserved
354 */
355typedef union {
356 unsigned all :8;
357 struct {
358#if defined(__LITTLE_ENDIAN_BITFIELD)
359 unsigned cod :1;
360 unsigned io :1;
361 unsigned reserved :6;
362#elif defined(__BIG_ENDIAN_BITFIELD)
363 unsigned reserved :6;
364 unsigned io :1;
365 unsigned cod :1;
366#else
367#error "Please fix <asm/byteorder.h>"
368#endif
369 } b;
370} atapi_ireason_t;
371
372/*
373 * Status returned from various ide_ functions 349 * Status returned from various ide_ functions
374 */ 350 */
375typedef enum { 351typedef enum {