diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:06 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:06 -0400 |
commit | 7cab14a79973893392111b8f887856a54621f759 (patch) | |
tree | 925ad89a10daa3584e05806eadffb628ef97313b /drivers/ide/pci/hpt366.c | |
parent | 33c1002ed912ac9dacedd5d5b166da3b72d18460 (diff) |
ide: add IDE_HFLAG_BOOTABLE host flag
Add IDE_HFLAG_BOOTABLE host flag and IDE_HFLAG_OFF_BOARD define. Convert
all host drivers using ide_pci_device_t to use IDE_HFLAG_{BOOTABLE,OFF_BOARD}
instead of d->bootable and then remove no longer needed d->bootable.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/hpt366.c')
-rw-r--r-- | drivers/ide/pci/hpt366.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c index 5d96a086bde4..eb2cfe54b1a9 100644 --- a/drivers/ide/pci/hpt366.c +++ b/drivers/ide/pci/hpt366.c | |||
@@ -1531,7 +1531,7 @@ static int __devinit init_setup_hpt366(struct pci_dev *dev, ide_pci_device_t *d) | |||
1531 | pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin1); | 1531 | pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin1); |
1532 | pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin2); | 1532 | pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin2); |
1533 | if (pin1 != pin2 && dev->irq == dev2->irq) { | 1533 | if (pin1 != pin2 && dev->irq == dev2->irq) { |
1534 | d->bootable = ON_BOARD; | 1534 | d->host_flags |= IDE_HFLAG_BOOTABLE; |
1535 | printk("%s: onboard version of chipset, pin1=%d pin2=%d\n", | 1535 | printk("%s: onboard version of chipset, pin1=%d pin2=%d\n", |
1536 | d->name, pin1, pin2); | 1536 | d->name, pin1, pin2); |
1537 | } | 1537 | } |
@@ -1553,9 +1553,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1553 | .init_dma = init_dma_hpt366, | 1553 | .init_dma = init_dma_hpt366, |
1554 | .autodma = AUTODMA, | 1554 | .autodma = AUTODMA, |
1555 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1555 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1556 | .bootable = OFF_BOARD, | ||
1557 | .extra = 240, | 1556 | .extra = 240, |
1558 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA, | 1557 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
1559 | .pio_mask = ATA_PIO4, | 1558 | .pio_mask = ATA_PIO4, |
1560 | },{ /* 1 */ | 1559 | },{ /* 1 */ |
1561 | .name = "HPT372A", | 1560 | .name = "HPT372A", |
@@ -1566,9 +1565,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1566 | .autodma = AUTODMA, | 1565 | .autodma = AUTODMA, |
1567 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1566 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1568 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 1567 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
1569 | .bootable = OFF_BOARD, | ||
1570 | .extra = 240, | 1568 | .extra = 240, |
1571 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA, | 1569 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
1572 | .pio_mask = ATA_PIO4, | 1570 | .pio_mask = ATA_PIO4, |
1573 | },{ /* 2 */ | 1571 | },{ /* 2 */ |
1574 | .name = "HPT302", | 1572 | .name = "HPT302", |
@@ -1579,9 +1577,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1579 | .autodma = AUTODMA, | 1577 | .autodma = AUTODMA, |
1580 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1578 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1581 | .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 1579 | .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
1582 | .bootable = OFF_BOARD, | ||
1583 | .extra = 240, | 1580 | .extra = 240, |
1584 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA, | 1581 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
1585 | .pio_mask = ATA_PIO4, | 1582 | .pio_mask = ATA_PIO4, |
1586 | },{ /* 3 */ | 1583 | },{ /* 3 */ |
1587 | .name = "HPT371", | 1584 | .name = "HPT371", |
@@ -1592,9 +1589,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1592 | .autodma = AUTODMA, | 1589 | .autodma = AUTODMA, |
1593 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1590 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1594 | .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 1591 | .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
1595 | .bootable = OFF_BOARD, | ||
1596 | .extra = 240, | 1592 | .extra = 240, |
1597 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA, | 1593 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
1598 | .pio_mask = ATA_PIO4, | 1594 | .pio_mask = ATA_PIO4, |
1599 | },{ /* 4 */ | 1595 | },{ /* 4 */ |
1600 | .name = "HPT374", | 1596 | .name = "HPT374", |
@@ -1605,9 +1601,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1605 | .autodma = AUTODMA, | 1601 | .autodma = AUTODMA, |
1606 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1602 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1607 | .udma_mask = ATA_UDMA5, | 1603 | .udma_mask = ATA_UDMA5, |
1608 | .bootable = OFF_BOARD, | ||
1609 | .extra = 240, | 1604 | .extra = 240, |
1610 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA, | 1605 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
1611 | .pio_mask = ATA_PIO4, | 1606 | .pio_mask = ATA_PIO4, |
1612 | },{ /* 5 */ | 1607 | },{ /* 5 */ |
1613 | .name = "HPT372N", | 1608 | .name = "HPT372N", |
@@ -1618,9 +1613,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1618 | .autodma = AUTODMA, | 1613 | .autodma = AUTODMA, |
1619 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1614 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1620 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 1615 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
1621 | .bootable = OFF_BOARD, | ||
1622 | .extra = 240, | 1616 | .extra = 240, |
1623 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA, | 1617 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
1624 | .pio_mask = ATA_PIO4, | 1618 | .pio_mask = ATA_PIO4, |
1625 | } | 1619 | } |
1626 | }; | 1620 | }; |