diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1998-06-09 13:29:59 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1998-06-09 13:29:59 +0000 |
commit | 8aefe96db719527f8ba0ba227b0059735c44b3d7 (patch) | |
tree | 17bd4df4334d417bc74ad74cbfb023372656ca3f /sys/dev/atapi/atapiconf.c | |
parent | fa1411b56cc334a0103c46a3977cb3f9e42e9b9c (diff) |
Autodetect ATAPI CDROMS which do not support the ATAPI_READ_CD_CAPACITY
and fake it (meaning add AQUIRK_NOCAPACITY).
Also add an entry for NEC CD Changer reported by W. Scholten
<wouters@cistron.nl>.
Diffstat (limited to 'sys/dev/atapi/atapiconf.c')
-rw-r--r-- | sys/dev/atapi/atapiconf.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/atapi/atapiconf.c b/sys/dev/atapi/atapiconf.c index f3fe55d59b5..41ce88c12b4 100644 --- a/sys/dev/atapi/atapiconf.c +++ b/sys/dev/atapi/atapiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atapiconf.c,v 1.21 1998/01/02 18:22:07 provos Exp $ */ +/* $OpenBSD: atapiconf.c,v 1.22 1998/06/09 13:29:58 provos Exp $ */ /* * Copyright (c) 1996 Manuel Bouyer. All rights reserved. @@ -105,6 +105,9 @@ struct atapi_quirk_inquiry_pattern atapi_quirk_inquiry_patterns[] = { /* NEC 273 */ {ATAPI_DEVICE_TYPE_CD, ATAPI_REMOVABLE, "NEC CD-ROM DRIVE:273", "4.21", AQUIRK_NOTUR}, + /* NEC 4CD changer CDR-C251 */ + {ATAPI_DEVICE_TYPE_CD, ATAPI_REMOVABLE, + "NEC CD-ROM DRIVE:251", "4.14", AQUIRK_NOCAPACITY}, /* Sanyo 4x */ {ATAPI_DEVICE_TYPE_CD, ATAPI_REMOVABLE, "SANYO CRD-254P", "1.02", AQUIRK_NOCAPACITY}, @@ -355,6 +358,9 @@ atapi_exec_cmd(ad_link, cmd, cmd_size, databuf, datalen, rw, flags) atapi_free_pkt(pkt); } + if ((pkt->status & ERROR) && (pkt->error)) + status |= pkt->error << 8; + return status; } |