summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMushtaq Khan <mushtaqk_921@yahoo.co.in>2007-06-30 18:50:48 +0200
committerWolfgang Denk <wd@denx.de>2007-06-30 18:50:48 +0200
commit1f2a05898658900dc5717761e27abf2052e67e13 (patch)
tree75ace557b5f5dd983c637acbddda3475615de861 /common
parent822d55365bb557e084d0e33625a6dedcc866110b (diff)
downloadu-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 'common')
-rw-r--r--common/cmd_sata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/cmd_sata.c b/common/cmd_sata.c
index 2e601a7..bd4c11f 100644
--- a/common/cmd_sata.c
+++ b/common/cmd_sata.c
@@ -375,9 +375,9 @@ msleep (int count)
}
ulong
-sata_read (int device, lbaint_t blknr, ulong blkcnt, ulong * buffer)
+sata_read (int device, ulong blknr,lbaint_t blkcnt, void * buff)
{
- ulong n = 0;
+ ulong n = 0, *buffer = (ulong *)buff;
u8 dev = 0, num = 0, mask = 0, status = 0;
#ifdef CONFIG_LBA48
@@ -482,9 +482,9 @@ sata_read (int device, lbaint_t blknr, ulong blkcnt, ulong * buffer)
}
ulong
-sata_write (int device, lbaint_t blknr, ulong blkcnt, ulong * buffer)
+sata_write (int device, ulong blknr,lbaint_t blkcnt, void * buff)
{
- ulong n = 0;
+ ulong n = 0, *buffer = (ulong *)buff;
unsigned char status = 0, num = 0, dev = 0, mask = 0;
#ifdef CONFIG_LBA48