diff options
author | sos <sos@FreeBSD.org> | 2001-10-06 11:07:04 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-10-06 11:07:04 +0000 |
commit | 910868a68fad084aa307651c4ce629496e4cbc77 (patch) | |
tree | 19e354ace73ab242b6d780a15f7f18ee6c43ada9 /sys/dev/ata/ata-raid.c | |
parent | db02c4b19d46abd5825669969370c0bb0e5bf4da (diff) | |
download | FreeBSD-src-910868a68fad084aa307651c4ce629496e4cbc77.zip FreeBSD-src-910868a68fad084aa307651c4ce629496e4cbc77.tar.gz |
Update with latest ATA/ATAPI ver 6 rev 2 items.
Diffstat (limited to 'sys/dev/ata/ata-raid.c')
-rw-r--r-- | sys/dev/ata/ata-raid.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c index 7b9cfc3..480b5ac 100644 --- a/sys/dev/ata/ata-raid.c +++ b/sys/dev/ata/ata-raid.c @@ -549,9 +549,8 @@ int ar_read(struct ad_softc *adp, u_int32_t lba, int count, char *data) { if (ata_command(adp->controller, adp->unit | ATA_D_LBA, - (count > DEV_BSIZE) ? ATA_C_READ_MUL : ATA_C_READ, - (lba >> 8) & 0xffff, (lba >> 24) & 0xff, lba & 0xff, - count / DEV_BSIZE, 0, ATA_WAIT_INTR)) { + (count > DEV_BSIZE) ? ATA_C_READ_MUL : ATA_C_READ, + lba, count / DEV_BSIZE, 0, ATA_WAIT_INTR)) { ata_printf(adp->controller, adp->unit, "RAID read config failed\n"); return 1; } |