login
Header Space

 
 

[PATCH] au1xxx-ide: add ->{in,out}put_data methods (take 2)

Previous thread: [PATCH]: Factor out PTY index allocation by sukadev on Wednesday, April 16, 2008 - 6:17 pm. (6 messages)

Next thread: [PATCH] scc_pata: add ->{in,out}put_data methods (take 2) by Bartlomiej Zolnierkiewicz on Wednesday, April 16, 2008 - 6:09 pm. (1 message)
To: <linux-ide@...>
Cc: <linux-kernel@...>
Date: Wednesday, April 16, 2008 - 6:14 pm

v2:

* Update -&gt;{in,out}_data methods to take 'struct request *rq' argument.

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
---
replacement patch for the one in the IDE tree

 drivers/ide/mips/au1xxx-ide.c |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

Index: b/drivers/ide/mips/au1xxx-ide.c
===================================================================
--- a/drivers/ide/mips/au1xxx-ide.c
+++ b/drivers/ide/mips/au1xxx-ide.c
@@ -88,6 +88,17 @@ void auide_outsw(unsigned long port, voi
 	ctp-&gt;cur_ptr = au1xxx_ddma_get_nextptr_virt(dp);
 }
 
+static void au1xxx_input_data(ide_drive_t *drive, struct request *rq,
+			      void *buf, unsigned int len)
+{
+	auide_insw(drive-&gt;hwif-&gt;io_ports.data_addr, buf, (len + 1) / 2);
+}
+
+static void au1xxx_output_data(ide_drive_t *drive, struct request *rq,
+			       void *buf, unsigned int len)
+{
+	auide_outsw(drive-&gt;hwif-&gt;io_ports.data_addr, buf, (len + 1) / 2);
+}
 #endif
 
 static void au1xxx_set_pio_mode(ide_drive_t *drive, const u8 pio)
@@ -598,6 +609,9 @@ static int au_ide_probe(struct device *d
 	*/
 
 #ifdef CONFIG_BLK_DEV_IDE_AU1XXX_PIO_DBDMA	
+	hwif-&gt;input_data  = au1xxx_input_data;
+	hwif-&gt;output_data = au1xxx_output_data;
+
 	hwif-&gt;INSW                      = auide_insw;
 	hwif-&gt;OUTSW                     = auide_outsw;
 #endif
--
Previous thread: [PATCH]: Factor out PTY index allocation by sukadev on Wednesday, April 16, 2008 - 6:17 pm. (6 messages)

Next thread: [PATCH] scc_pata: add ->{in,out}put_data methods (take 2) by Bartlomiej Zolnierkiewicz on Wednesday, April 16, 2008 - 6:09 pm. (1 message)
speck-geostationary