diff options
author | Mushtaq Khan <mushtaqk_921@yahoo.co.in> | 2007-06-30 18:50:48 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-06-30 18:50:48 +0200 |
commit | 1f2a05898658900dc5717761e27abf2052e67e13 (patch) | |
tree | 75ace557b5f5dd983c637acbddda3475615de861 /include/sata.h | |
parent | 822d55365bb557e084d0e33625a6dedcc866110b (diff) | |
download | u-boot-imx-1f2a05898658900dc5717761e27abf2052e67e13.zip u-boot-imx-1f2a05898658900dc5717761e27abf2052e67e13.tar.gz u-boot-imx-1f2a05898658900dc5717761e27abf2052e67e13.tar.bz2 |
Fix S-ATA support.
Signed-off-by: mushtaq khan <mushtaqk_921@yahoo.co.in>
Diffstat (limited to 'include/sata.h')
-rw-r--r-- | include/sata.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/sata.h b/include/sata.h index a8713f8..165b471 100644 --- a/include/sata.h +++ b/include/sata.h @@ -28,8 +28,8 @@ struct sata_port { struct sata_ioports ioaddr; /* ATA cmd/ctl/dma reg blks */ unsigned char ctl_reg; unsigned char last_ctl; - unsigned char port_state; /* 1-port is present and */ - 0-port is not available */ + unsigned char port_state; /* 1-port is available and */ + /* 0-port is not available */ unsigned char dev_mask; }; @@ -74,18 +74,18 @@ int sata_devchk (struct sata_ioports *ioaddr, int dev); void dev_select (struct sata_ioports *ioaddr, int dev); u8 sata_busy_wait (struct sata_ioports *ioaddr, int bits, unsigned int max); u8 sata_chk_status (struct sata_ioports *ioaddr); -ulong sata_read (int device, lbaint_t blknr, ulong blkcnt, ulong * buffer); -ulong sata_write (int device, lbaint_t blknr, ulong blkcnt, ulong * buffer); +ulong sata_read (int device, ulong blknr,lbaint_t blkcnt, void * buffer); +ulong sata_write (int device,ulong blknr, lbaint_t blkcnt, void * buffer); void msleep (int count); #else extern int sata_bus_softreset (int num); extern void sata_identify (int num, int dev); extern void sata_port (struct sata_ioports *ioport); extern void set_Feature_cmd (int num, int dev); -extern ulong sata_read (int device, lbaint_t blknr, - ulong blkcnt, ulong * buffer); -extern ulong sata_write (int device, lbaint_t blknr, - ulong blkcnt, ulong * buffer); +extern ulong sata_read (int device, ulong blknr, + lbaint_t blkcnt, void * buffer); +extern ulong sata_write (int device, ulong blknr, + lbaint_t blkcnt, void * buffer); extern void msleep (int count); #endif |