diff options
Diffstat (limited to 'drivers/ide/ide-cd.h')
-rw-r--r-- | drivers/ide/ide-cd.h | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/drivers/ide/ide-cd.h b/drivers/ide/ide-cd.h index 5882b9a9ea8b..ac40d6cb90a2 100644 --- a/drivers/ide/ide-cd.h +++ b/drivers/ide/ide-cd.h | |||
@@ -8,10 +8,14 @@ | |||
8 | #include <linux/cdrom.h> | 8 | #include <linux/cdrom.h> |
9 | #include <asm/byteorder.h> | 9 | #include <asm/byteorder.h> |
10 | 10 | ||
11 | /* | 11 | #define IDECD_DEBUG_LOG 0 |
12 | * typical timeout for packet command | 12 | |
13 | */ | 13 | #if IDECD_DEBUG_LOG |
14 | #define ATAPI_WAIT_PC (60 * HZ) | 14 | #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, args) |
15 | #else | ||
16 | #define ide_debug_log(lvl, fmt, args...) do {} while (0) | ||
17 | #endif | ||
18 | |||
15 | #define ATAPI_WAIT_WRITE_BUSY (10 * HZ) | 19 | #define ATAPI_WAIT_WRITE_BUSY (10 * HZ) |
16 | 20 | ||
17 | /************************************************************************/ | 21 | /************************************************************************/ |
@@ -29,33 +33,33 @@ | |||
29 | 33 | ||
30 | /* Structure of a MSF cdrom address. */ | 34 | /* Structure of a MSF cdrom address. */ |
31 | struct atapi_msf { | 35 | struct atapi_msf { |
32 | byte reserved; | 36 | u8 reserved; |
33 | byte minute; | 37 | u8 minute; |
34 | byte second; | 38 | u8 second; |
35 | byte frame; | 39 | u8 frame; |
36 | }; | 40 | }; |
37 | 41 | ||
38 | /* Space to hold the disk TOC. */ | 42 | /* Space to hold the disk TOC. */ |
39 | #define MAX_TRACKS 99 | 43 | #define MAX_TRACKS 99 |
40 | struct atapi_toc_header { | 44 | struct atapi_toc_header { |
41 | unsigned short toc_length; | 45 | unsigned short toc_length; |
42 | byte first_track; | 46 | u8 first_track; |
43 | byte last_track; | 47 | u8 last_track; |
44 | }; | 48 | }; |
45 | 49 | ||
46 | struct atapi_toc_entry { | 50 | struct atapi_toc_entry { |
47 | byte reserved1; | 51 | u8 reserved1; |
48 | #if defined(__BIG_ENDIAN_BITFIELD) | 52 | #if defined(__BIG_ENDIAN_BITFIELD) |
49 | __u8 adr : 4; | 53 | u8 adr : 4; |
50 | __u8 control : 4; | 54 | u8 control : 4; |
51 | #elif defined(__LITTLE_ENDIAN_BITFIELD) | 55 | #elif defined(__LITTLE_ENDIAN_BITFIELD) |
52 | __u8 control : 4; | 56 | u8 control : 4; |
53 | __u8 adr : 4; | 57 | u8 adr : 4; |
54 | #else | 58 | #else |
55 | #error "Please fix <asm/byteorder.h>" | 59 | #error "Please fix <asm/byteorder.h>" |
56 | #endif | 60 | #endif |
57 | byte track; | 61 | u8 track; |
58 | byte reserved2; | 62 | u8 reserved2; |
59 | union { | 63 | union { |
60 | unsigned lba; | 64 | unsigned lba; |
61 | struct atapi_msf msf; | 65 | struct atapi_msf msf; |
@@ -73,10 +77,10 @@ struct atapi_toc { | |||
73 | 77 | ||
74 | /* Extra per-device info for cdrom drives. */ | 78 | /* Extra per-device info for cdrom drives. */ |
75 | struct cdrom_info { | 79 | struct cdrom_info { |
76 | ide_drive_t *drive; | 80 | ide_drive_t *drive; |
77 | ide_driver_t *driver; | 81 | struct ide_driver *driver; |
78 | struct gendisk *disk; | 82 | struct gendisk *disk; |
79 | struct kref kref; | 83 | struct kref kref; |
80 | 84 | ||
81 | /* Buffer for table of contents. NULL if we haven't allocated | 85 | /* Buffer for table of contents. NULL if we haven't allocated |
82 | a TOC buffer for this device yet. */ | 86 | a TOC buffer for this device yet. */ |
@@ -88,8 +92,6 @@ struct cdrom_info { | |||
88 | struct request_sense sense_data; | 92 | struct request_sense sense_data; |
89 | 93 | ||
90 | struct request request_sense_request; | 94 | struct request request_sense_request; |
91 | unsigned long last_block; | ||
92 | unsigned long start_seek; | ||
93 | 95 | ||
94 | u8 max_speed; /* Max speed of the drive. */ | 96 | u8 max_speed; /* Max speed of the drive. */ |
95 | u8 current_speed; /* Current speed of the drive. */ | 97 | u8 current_speed; /* Current speed of the drive. */ |