-/* $OpenBSD: acd.c,v 1.12 1996/09/04 22:13:45 niklas Exp $ */
+/* $OpenBSD: acd.c,v 1.13 1996/09/11 07:22:03 downsj Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
*/
cap = &acd->mode_page.page_cap;
- printf ("%s: ", self->dv_xname);
- if (cap->cur_speed != cap->max_speed)
- printf ("%d/", cap->cur_speed * 1000 / 1024);
- printf ("%dKb/sec", cap->max_speed * 1000 / 1024);
- if (cap->buf_size)
- printf (", %dKb cache", cap->buf_size);
- if (cap->format_cap & FORMAT_AUDIO_PLAY)
- printf (", audio play");
- if (cap->max_vol_levels)
- printf (", %d volume levels", cap->max_vol_levels);
- printf ("\n");
+ /* Don't print anything unless it looks valid. */
+ if (cap->cur_speed > 0) {
+ printf ("%s: ", self->dv_xname);
+ if (cap->cur_speed != cap->max_speed)
+ printf ("%d/", cap->cur_speed * 1000 / 1024);
+ printf ("%dKb/sec", cap->max_speed * 1000 / 1024);
+ if (cap->buf_size)
+ printf (", %dKb cache", cap->buf_size);
+ if (cap->format_cap & FORMAT_AUDIO_PLAY)
+ printf (", audio play");
+ if (cap->max_vol_levels)
+ printf (", %d volume levels", cap->max_vol_levels);
+ printf ("\n");
+ }
}
/*
-/* $OpenBSD: atapiconf.c,v 1.9 1996/09/06 12:19:10 mickey Exp $ */
+/* $OpenBSD: atapiconf.c,v 1.10 1996/09/11 07:22:04 downsj Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
{ATAPI_DEVICE_TYPE_DAD, ATAPI_REMOVABLE,
"NEC CD-ROM DRIVE:260", "3.04", AQUIRK_CDROM},
/* NEC Multispin 2Vi */
- {ATAPI_DEVICE_TYPE_CD, ATAPI_REMOVABLE,
- "NEC CD-ROM DRIVE:273", "4.21", AQUIRK_TIMING},
{0, 0, NULL, NULL, 0} /* The End */
};
-/* $OpenBSD: atapilink.h,v 1.7 1996/09/06 12:19:12 mickey Exp $ */
+/* $OpenBSD: atapilink.h,v 1.8 1996/09/11 07:22:05 downsj Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
#define AQUIRK_CDROM 0x01 /* device is a CD-ROM */
#define AQUIRK_LITTLETOC 0x02 /* Audio TOC uses wrong byte order */
#define AQUIRK_NOCAPACITY 0x04 /* no READ_CD_CAPACITY command */
-#define AQUIRK_TIMING 0x08 /* timing problems */
void (*start) __P((void *)); /* device start routine */
int (*done) __P((void *)); /* device done routine */
};