LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 4/6] ide-h8300: add ->{in,out}put_data methods
@ 2008-03-30 19:43 Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; only message in thread
From: Bartlomiej Zolnierkiewicz @ 2008-03-30 19:43 UTC (permalink / raw)
To: linux-ide; +Cc: linux-kernel
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/h8300/ide-h8300.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
Index: b/drivers/ide/h8300/ide-h8300.c
===================================================================
--- a/drivers/ide/h8300/ide-h8300.c
+++ b/drivers/ide/h8300/ide-h8300.c
@@ -56,6 +56,16 @@ static void mm_insw(unsigned long addr,
*bp = bswap(*(volatile u16 *)addr);
}
+static void h8300_input_data(ide_drive_t *drive, void *buf, unsigned int len)
+{
+ mm_insw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2);
+}
+
+static void h8300_output_data(ide_drive_t *drive, void *buf, unsigned int len)
+{
+ mm_outsw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2);
+}
+
#define H8300_IDE_GAP (2)
static inline void hw_setup(hw_regs_t *hw)
@@ -74,6 +84,9 @@ static inline void hwif_setup(ide_hwif_t
{
default_hwif_iops(hwif);
+ hwif->input_data = h8300_input_data;
+ hwif->output_data = h8300_output_data;
+
hwif->OUTW = mm_outw;
hwif->OUTSW = mm_outsw;
hwif->INW = mm_inw;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-30 19:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-30 19:43 [PATCH 4/6] ide-h8300: add ->{in,out}put_data methods Bartlomiej Zolnierkiewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).