diff options
| -rw-r--r-- | arch/avr32/Kconfig | 1 | ||||
| -rw-r--r-- | arch/mips/au1000/common/platform.c | 2 | ||||
| -rw-r--r-- | drivers/ide/mips/au1xxx-ide.c | 18 | ||||
| -rw-r--r-- | drivers/ide/pci/it821x.c | 2 | ||||
| -rw-r--r-- | include/asm-mips/mach-au1x00/au1xxx_ide.h | 18 | ||||
| -rw-r--r-- | include/asm-mips/mach-db1x00/db1200.h | 4 | ||||
| -rw-r--r-- | include/asm-mips/mach-pb1x00/pb1200.h | 4 |
7 files changed, 13 insertions, 36 deletions
diff --git a/arch/avr32/Kconfig b/arch/avr32/Kconfig index c75d7089f982..28e0caf4156c 100644 --- a/arch/avr32/Kconfig +++ b/arch/avr32/Kconfig | |||
| @@ -10,7 +10,6 @@ config AVR32 | |||
| 10 | # With EMBEDDED=n, we get lots of stuff automatically selected | 10 | # With EMBEDDED=n, we get lots of stuff automatically selected |
| 11 | # that we usually don't need on AVR32. | 11 | # that we usually don't need on AVR32. |
| 12 | select EMBEDDED | 12 | select EMBEDDED |
| 13 | select HAVE_IDE | ||
| 14 | select HAVE_OPROFILE | 13 | select HAVE_OPROFILE |
| 15 | select HAVE_KPROBES | 14 | select HAVE_KPROBES |
| 16 | help | 15 | help |
diff --git a/arch/mips/au1000/common/platform.c b/arch/mips/au1000/common/platform.c index 841904cdef4d..39d681265297 100644 --- a/arch/mips/au1000/common/platform.c +++ b/arch/mips/au1000/common/platform.c | |||
| @@ -189,7 +189,7 @@ static struct resource au1200_lcd_resources[] = { | |||
| 189 | static struct resource au1200_ide0_resources[] = { | 189 | static struct resource au1200_ide0_resources[] = { |
| 190 | [0] = { | 190 | [0] = { |
| 191 | .start = AU1XXX_ATA_PHYS_ADDR, | 191 | .start = AU1XXX_ATA_PHYS_ADDR, |
| 192 | .end = AU1XXX_ATA_PHYS_ADDR + AU1XXX_ATA_PHYS_LEN, | 192 | .end = AU1XXX_ATA_PHYS_ADDR + AU1XXX_ATA_PHYS_LEN - 1, |
| 193 | .flags = IORESOURCE_MEM, | 193 | .flags = IORESOURCE_MEM, |
| 194 | }, | 194 | }, |
| 195 | [1] = { | 195 | [1] = { |
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c index 0f4bf5d72835..85c016bdfd38 100644 --- a/drivers/ide/mips/au1xxx-ide.c +++ b/drivers/ide/mips/au1xxx-ide.c | |||
| @@ -32,19 +32,12 @@ | |||
| 32 | #include <linux/kernel.h> | 32 | #include <linux/kernel.h> |
| 33 | #include <linux/delay.h> | 33 | #include <linux/delay.h> |
| 34 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
| 35 | |||
| 36 | #include <linux/init.h> | 35 | #include <linux/init.h> |
| 37 | #include <linux/ide.h> | 36 | #include <linux/ide.h> |
| 38 | #include <linux/sysdev.h> | 37 | #include <linux/scatterlist.h> |
| 39 | |||
| 40 | #include <linux/dma-mapping.h> | ||
| 41 | |||
| 42 | #include "ide-timing.h" | ||
| 43 | 38 | ||
| 44 | #include <asm/io.h> | ||
| 45 | #include <asm/mach-au1x00/au1xxx.h> | 39 | #include <asm/mach-au1x00/au1xxx.h> |
| 46 | #include <asm/mach-au1x00/au1xxx_dbdma.h> | 40 | #include <asm/mach-au1x00/au1xxx_dbdma.h> |
| 47 | |||
| 48 | #include <asm/mach-au1x00/au1xxx_ide.h> | 41 | #include <asm/mach-au1x00/au1xxx_ide.h> |
| 49 | 42 | ||
| 50 | #define DRV_NAME "au1200-ide" | 43 | #define DRV_NAME "au1200-ide" |
| @@ -56,6 +49,8 @@ | |||
| 56 | static _auide_hwif auide_hwif; | 49 | static _auide_hwif auide_hwif; |
| 57 | static int dbdma_init_done; | 50 | static int dbdma_init_done; |
| 58 | 51 | ||
| 52 | static int auide_ddma_init(_auide_hwif *auide); | ||
| 53 | |||
| 59 | #if defined(CONFIG_BLK_DEV_IDE_AU1XXX_PIO_DBDMA) | 54 | #if defined(CONFIG_BLK_DEV_IDE_AU1XXX_PIO_DBDMA) |
| 60 | 55 | ||
| 61 | void auide_insw(unsigned long port, void *addr, u32 count) | 56 | void auide_insw(unsigned long port, void *addr, u32 count) |
| @@ -591,13 +586,14 @@ static int au_ide_probe(struct device *dev) | |||
| 591 | goto out; | 586 | goto out; |
| 592 | } | 587 | } |
| 593 | 588 | ||
| 594 | if (!request_mem_region (res->start, res->end-res->start, pdev->name)) { | 589 | if (!request_mem_region(res->start, res->end - res->start + 1, |
| 590 | pdev->name)) { | ||
| 595 | pr_debug("%s: request_mem_region failed\n", DRV_NAME); | 591 | pr_debug("%s: request_mem_region failed\n", DRV_NAME); |
| 596 | ret = -EBUSY; | 592 | ret = -EBUSY; |
| 597 | goto out; | 593 | goto out; |
| 598 | } | 594 | } |
| 599 | 595 | ||
| 600 | ahwif->regbase = (u32)ioremap(res->start, res->end-res->start); | 596 | ahwif->regbase = (u32)ioremap(res->start, res->end - res->start + 1); |
| 601 | if (ahwif->regbase == 0) { | 597 | if (ahwif->regbase == 0) { |
| 602 | ret = -ENOMEM; | 598 | ret = -ENOMEM; |
| 603 | goto out; | 599 | goto out; |
| @@ -682,7 +678,7 @@ static int au_ide_remove(struct device *dev) | |||
| 682 | iounmap((void *)ahwif->regbase); | 678 | iounmap((void *)ahwif->regbase); |
| 683 | 679 | ||
| 684 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 680 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
| 685 | release_mem_region(res->start, res->end - res->start); | 681 | release_mem_region(res->start, res->end - res->start + 1); |
| 686 | 682 | ||
| 687 | return 0; | 683 | return 0; |
| 688 | } | 684 | } |
diff --git a/drivers/ide/pci/it821x.c b/drivers/ide/pci/it821x.c index 1597f0cc1bf1..d8a167451fd6 100644 --- a/drivers/ide/pci/it821x.c +++ b/drivers/ide/pci/it821x.c | |||
| @@ -667,7 +667,7 @@ static int __init it821x_ide_init(void) | |||
| 667 | module_init(it821x_ide_init); | 667 | module_init(it821x_ide_init); |
| 668 | 668 | ||
| 669 | module_param_named(noraid, it8212_noraid, int, S_IRUGO); | 669 | module_param_named(noraid, it8212_noraid, int, S_IRUGO); |
| 670 | MODULE_PARM_DESC(it8212_noraid, "Force card into bypass mode"); | 670 | MODULE_PARM_DESC(noraid, "Force card into bypass mode"); |
| 671 | 671 | ||
| 672 | MODULE_AUTHOR("Alan Cox"); | 672 | MODULE_AUTHOR("Alan Cox"); |
| 673 | MODULE_DESCRIPTION("PCI driver module for the ITE 821x"); | 673 | MODULE_DESCRIPTION("PCI driver module for the ITE 821x"); |
diff --git a/include/asm-mips/mach-au1x00/au1xxx_ide.h b/include/asm-mips/mach-au1x00/au1xxx_ide.h index e4fe26c160ba..89655c0cdcd6 100644 --- a/include/asm-mips/mach-au1x00/au1xxx_ide.h +++ b/include/asm-mips/mach-au1x00/au1xxx_ide.h | |||
| @@ -122,24 +122,6 @@ static const struct drive_list_entry dma_black_list [] = { | |||
| 122 | }; | 122 | }; |
| 123 | #endif | 123 | #endif |
| 124 | 124 | ||
| 125 | /* function prototyping */ | ||
| 126 | u8 auide_inb(unsigned long port); | ||
| 127 | u16 auide_inw(unsigned long port); | ||
| 128 | u32 auide_inl(unsigned long port); | ||
| 129 | void auide_insw(unsigned long port, void *addr, u32 count); | ||
| 130 | void auide_insl(unsigned long port, void *addr, u32 count); | ||
| 131 | void auide_outb(u8 addr, unsigned long port); | ||
| 132 | void auide_outbsync(ide_drive_t *drive, u8 addr, unsigned long port); | ||
| 133 | void auide_outw(u16 addr, unsigned long port); | ||
| 134 | void auide_outl(u32 addr, unsigned long port); | ||
| 135 | void auide_outsw(unsigned long port, void *addr, u32 count); | ||
| 136 | void auide_outsl(unsigned long port, void *addr, u32 count); | ||
| 137 | static void auide_tune_drive(ide_drive_t *drive, byte pio); | ||
| 138 | static int auide_tune_chipset(ide_drive_t *drive, u8 speed); | ||
| 139 | static int auide_ddma_init( _auide_hwif *auide ); | ||
| 140 | static void auide_setup_ports(hw_regs_t *hw, _auide_hwif *ahwif); | ||
| 141 | int __init auide_probe(void); | ||
| 142 | |||
| 143 | /******************************************************************************* | 125 | /******************************************************************************* |
| 144 | * PIO Mode timing calculation : * | 126 | * PIO Mode timing calculation : * |
| 145 | * * | 127 | * * |
diff --git a/include/asm-mips/mach-db1x00/db1200.h b/include/asm-mips/mach-db1x00/db1200.h index a6bdac61ab49..d2e28e64932e 100644 --- a/include/asm-mips/mach-db1x00/db1200.h +++ b/include/asm-mips/mach-db1x00/db1200.h | |||
| @@ -173,8 +173,8 @@ static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR; | |||
| 173 | #define AU1XXX_SMC91111_IRQ DB1200_ETH_INT | 173 | #define AU1XXX_SMC91111_IRQ DB1200_ETH_INT |
| 174 | 174 | ||
| 175 | #define AU1XXX_ATA_PHYS_ADDR (0x18800000) | 175 | #define AU1XXX_ATA_PHYS_ADDR (0x18800000) |
| 176 | #define AU1XXX_ATA_PHYS_LEN (0x100) | 176 | #define AU1XXX_ATA_REG_OFFSET (5) |
| 177 | #define AU1XXX_ATA_REG_OFFSET (5) | 177 | #define AU1XXX_ATA_PHYS_LEN (16 << AU1XXX_ATA_REG_OFFSET) |
| 178 | #define AU1XXX_ATA_INT DB1200_IDE_INT | 178 | #define AU1XXX_ATA_INT DB1200_IDE_INT |
| 179 | #define AU1XXX_ATA_DDMA_REQ DSCR_CMD0_DMA_REQ1; | 179 | #define AU1XXX_ATA_DDMA_REQ DSCR_CMD0_DMA_REQ1; |
| 180 | #define AU1XXX_ATA_RQSIZE 128 | 180 | #define AU1XXX_ATA_RQSIZE 128 |
diff --git a/include/asm-mips/mach-pb1x00/pb1200.h b/include/asm-mips/mach-pb1x00/pb1200.h index 72213e3d02c7..edaa489b58f1 100644 --- a/include/asm-mips/mach-pb1x00/pb1200.h +++ b/include/asm-mips/mach-pb1x00/pb1200.h | |||
| @@ -186,8 +186,8 @@ static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR; | |||
| 186 | #define AU1XXX_SMC91111_IRQ PB1200_ETH_INT | 186 | #define AU1XXX_SMC91111_IRQ PB1200_ETH_INT |
| 187 | 187 | ||
| 188 | #define AU1XXX_ATA_PHYS_ADDR (0x0C800000) | 188 | #define AU1XXX_ATA_PHYS_ADDR (0x0C800000) |
| 189 | #define AU1XXX_ATA_PHYS_LEN (0x100) | 189 | #define AU1XXX_ATA_REG_OFFSET (5) |
| 190 | #define AU1XXX_ATA_REG_OFFSET (5) | 190 | #define AU1XXX_ATA_PHYS_LEN (16 << AU1XXX_ATA_REG_OFFSET) |
| 191 | #define AU1XXX_ATA_INT PB1200_IDE_INT | 191 | #define AU1XXX_ATA_INT PB1200_IDE_INT |
| 192 | #define AU1XXX_ATA_DDMA_REQ DSCR_CMD0_DMA_REQ1; | 192 | #define AU1XXX_ATA_DDMA_REQ DSCR_CMD0_DMA_REQ1; |
| 193 | #define AU1XXX_ATA_RQSIZE 128 | 193 | #define AU1XXX_ATA_RQSIZE 128 |
