diff options
31 files changed, 308 insertions, 327 deletions
diff --git a/drivers/ide/pci/aec62xx.c b/drivers/ide/pci/aec62xx.c index 253299961a14..f6dc6c20f3af 100644 --- a/drivers/ide/pci/aec62xx.c +++ b/drivers/ide/pci/aec62xx.c | |||
| @@ -13,6 +13,8 @@ | |||
| 13 | 13 | ||
| 14 | #include <asm/io.h> | 14 | #include <asm/io.h> |
| 15 | 15 | ||
| 16 | #define DRV_NAME "aec62xx" | ||
| 17 | |||
| 16 | struct chipset_bus_clock_list_entry { | 18 | struct chipset_bus_clock_list_entry { |
| 17 | u8 xfer_speed; | 19 | u8 xfer_speed; |
| 18 | u8 chipset_settings; | 20 | u8 chipset_settings; |
| @@ -180,8 +182,8 @@ static const struct ide_port_ops atp86x_port_ops = { | |||
| 180 | }; | 182 | }; |
| 181 | 183 | ||
| 182 | static const struct ide_port_info aec62xx_chipsets[] __devinitdata = { | 184 | static const struct ide_port_info aec62xx_chipsets[] __devinitdata = { |
| 183 | { /* 0 */ | 185 | { /* 0: AEC6210 */ |
| 184 | .name = "AEC6210", | 186 | .name = DRV_NAME, |
| 185 | .init_chipset = init_chipset_aec62xx, | 187 | .init_chipset = init_chipset_aec62xx, |
| 186 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, | 188 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, |
| 187 | .port_ops = &atp850_port_ops, | 189 | .port_ops = &atp850_port_ops, |
| @@ -192,8 +194,9 @@ static const struct ide_port_info aec62xx_chipsets[] __devinitdata = { | |||
| 192 | .pio_mask = ATA_PIO4, | 194 | .pio_mask = ATA_PIO4, |
| 193 | .mwdma_mask = ATA_MWDMA2, | 195 | .mwdma_mask = ATA_MWDMA2, |
| 194 | .udma_mask = ATA_UDMA2, | 196 | .udma_mask = ATA_UDMA2, |
| 195 | },{ /* 1 */ | 197 | }, |
| 196 | .name = "AEC6260", | 198 | { /* 1: AEC6260 */ |
| 199 | .name = DRV_NAME, | ||
| 197 | .init_chipset = init_chipset_aec62xx, | 200 | .init_chipset = init_chipset_aec62xx, |
| 198 | .port_ops = &atp86x_port_ops, | 201 | .port_ops = &atp86x_port_ops, |
| 199 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_NO_AUTODMA | | 202 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_NO_AUTODMA | |
| @@ -201,8 +204,9 @@ static const struct ide_port_info aec62xx_chipsets[] __devinitdata = { | |||
| 201 | .pio_mask = ATA_PIO4, | 204 | .pio_mask = ATA_PIO4, |
| 202 | .mwdma_mask = ATA_MWDMA2, | 205 | .mwdma_mask = ATA_MWDMA2, |
| 203 | .udma_mask = ATA_UDMA4, | 206 | .udma_mask = ATA_UDMA4, |
| 204 | },{ /* 2 */ | 207 | }, |
| 205 | .name = "AEC6260R", | 208 | { /* 2: AEC6260R */ |
| 209 | .name = DRV_NAME, | ||
| 206 | .init_chipset = init_chipset_aec62xx, | 210 | .init_chipset = init_chipset_aec62xx, |
| 207 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, | 211 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, |
| 208 | .port_ops = &atp86x_port_ops, | 212 | .port_ops = &atp86x_port_ops, |
| @@ -211,8 +215,9 @@ static const struct ide_port_info aec62xx_chipsets[] __devinitdata = { | |||
| 211 | .pio_mask = ATA_PIO4, | 215 | .pio_mask = ATA_PIO4, |
| 212 | .mwdma_mask = ATA_MWDMA2, | 216 | .mwdma_mask = ATA_MWDMA2, |
| 213 | .udma_mask = ATA_UDMA4, | 217 | .udma_mask = ATA_UDMA4, |
| 214 | },{ /* 3 */ | 218 | }, |
| 215 | .name = "AEC6280", | 219 | { /* 3: AEC6280 */ |
| 220 | .name = DRV_NAME, | ||
| 216 | .init_chipset = init_chipset_aec62xx, | 221 | .init_chipset = init_chipset_aec62xx, |
| 217 | .port_ops = &atp86x_port_ops, | 222 | .port_ops = &atp86x_port_ops, |
| 218 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | | 223 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | |
| @@ -220,8 +225,9 @@ static const struct ide_port_info aec62xx_chipsets[] __devinitdata = { | |||
| 220 | .pio_mask = ATA_PIO4, | 225 | .pio_mask = ATA_PIO4, |
| 221 | .mwdma_mask = ATA_MWDMA2, | 226 | .mwdma_mask = ATA_MWDMA2, |
| 222 | .udma_mask = ATA_UDMA5, | 227 | .udma_mask = ATA_UDMA5, |
| 223 | },{ /* 4 */ | 228 | }, |
| 224 | .name = "AEC6280R", | 229 | { /* 4: AEC6280R */ |
| 230 | .name = DRV_NAME, | ||
| 225 | .init_chipset = init_chipset_aec62xx, | 231 | .init_chipset = init_chipset_aec62xx, |
| 226 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, | 232 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, |
| 227 | .port_ops = &atp86x_port_ops, | 233 | .port_ops = &atp86x_port_ops, |
| @@ -268,7 +274,8 @@ static int __devinit aec62xx_init_one(struct pci_dev *dev, const struct pci_devi | |||
| 268 | unsigned long dma_base = pci_resource_start(dev, 4); | 274 | unsigned long dma_base = pci_resource_start(dev, 4); |
| 269 | 275 | ||
| 270 | if (inb(dma_base + 2) & 0x10) { | 276 | if (inb(dma_base + 2) & 0x10) { |
| 271 | d.name = (idx == 4) ? "AEC6880R" : "AEC6880"; | 277 | printk(KERN_INFO DRV_NAME " %s: AEC6880%s card detected" |
| 278 | "\n", pci_name(dev), (idx == 4) ? "R" : ""); | ||
| 272 | d.udma_mask = ATA_UDMA6; | 279 | d.udma_mask = ATA_UDMA6; |
| 273 | } | 280 | } |
| 274 | } | 281 | } |
diff --git a/drivers/ide/pci/alim15x3.c b/drivers/ide/pci/alim15x3.c index ac171502b997..a099c4dd599d 100644 --- a/drivers/ide/pci/alim15x3.c +++ b/drivers/ide/pci/alim15x3.c | |||
| @@ -38,6 +38,8 @@ | |||
| 38 | 38 | ||
| 39 | #include <asm/io.h> | 39 | #include <asm/io.h> |
| 40 | 40 | ||
| 41 | #define DRV_NAME "alim15x3" | ||
| 42 | |||
| 41 | /* | 43 | /* |
| 42 | * Allow UDMA on M1543C-E chipset for WDC disks that ignore CRC checking | 44 | * Allow UDMA on M1543C-E chipset for WDC disks that ignore CRC checking |
| 43 | * (this is DANGEROUS and could result in data corruption). | 45 | * (this is DANGEROUS and could result in data corruption). |
| @@ -515,7 +517,7 @@ static const struct ide_dma_ops ali_dma_ops = { | |||
| 515 | }; | 517 | }; |
| 516 | 518 | ||
| 517 | static const struct ide_port_info ali15x3_chipset __devinitdata = { | 519 | static const struct ide_port_info ali15x3_chipset __devinitdata = { |
| 518 | .name = "ALI15X3", | 520 | .name = DRV_NAME, |
| 519 | .init_chipset = init_chipset_ali15x3, | 521 | .init_chipset = init_chipset_ali15x3, |
| 520 | .init_hwif = init_hwif_ali15x3, | 522 | .init_hwif = init_hwif_ali15x3, |
| 521 | .init_dma = init_dma_ali15x3, | 523 | .init_dma = init_dma_ali15x3, |
diff --git a/drivers/ide/pci/amd74xx.c b/drivers/ide/pci/amd74xx.c index 2b118f80fab6..cbf78edfe00b 100644 --- a/drivers/ide/pci/amd74xx.c +++ b/drivers/ide/pci/amd74xx.c | |||
| @@ -21,6 +21,8 @@ | |||
| 21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
| 22 | #include <linux/ide.h> | 22 | #include <linux/ide.h> |
| 23 | 23 | ||
| 24 | #define DRV_NAME "amd74xx" | ||
| 25 | |||
| 24 | enum { | 26 | enum { |
| 25 | AMD_IDE_CONFIG = 0x41, | 27 | AMD_IDE_CONFIG = 0x41, |
| 26 | AMD_CABLE_DETECT = 0x42, | 28 | AMD_CABLE_DETECT = 0x42, |
| @@ -204,9 +206,9 @@ static const struct ide_port_ops amd_port_ops = { | |||
| 204 | IDE_HFLAG_IO_32BIT | \ | 206 | IDE_HFLAG_IO_32BIT | \ |
| 205 | IDE_HFLAG_UNMASK_IRQS) | 207 | IDE_HFLAG_UNMASK_IRQS) |
| 206 | 208 | ||
| 207 | #define DECLARE_AMD_DEV(name_str, swdma, udma) \ | 209 | #define DECLARE_AMD_DEV(swdma, udma) \ |
| 208 | { \ | 210 | { \ |
| 209 | .name = name_str, \ | 211 | .name = DRV_NAME, \ |
| 210 | .init_chipset = init_chipset_amd74xx, \ | 212 | .init_chipset = init_chipset_amd74xx, \ |
| 211 | .init_hwif = init_hwif_amd74xx, \ | 213 | .init_hwif = init_hwif_amd74xx, \ |
| 212 | .enablebits = {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, \ | 214 | .enablebits = {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, \ |
| @@ -218,9 +220,9 @@ static const struct ide_port_ops amd_port_ops = { | |||
| 218 | .udma_mask = udma, | ||
