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 /drivers/ide/pci/amd74xx.c | |
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 'drivers/ide/pci/amd74xx.c')
-rw-r--r-- | drivers/ide/pci/amd74xx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/pci/amd74xx.c b/drivers/ide/pci/amd74xx.c index 8d30b99a54d8..9c3ea90aeb8b 100644 --- a/drivers/ide/pci/amd74xx.c +++ b/drivers/ide/pci/amd74xx.c | |||
@@ -448,7 +448,6 @@ static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif) | |||
448 | .name = name_str, \ | 448 | .name = name_str, \ |
449 | .init_chipset = init_chipset_amd74xx, \ | 449 | .init_chipset = init_chipset_amd74xx, \ |
450 | .init_hwif = init_hwif_amd74xx, \ | 450 | .init_hwif = init_hwif_amd74xx, \ |
451 | .channels = 2, \ | ||
452 | .autodma = AUTODMA, \ | 451 | .autodma = AUTODMA, \ |
453 | .enablebits = {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, \ | 452 | .enablebits = {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, \ |
454 | .bootable = ON_BOARD, \ | 453 | .bootable = ON_BOARD, \ |
@@ -459,7 +458,6 @@ static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif) | |||
459 | .name = name_str, \ | 458 | .name = name_str, \ |
460 | .init_chipset = init_chipset_amd74xx, \ | 459 | .init_chipset = init_chipset_amd74xx, \ |
461 | .init_hwif = init_hwif_amd74xx, \ | 460 | .init_hwif = init_hwif_amd74xx, \ |
462 | .channels = 2, \ | ||
463 | .autodma = AUTODMA, \ | 461 | .autodma = AUTODMA, \ |
464 | .enablebits = {{0x50,0x02,0x02}, {0x50,0x01,0x01}}, \ | 462 | .enablebits = {{0x50,0x02,0x02}, {0x50,0x01,0x01}}, \ |
465 | .bootable = ON_BOARD, \ | 463 | .bootable = ON_BOARD, \ |