diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-28 17:44:37 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-28 17:44:37 -0400 |
commit | 70f91e0d1410f77e0a22aa78fa2d591f1fd691a5 (patch) | |
tree | 6e492708bb32ccf32b0e5a3ebcc965f622ac6d5e /drivers | |
parent | efa3db1bb70c45a384419fdc257723cb167905ff (diff) |
au1xxx-ide: add ->{in,out}put_data methods (take 2)
v2:
* Update ->{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 <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/mips/au1xxx-ide.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c index f47ae1dc06ee..b28fa794b314 100644 --- a/drivers/ide/mips/au1xxx-ide.c +++ b/drivers/ide/mips/au1xxx-ide.c | |||
@@ -86,6 +86,17 @@ void auide_outsw(unsigned long port, void *addr, u32 count) | |||
86 | ctp->cur_ptr = au1xxx_ddma_get_nextptr_virt(dp); | 86 | ctp->cur_ptr = au1xxx_ddma_get_nextptr_virt(dp); |
87 | } | 87 | } |
88 | 88 | ||
89 | static void au1xxx_input_data(ide_drive_t *drive, struct request *rq, | ||
90 | void *buf, unsigned int len) | ||
91 | { | ||
92 | auide_insw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); | ||
93 | } | ||
94 | |||
95 | static void au1xxx_output_data(ide_drive_t *drive, struct request *rq, | ||
96 | void *buf, unsigned int len) | ||
97 | { | ||
98 | auide_outsw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); | ||
99 | } | ||
89 | #endif | 100 | #endif |
90 | 101 | ||
91 | static void au1xxx_set_pio_mode(ide_drive_t *drive, const u8 pio) | 102 | static void au1xxx_set_pio_mode(ide_drive_t *drive, const u8 pio) |
@@ -596,6 +607,9 @@ static int au_ide_probe(struct device *dev) | |||
596 | */ | 607 | */ |
597 | 608 | ||
598 | #ifdef CONFIG_BLK_DEV_IDE_AU1XXX_PIO_DBDMA | 609 | #ifdef CONFIG_BLK_DEV_IDE_AU1XXX_PIO_DBDMA |
610 | hwif->input_data = au1xxx_input_data; | ||
611 | hwif->output_data = au1xxx_output_data; | ||
612 | |||
599 | hwif->INSW = auide_insw; | 613 | hwif->INSW = auide_insw; |
600 | hwif->OUTSW = auide_outsw; | 614 | hwif->OUTSW = auide_outsw; |
601 | #endif | 615 | #endif |