diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:55 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:55 -0400 |
commit | a5d8c5c834d3cabf4b7b477c3f6ee923c25026fc (patch) | |
tree | 19fc04470569a3c2f227d5aac3078a15ac65bb32 /include/linux/ide.h | |
parent | 2229833c1365346b64357a9263fa724f74f5e376 (diff) |
ide: add ide_pci_device_t.host_flags (take 2)
* Rename ide_pci_device_t.flags to ide_pci_device_t.host_flags
and IDEPCI_FLAG_ISA_PORTS flag to IDE_HFLAG_ISA_PORTS.
* Add IDE_HFLAG_SINGLE flag for single channel devices.
* Convert core code and all IDE PCI drivers to use IDE_HFLAG_SINGLE
and remove no longer needed ide_pci_device_t.channels field.
v2:
* Fix issues noticed by Sergei:
- correct code alignment in scc_pata.c
- s/IDE_HFLAG_SINGLE/~IDE_HFLAG_SINGLE/ in serverworks.c
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 349c22a1fbc5..498dc57627fa 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1244,7 +1244,8 @@ typedef struct ide_pci_enablebit_s { | |||
1244 | 1244 | ||
1245 | enum { | 1245 | enum { |
1246 | /* Uses ISA control ports not PCI ones. */ | 1246 | /* Uses ISA control ports not PCI ones. */ |
1247 | IDEPCI_FLAG_ISA_PORTS = (1 << 0), | 1247 | IDE_HFLAG_ISA_PORTS = (1 << 0), |
1248 | IDE_HFLAG_SINGLE = (1 << 1), | ||
1248 | }; | 1249 | }; |
1249 | 1250 | ||
1250 | typedef struct ide_pci_device_s { | 1251 | typedef struct ide_pci_device_s { |
@@ -1256,13 +1257,12 @@ typedef struct ide_pci_device_s { | |||
1256 | void (*init_hwif)(ide_hwif_t *); | 1257 | void (*init_hwif)(ide_hwif_t *); |
1257 | void (*init_dma)(ide_hwif_t *, unsigned long); | 1258 | void (*init_dma)(ide_hwif_t *, unsigned long); |
1258 | void (*fixup)(ide_hwif_t *); | 1259 | void (*fixup)(ide_hwif_t *); |
1259 | u8 channels; | ||
1260 | u8 autodma; | 1260 | u8 autodma; |
1261 | ide_pci_enablebit_t enablebits[2]; | 1261 | ide_pci_enablebit_t enablebits[2]; |
1262 | u8 bootable; | 1262 | u8 bootable; |
1263 | unsigned int extra; | 1263 | unsigned int extra; |
1264 | struct ide_pci_device_s *next; | 1264 | struct ide_pci_device_s *next; |
1265 | u8 flags; | 1265 | u8 host_flags; |
1266 | u8 udma_mask; | 1266 | u8 udma_mask; |
1267 | } ide_pci_device_t; | 1267 | } ide_pci_device_t; |
1268 | 1268 | ||