-/* $OpenBSD: wd.c,v 1.17 1996/08/07 01:53:01 downsj Exp $ */
+/* $OpenBSD: wd.c,v 1.18 1996/09/16 02:36:10 downsj Exp $ */
/* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */
/*
*q++ = '\0';
printf(": <%s>\n", buf);
- printf("%s: %dMB, %d cyl, %d head, %d sec, %d bytes/sec\n",
- self->dv_xname,
- d_link->sc_params.wdp_cylinders *
- (d_link->sc_params.wdp_heads * d_link->sc_params.wdp_sectors) /
- (1048576 / DEV_BSIZE),
- d_link->sc_params.wdp_cylinders,
- d_link->sc_params.wdp_heads,
- d_link->sc_params.wdp_sectors,
- DEV_BSIZE);
+ if (d_link->sc_lp->d_type != DTYPE_ST506) {
+ printf("%s: %dMB, %d cyl, %d head, %d sec, %d bytes/sec\n",
+ self->dv_xname,
+ d_link->sc_params.wdp_cylinders *
+ (d_link->sc_params.wdp_heads *
+ d_link->sc_params.wdp_sectors) / (1048576 / DEV_BSIZE),
+ d_link->sc_params.wdp_cylinders,
+ d_link->sc_params.wdp_heads,
+ d_link->sc_params.wdp_sectors,
+ DEV_BSIZE);
+ }
#if NISADMA > 0
if ((d_link->sc_params.wdp_capabilities & WD_CAP_DMA) != 0 &&
-/* $OpenBSD: wdc.c,v 1.8 1996/09/11 07:27:03 downsj Exp $ */
+/* $OpenBSD: wdc.c,v 1.9 1996/09/16 02:36:08 downsj Exp $ */
/* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */
/*
while ((wdc->sc_flags & WDCF_ACTIVE) != 0) {
wdc->sc_flags |= WDCF_WANTED;
- if ((error = tsleep(wdc, PRIBIO | PCATCH, "wdprm", 0)) != 0) {
+ error = tsleep(wdc, PRIBIO | PCATCH, "wdprm", 0);
+ if (error != 0) {
splx(s);
return error;
}
sizeof d_link->sc_lp->d_typename);
d_link->sc_lp->d_type = DTYPE_ST506;
- strncpy(d_link->sc_params.wdp_model, "unknown",
+ strncpy(d_link->sc_params.wdp_model, "ST506/MFM",
sizeof d_link->sc_params.wdp_model);
d_link->sc_params.wdp_config = WD_CFG_FIXED;
d_link->sc_params.wdp_cylinders = 1024;