Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76916
b: refs/heads/master
c: f885521
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jan 23, 2008
1 parent 7203159 commit c7521c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ca4e439640cd1d3659cbcf60e7a73c2ae0450b3
refs/heads/master: f885521f0aa4a4f9d339cf32a4821a56f3f97426
19 changes: 11 additions & 8 deletions trunk/drivers/ata/pata_pcmcia.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,28 @@ static int pcmcia_set_mode_8bit(struct ata_link *link,

/**
* ata_data_xfer_8bit - Transfer data by 8bit PIO
* @adev: device to target
* @dev: device to target
* @buf: data buffer
* @buflen: buffer length
* @write_data: read/write
* @rw: read/write
*
* Transfer data from/to the device data register by 8 bit PIO.
*
* LOCKING:
* Inherited from caller.
*/

static void ata_data_xfer_8bit(struct ata_device *adev, unsigned char *buf,
unsigned int buflen, int write_data)
static unsigned int ata_data_xfer_8bit(struct ata_device *dev,
unsigned char *buf, unsigned int buflen, int rw)
{
struct ata_port *ap = adev->link->ap;
if (write_data)
iowrite8_rep(ap->ioaddr.data_addr, buf, buflen);
else
struct ata_port *ap = dev->link->ap;

if (rw == READ)
ioread8_rep(ap->ioaddr.data_addr, buf, buflen);
else
iowrite8_rep(ap->ioaddr.data_addr, buf, buflen);

return buflen;
}


Expand Down

0 comments on commit c7521c5

Please sign in to comment.