aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/scc_pata.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:52 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:52 -0400
commitb73c7ee25da6133f97f47ffd3557288417da7c76 (patch)
tree0d348c81294d246b8417aff6e24502c93b312505 /drivers/ide/pci/scc_pata.c
parentc6dfa867bb45f4bff2e48f3bc89ab1d6a7ab4c21 (diff)
ide: add ->read_status method
* Remove ide_read_status() inline helper. * Add ->read_status method for reading ATA Status register and use it instead of ->INB. While at it: * Don't use HWGROUP() macro. 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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ide/pci/scc_pata.c b/drivers/ide/pci/scc_pata.c
index d140dfd565a4..3d72a5e03f3d 100644
--- a/drivers/ide/pci/scc_pata.c
+++ b/drivers/ide/pci/scc_pata.c
@@ -134,6 +134,11 @@ static void scc_exec_command(ide_hwif_t *hwif, u8 cmd)
134 eieio(); 134 eieio();
135} 135}
136 136
137static u8 scc_read_status(ide_hwif_t *hwif)
138{
139 return (u8)in_be32((void *)hwif->io_ports.status_addr);
140}
141
137static u8 scc_read_sff_dma_status(ide_hwif_t *hwif) 142static u8 scc_read_sff_dma_status(ide_hwif_t *hwif)
138{ 143{
139 return (u8)in_be32((void *)(hwif->dma_base + 4)); 144 return (u8)in_be32((void *)(hwif->dma_base + 4));
@@ -788,6 +793,7 @@ static void __devinit init_mmio_iops_scc(ide_hwif_t *hwif)
788 ide_set_hwifdata(hwif, ports); 793 ide_set_hwifdata(hwif, ports);
789 794
790 hwif->exec_command = scc_exec_command; 795 hwif->exec_command = scc_exec_command;
796 hwif->read_status = scc_read_status;
791 hwif->read_sff_dma_status = scc_read_sff_dma_status; 797 hwif->read_sff_dma_status = scc_read_sff_dma_status;
792 798
793 hwif->tf_load = scc_tf_load; 799 hwif->tf_load = scc_tf_load;