aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/generic.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-18 18:30:06 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-18 18:30:06 -0400
commit7cab14a79973893392111b8f887856a54621f759 (patch)
tree925ad89a10daa3584e05806eadffb628ef97313b /drivers/ide/pci/generic.c
parent33c1002ed912ac9dacedd5d5b166da3b72d18460 (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/generic.c')
-rw-r--r--drivers/ide/pci/generic.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/ide/pci/generic.c b/drivers/ide/pci/generic.c
index dcee8278141e..7389b6e2ed1d 100644
--- a/drivers/ide/pci/generic.c
+++ b/drivers/ide/pci/generic.c
@@ -79,8 +79,8 @@ static void __devinit init_hwif_generic (ide_hwif_t *hwif)
79 .name = name_str, \ 79 .name = name_str, \
80 .init_hwif = init_hwif_generic, \ 80 .init_hwif = init_hwif_generic, \
81 .autodma = dma_setting, \ 81 .autodma = dma_setting, \
82 .bootable = ON_BOARD, \ 82 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | \
83 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA, \ 83 IDE_HFLAG_BOOTABLE, \
84 } 84 }
85 85
86static ide_pci_device_t generic_chipsets[] __devinitdata = { 86static ide_pci_device_t generic_chipsets[] __devinitdata = {
@@ -91,8 +91,8 @@ static ide_pci_device_t generic_chipsets[] __devinitdata = {
91 .init_hwif = init_hwif_generic, 91 .init_hwif = init_hwif_generic,
92 .autodma = AUTODMA, 92 .autodma = AUTODMA,
93 .enablebits = {{0x43,0x08,0x08}, {0x47,0x08,0x08}}, 93 .enablebits = {{0x43,0x08,0x08}, {0x47,0x08,0x08}},
94 .bootable = ON_BOARD, 94 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA |
95 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA, 95 IDE_HFLAG_BOOTABLE,
96 }, 96 },
97 97
98 /* 2 */ DECLARE_GENERIC_PCI_DEV("SAMURAI", AUTODMA), 98 /* 2 */ DECLARE_GENERIC_PCI_DEV("SAMURAI", AUTODMA),
@@ -108,8 +108,8 @@ static ide_pci_device_t generic_chipsets[] __devinitdata = {
108 .name = "VIA8237SATA", 108 .name = "VIA8237SATA",
109 .init_hwif = init_hwif_generic, 109 .init_hwif = init_hwif_generic,
110 .autodma = AUTODMA, 110 .autodma = AUTODMA,
111 .bootable = OFF_BOARD, 111 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA |
112 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA, 112 IDE_HFLAG_OFF_BOARD,
113 }, 113 },
114 114
115 /* 11 */ DECLARE_GENERIC_PCI_DEV("Piccolo0102", NOAUTODMA), 115 /* 11 */ DECLARE_GENERIC_PCI_DEV("Piccolo0102", NOAUTODMA),
@@ -120,8 +120,8 @@ static ide_pci_device_t generic_chipsets[] __devinitdata = {
120 .name = "Revolution", 120 .name = "Revolution",
121 .init_hwif = init_hwif_generic, 121 .init_hwif = init_hwif_generic,
122 .autodma = AUTODMA, 122 .autodma = AUTODMA,
123 .bootable = OFF_BOARD, 123 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA |
124 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA, 124 IDE_HFLAG_OFF_BOARD,
125 } 125 }
126}; 126};
127 127