diff options
-rw-r--r-- | drivers/ide/ide-cd.h | 26 | ||||
-rw-r--r-- | drivers/ide/it821x.c | 4 | ||||
-rw-r--r-- | drivers/ide/qd65xx.h | 4 | ||||
-rw-r--r-- | drivers/ide/sc1200.c | 2 | ||||
-rw-r--r-- | include/linux/ide.h | 4 |
5 files changed, 19 insertions, 21 deletions
diff --git a/drivers/ide/ide-cd.h b/drivers/ide/ide-cd.h index bf676b262181..d5ae036af00c 100644 --- a/drivers/ide/ide-cd.h +++ b/drivers/ide/ide-cd.h | |||
@@ -33,33 +33,33 @@ | |||
33 | 33 | ||
34 | /* Structure of a MSF cdrom address. */ | 34 | /* Structure of a MSF cdrom address. */ |
35 | struct atapi_msf { | 35 | struct atapi_msf { |
36 | byte reserved; | 36 | u8 reserved; |
37 | byte minute; | 37 | u8 minute; |
38 | byte second; | 38 | u8 second; |
39 | byte frame; | 39 | u8 frame; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | /* Space to hold the disk TOC. */ | 42 | /* Space to hold the disk TOC. */ |
43 | #define MAX_TRACKS 99 | 43 | #define MAX_TRACKS 99 |
44 | struct atapi_toc_header { | 44 | struct atapi_toc_header { |
45 | unsigned short toc_length; | 45 | unsigned short toc_length; |
46 | byte first_track; | 46 | u8 first_track; |
47 | byte last_track; | 47 | u8 last_track; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | struct atapi_toc_entry { | 50 | struct atapi_toc_entry { |
51 | byte reserved1; | 51 | u8 reserved1; |
52 | #if defined(__BIG_ENDIAN_BITFIELD) | 52 | #if defined(__BIG_ENDIAN_BITFIELD) |
53 | __u8 adr : 4; | 53 | u8 adr : 4; |
54 | __u8 control : 4; | 54 | u8 control : 4; |
55 | #elif defined(__LITTLE_ENDIAN_BITFIELD) | 55 | #elif defined(__LITTLE_ENDIAN_BITFIELD) |
56 | __u8 control : 4; | 56 | u8 control : 4; |
57 | __u8 adr : 4; | 57 | u8 adr : 4; |
58 | #else | 58 | #else |
59 | #error "Please fix <asm/byteorder.h>" | 59 | #error "Please fix <asm/byteorder.h>" |
60 | #endif | 60 | #endif |
61 | byte track; | 61 | u8 track; |
62 | byte reserved2; | 62 | u8 reserved2; |
63 | union { | 63 | union { |
64 | unsigned lba; | 64 | unsigned lba; |
65 | struct atapi_msf msf; | 65 | struct atapi_msf msf; |
diff --git a/drivers/ide/it821x.c b/drivers/ide/it821x.c index ef004089761b..a34f3e19b4a4 100644 --- a/drivers/ide/it821x.c +++ b/drivers/ide/it821x.c | |||
@@ -279,7 +279,7 @@ static void it821x_set_pio_mode(ide_drive_t *drive, const u8 pio) | |||
279 | * the shared MWDMA/PIO timing register. | 279 | * the shared MWDMA/PIO timing register. |
280 | */ | 280 | */ |
281 | 281 | ||
282 | static void it821x_tune_mwdma (ide_drive_t *drive, byte mode_wanted) | 282 | static void it821x_tune_mwdma(ide_drive_t *drive, u8 mode_wanted) |
283 | { | 283 | { |
284 | ide_hwif_t *hwif = drive->hwif; | 284 | ide_hwif_t *hwif = drive->hwif; |
285 | struct pci_dev *dev = to_pci_dev(hwif->dev); | 285 | struct pci_dev *dev = to_pci_dev(hwif->dev); |
@@ -316,7 +316,7 @@ static void it821x_tune_mwdma (ide_drive_t *drive, byte mode_wanted) | |||
316 | * controller when doing UDMA modes in pass through. | 316 | * controller when doing UDMA modes in pass through. |
317 | */ | 317 | */ |
318 | 318 | ||
319 | static void it821x_tune_udma (ide_drive_t *drive, byte mode_wanted) | 319 | static void it821x_tune_udma(ide_drive_t *drive, u8 mode_wanted) |
320 | { | 320 | { |
321 | ide_hwif_t *hwif = drive->hwif; | 321 | ide_hwif_t *hwif = drive->hwif; |
322 | struct pci_dev *dev = to_pci_dev(hwif->dev); | 322 | struct pci_dev *dev = to_pci_dev(hwif->dev); |
diff --git a/drivers/ide/qd65xx.h b/drivers/ide/qd65xx.h index c83dea85e621..6636f9665d16 100644 --- a/drivers/ide/qd65xx.h +++ b/drivers/ide/qd65xx.h | |||
@@ -31,8 +31,8 @@ | |||
31 | 31 | ||
32 | #define QD_CONFIG(hwif) ((hwif)->config_data & 0x00ff) | 32 | #define QD_CONFIG(hwif) ((hwif)->config_data & 0x00ff) |
33 | 33 | ||
34 | #define QD_TIMING(drive) (byte)(((drive)->drive_data) & 0x00ff) | 34 | #define QD_TIMING(drive) (u8)(((drive)->drive_data) & 0x00ff) |
35 | #define QD_TIMREG(drive) (byte)((((drive)->drive_data) & 0xff00) >> 8) | 35 | #define QD_TIMREG(drive) (u8)((((drive)->drive_data) & 0xff00) >> 8) |
36 | 36 | ||
37 | #define QD6500_DEF_DATA ((QD_TIM1_PORT<<8) | (QD_ID3 ? 0x0c : 0x08)) | 37 | #define QD6500_DEF_DATA ((QD_TIM1_PORT<<8) | (QD_ID3 ? 0x0c : 0x08)) |
38 | #define QD6580_DEF_DATA ((QD_TIM1_PORT<<8) | (QD_ID3 ? 0x0a : 0x00)) | 38 | #define QD6580_DEF_DATA ((QD_TIM1_PORT<<8) | (QD_ID3 ? 0x0a : 0x00)) |
diff --git a/drivers/ide/sc1200.c b/drivers/ide/sc1200.c index 6f68fe984bfb..1cf477aaae36 100644 --- a/drivers/ide/sc1200.c +++ b/drivers/ide/sc1200.c | |||
@@ -172,7 +172,7 @@ static int sc1200_dma_end(ide_drive_t *drive) | |||
172 | { | 172 | { |
173 | ide_hwif_t *hwif = drive->hwif; | 173 | ide_hwif_t *hwif = drive->hwif; |
174 | unsigned long dma_base = hwif->dma_base; | 174 | unsigned long dma_base = hwif->dma_base; |
175 | byte dma_stat; | 175 | u8 dma_stat; |
176 | 176 | ||
177 | dma_stat = inb(dma_base+2); /* get DMA status */ | 177 | dma_stat = inb(dma_base+2); /* get DMA status */ |
178 | 178 | ||
diff --git a/include/linux/ide.h b/include/linux/ide.h index cca6cfb299bc..545a67f1f6b5 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -32,8 +32,6 @@ | |||
32 | # define SUPPORT_VLB_SYNC 1 | 32 | # define SUPPORT_VLB_SYNC 1 |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | typedef unsigned char byte; /* used everywhere */ | ||
36 | |||
37 | /* | 35 | /* |
38 | * Probably not wise to fiddle with these | 36 | * Probably not wise to fiddle with these |
39 | */ | 37 | */ |
@@ -1161,7 +1159,7 @@ void ide_pad_transfer(ide_drive_t *, int, int); | |||
1161 | 1159 | ||
1162 | ide_startstop_t __ide_error(ide_drive_t *, struct request *, u8, u8); | 1160 | ide_startstop_t __ide_error(ide_drive_t *, struct request *, u8, u8); |
1163 | 1161 | ||
1164 | ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, byte stat); | 1162 | ide_startstop_t ide_error(ide_drive_t *, const char *, u8); |
1165 | 1163 | ||
1166 | void ide_fix_driveid(u16 *); | 1164 | void ide_fix_driveid(u16 *); |
1167 | 1165 | ||