summaryrefslogtreecommitdiff
path: root/sys/dev/ic/wdc.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-08-05 00:12:10 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-08-05 00:12:10 +0000
commit1221573955242938639e9f35592683122de5f208 (patch)
tree44beaee27c809beda39a093847771d258ef0c0cb /sys/dev/ic/wdc.c
parent62a3e8614928df4d912b63ccfb337bb715e1dcd3 (diff)
Make IDE compile on alpha again:
use b* instead of mem* functions, adhere to NISADMA for DMA support.
Diffstat (limited to 'sys/dev/ic/wdc.c')
-rw-r--r--sys/dev/ic/wdc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index 66d18d9f75b..73dd313768b 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.7 1999/07/23 08:34:15 deraadt Exp $ */
+/* $OpenBSD: wdc.c,v 1.8 1999/08/05 00:12:09 niklas Exp $ */
/* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */
@@ -436,7 +436,7 @@ wdcattach(chp)
* the config machinery will print
* "atapibus at xxx not configured"
*/
- memset(&aa_link, 0, sizeof(struct ata_atapi_attach));
+ bzero(&aa_link, sizeof(struct ata_atapi_attach));
aa_link.aa_type = T_ATAPI;
aa_link.aa_channel = chp->channel;
aa_link.aa_openings = 1;
@@ -452,7 +452,7 @@ wdcattach(chp)
(DRIVE_ATA | DRIVE_OLD)) == 0) {
continue;
}
- memset(&aa_link, 0, sizeof(struct ata_atapi_attach));
+ bzero(&aa_link, sizeof(struct ata_atapi_attach));
aa_link.aa_type = T_ATA;
aa_link.aa_channel = chp->channel;
aa_link.aa_openings = 1;
@@ -822,7 +822,7 @@ wdc_probe_caps(drvp)
*/
drvp->drive_flags |= DRIVE_CAP32;
ata_get_params(drvp, AT_POLL, &params2);
- if (memcmp(&params, &params2, sizeof(struct ataparams)) != 0) {
+ if (bcmp(&params, &params2, sizeof(struct ataparams)) != 0) {
/* Not good. fall back to 16bits */
drvp->drive_flags &= ~DRIVE_CAP32;
printf("16-bit");
@@ -1366,7 +1366,7 @@ wdc_get_xfer(flags)
if ((xfer->c_flags & C_INUSE) != 0)
panic("wdc_get_xfer: xfer already in use\n");
#endif
- memset(xfer, 0, sizeof(struct wdc_xfer));
+ bzero(xfer, sizeof(struct wdc_xfer));
xfer->c_flags = C_INUSE;
return xfer;
}