aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/scc_pata.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:51 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:51 -0400
commitc6dfa867bb45f4bff2e48f3bc89ab1d6a7ab4c21 (patch)
tree54d9322fad75e48fb548e182fbb87d06a06cd048 /drivers/ide/pci/scc_pata.c
parentebb00fb55d0566bb3e81518122a57b4b3bedf1e4 (diff)
ide: add ->exec_command method
Add ->exec_command method for writing ATA Command register and use it instead of ->OUTBSYNC. There should be no functional changes caused by this patch. 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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/ide/pci/scc_pata.c b/drivers/ide/pci/scc_pata.c
index fc163a7772a7..d140dfd565a4 100644
--- a/drivers/ide/pci/scc_pata.c
+++ b/drivers/ide/pci/scc_pata.c
@@ -126,6 +126,14 @@ static u8 scc_ide_inb(unsigned long port)
126 return (u8)data; 126 return (u8)data;
127} 127}
128 128
129static void scc_exec_command(ide_hwif_t *hwif, u8 cmd)
130{
131 out_be32((void *)hwif->io_ports.command_addr, cmd);
132 eieio();
133 in_be32((void *)(hwif->dma_base + 0x01c));
134 eieio();
135}
136
129static u8 scc_read_sff_dma_status(ide_hwif_t *hwif) 137static u8 scc_read_sff_dma_status(ide_hwif_t *hwif)
130{ 138{
131 return (u8)in_be32((void *)(hwif->dma_base + 4)); 139 return (u8)in_be32((void *)(hwif->dma_base + 4));
@@ -779,6 +787,7 @@ static void __devinit init_mmio_iops_scc(ide_hwif_t *hwif)
779 787
780 ide_set_hwifdata(hwif, ports); 788 ide_set_hwifdata(hwif, ports);
781 789
790 hwif->exec_command = scc_exec_command;
782 hwif->read_sff_dma_status = scc_read_sff_dma_status; 791 hwif->read_sff_dma_status = scc_read_sff_dma_status;
783 792
784 hwif->tf_load = scc_tf_load; 793 hwif->tf_load = scc_tf_load;