diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:30 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:30 -0400 |
commit | 528a572daea90aa41db92683e5a8756acef514c4 (patch) | |
tree | 95e616ff7b3a60d90d04b69eb21b8e262627e0b5 /include/linux/ide.h | |
parent | 44a59ad59f4285ce91e61f05e65a3e8fd0943c85 (diff) |
ide: add ->chipset field to ide_pci_device_t
Add ->chipset field to ide_pci_device_t and use it in ide_hwif_configure()
to set hwif->chipset. Convert cmd64x, cy82c693, rz1000 and trm290 host
drivers to use this new ability.
While at it define hwif_chipset_t as u8 to save some space in hw_regs_t,
ide_hwif_t and ide_pci_device_t instances.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index fdd097473055..b676e51d74f1 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -200,14 +200,16 @@ typedef int (ide_ack_intr_t)(struct hwif_s *); | |||
200 | * hwif_chipset_t is used to keep track of the specific hardware | 200 | * hwif_chipset_t is used to keep track of the specific hardware |
201 | * chipset used by each IDE interface, if known. | 201 | * chipset used by each IDE interface, if known. |
202 | */ | 202 | */ |
203 | typedef enum { ide_unknown, ide_generic, ide_pci, | 203 | enum { ide_unknown, ide_generic, ide_pci, |
204 | ide_cmd640, ide_dtc2278, ide_ali14xx, | 204 | ide_cmd640, ide_dtc2278, ide_ali14xx, |
205 | ide_qd65xx, ide_umc8672, ide_ht6560b, | 205 | ide_qd65xx, ide_umc8672, ide_ht6560b, |
206 | ide_rz1000, ide_trm290, | 206 | ide_rz1000, ide_trm290, |
207 | ide_cmd646, ide_cy82c693, ide_4drives, | 207 | ide_cmd646, ide_cy82c693, ide_4drives, |
208 | ide_pmac, ide_etrax100, ide_acorn, | 208 | ide_pmac, ide_etrax100, ide_acorn, |
209 | ide_au1xxx, ide_forced | 209 | ide_au1xxx, ide_forced |
210 | } hwif_chipset_t; | 210 | }; |
211 | |||
212 | typedef u8 hwif_chipset_t; | ||
211 | 213 | ||
212 | /* | 214 | /* |
213 | * Structure to hold all information about the location of this port | 215 | * Structure to hold all information about the location of this port |
@@ -1277,6 +1279,7 @@ typedef struct ide_pci_device_s { | |||
1277 | void (*init_dma)(ide_hwif_t *, unsigned long); | 1279 | void (*init_dma)(ide_hwif_t *, unsigned long); |
1278 | void (*fixup)(ide_hwif_t *); | 1280 | void (*fixup)(ide_hwif_t *); |
1279 | ide_pci_enablebit_t enablebits[2]; | 1281 | ide_pci_enablebit_t enablebits[2]; |
1282 | hwif_chipset_t chipset; | ||
1280 | unsigned int extra; | 1283 | unsigned int extra; |
1281 | u32 host_flags; | 1284 | u32 host_flags; |
1282 | u8 pio_mask; | 1285 | u8 pio_mask; |