diff options
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index ac6136001615..ad0e9955f73c 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -618,60 +618,6 @@ abort: | |||
618 | 618 | ||
619 | EXPORT_SYMBOL(ide_unregister); | 619 | EXPORT_SYMBOL(ide_unregister); |
620 | 620 | ||
621 | |||
622 | /** | ||
623 | * ide_setup_ports - set up IDE interface ports | ||
624 | * @hw: register descriptions | ||
625 | * @base: base register | ||
626 | * @offsets: table of register offsets | ||
627 | * @ctrl: control register | ||
628 | * @ack_irq: IRQ ack | ||
629 | * @irq: interrupt lie | ||
630 | * | ||
631 | * Setup hw_regs_t structure described by parameters. You | ||
632 | * may set up the hw structure yourself OR use this routine to | ||
633 | * do it for you. This is basically a helper | ||
634 | * | ||
635 | */ | ||
636 | |||
637 | void ide_setup_ports ( hw_regs_t *hw, | ||
638 | unsigned long base, int *offsets, | ||
639 | unsigned long ctrl, unsigned long intr, | ||
640 | ide_ack_intr_t *ack_intr, | ||
641 | /* | ||
642 | * ide_io_ops_t *iops, | ||
643 | */ | ||
644 | int irq) | ||
645 | { | ||
646 | int i; | ||
647 | |||
648 | memset(hw, 0, sizeof(hw_regs_t)); | ||
649 | for (i = 0; i < IDE_NR_PORTS; i++) { | ||
650 | if (offsets[i] == -1) { | ||
651 | switch(i) { | ||
652 | case IDE_CONTROL_OFFSET: | ||
653 | hw->io_ports[i] = ctrl; | ||
654 | break; | ||
655 | #if defined(CONFIG_AMIGA) || defined(CONFIG_MAC) | ||
656 | case IDE_IRQ_OFFSET: | ||
657 | hw->io_ports[i] = intr; | ||
658 | break; | ||
659 | #endif /* (CONFIG_AMIGA) || (CONFIG_MAC) */ | ||
660 | default: | ||
661 | hw->io_ports[i] = 0; | ||
662 | break; | ||
663 | } | ||
664 | } else { | ||
665 | hw->io_ports[i] = base + offsets[i]; | ||
666 | } | ||
667 | } | ||
668 | hw->irq = irq; | ||
669 | hw->ack_intr = ack_intr; | ||
670 | /* | ||
671 | * hw->iops = iops; | ||
672 | */ | ||
673 | } | ||
674 | |||
675 | void ide_init_port_hw(ide_hwif_t *hwif, hw_regs_t *hw) | 621 | void ide_init_port_hw(ide_hwif_t *hwif, hw_regs_t *hw) |
676 | { | 622 | { |
677 | memcpy(hwif->io_ports, hw->io_ports, sizeof(hwif->io_ports)); | 623 | memcpy(hwif->io_ports, hw->io_ports, sizeof(hwif->io_ports)); |