aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/scc_pata.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-28 17:44:41 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-28 17:44:41 -0400
commit7c0daf2681f140dd9f39cd95966f471b5c904d8a (patch)
treeb8ea0e987f5d2121f4f4e564c05d834c3ce30a89 /drivers/ide/pci/scc_pata.c
parentca545c1e75cd017bfd9a9b6c4f81f9b82ba20947 (diff)
ide: remove ->INW and ->OUTW methods
* Remove no longer used ->INW and ->OUTW methods. While at it: * scc_pata.c: scc_ide_{out,in}w() is called only in scc_tf_{load,read}() so inline it there. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/scc_pata.c')
-rw-r--r--drivers/ide/pci/scc_pata.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/drivers/ide/pci/scc_pata.c b/drivers/ide/pci/scc_pata.c
index cb635a66030e..a17f73ec577a 100644
--- a/drivers/ide/pci/scc_pata.c
+++ b/drivers/ide/pci/scc_pata.c
@@ -126,12 +126,6 @@ static u8 scc_ide_inb(unsigned long port)
126 return (u8)data; 126 return (u8)data;
127} 127}
128 128
129static u16 scc_ide_inw(unsigned long port)
130{
131 u32 data = in_be32((void*)port);
132 return (u16)data;
133}
134
135static void scc_ide_insw(unsigned long port, void *addr, u32 count) 129static void scc_ide_insw(unsigned long port, void *addr, u32 count)
136{ 130{
137 u16 *ptr = (u16 *)addr; 131 u16 *ptr = (u16 *)addr;
@@ -154,11 +148,6 @@ static void scc_ide_outb(u8 addr, unsigned long port)
154 out_be32((void*)port, addr); 148 out_be32((void*)port, addr);
155} 149}
156 150
157static void scc_ide_outw(u16 addr, unsigned long port)
158{
159 out_be32((void*)port, addr);
160}
161
162static void 151static void
163scc_ide_outbsync(ide_drive_t * drive, u8 addr, unsigned long port) 152scc_ide_outbsync(ide_drive_t * drive, u8 addr, unsigned long port)
164{ 153{
@@ -630,8 +619,8 @@ static void scc_tf_load(ide_drive_t *drive, ide_task_t *task)
630 ide_set_irq(drive, 1); 619 ide_set_irq(drive, 1);
631 620
632 if (task->tf_flags & IDE_TFLAG_OUT_DATA) 621 if (task->tf_flags & IDE_TFLAG_OUT_DATA)
633 scc_ide_outw((tf->hob_data << 8) | tf->data, 622 out_be32((void *)io_ports->data_addr,
634 io_ports->data_addr); 623 (tf->hob_data << 8) | tf->data);
635 624
636 if (task->tf_flags & IDE_TFLAG_OUT_HOB_FEATURE) 625 if (task->tf_flags & IDE_TFLAG_OUT_HOB_FEATURE)
637 scc_ide_outb(tf->hob_feature, io_ports->feature_addr); 626 scc_ide_outb(tf->hob_feature, io_ports->feature_addr);
@@ -666,7 +655,7 @@ static void scc_tf_read(ide_drive_t *drive, ide_task_t *task)
666 struct ide_taskfile *tf = &task->tf; 655 struct ide_taskfile *tf = &task->tf;
667 656
668 if (task->tf_flags & IDE_TFLAG_IN_DATA) { 657 if (task->tf_flags & IDE_TFLAG_IN_DATA) {
669 u16 data = scc_ide_inw(io_ports->data_addr); 658 u16 data = (u16)in_be32((void *)io_ports->data_addr);
670 659
671 tf->data = data & 0xff; 660 tf->data = data & 0xff;
672 tf->hob_data = (data >> 8) & 0xff; 661 tf->hob_data = (data >> 8) & 0xff;
@@ -755,10 +744,8 @@ static void __devinit init_mmio_iops_scc(ide_hwif_t *hwif)
755 hwif->output_data = scc_output_data; 744 hwif->output_data = scc_output_data;
756 745
757 hwif->INB = scc_ide_inb; 746 hwif->INB = scc_ide_inb;
758 hwif->INW = scc_ide_inw;
759 hwif->OUTB = scc_ide_outb; 747 hwif->OUTB = scc_ide_outb;
760 hwif->OUTBSYNC = scc_ide_outbsync; 748 hwif->OUTBSYNC = scc_ide_outbsync;
761 hwif->OUTW = scc_ide_outw;
762 749
763 hwif->dma_base = dma_base; 750 hwif->dma_base = dma_base;
764 hwif->config_data = ports->ctl; 751 hwif->config_data = ports->ctl;