Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2000 13:42:12 +0200 (CEST)
From:      Soren Schmidt <sos@freebsd.dk>
To:        danfe@inet.ssc.nsu.ru (Alexey N. Dokuchaev)
Cc:        freebsd-hackers@FreeBSD.ORG, freebsd-hardware@FreeBSD.ORG
Subject:   Re: NEC 260 CDROM detection under FreeBSD 4.0-RELESE/STABLE
Message-ID:  <200004201142.NAA96256@freebsd.dk>
In-Reply-To: <Pine.LNX.4.10.10004171515120.31294-100000@inet.ssc.nsu.ru> from "Alexey N. Dokuchaev" at "Apr 17, 2000 04:02:32 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
It seems Alexey N. Dokuchaev wrote:
> Hello!
> 
> I've been using FreeBSD 3.4 for quite a while, and my CDROM, being quite
> old and weird (NEC 260 model) was detected by both BIOS and FreeBSD.

Judging on the output it seems the NEC is one of the old devices that
doesn't say its a CDROM...

Try this patch:
Index: atapi-all.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/atapi-all.c,v
retrieving revision 1.51
diff -u -r1.51 atapi-all.c
--- atapi-all.c 2000/04/18 15:15:02     1.51
+++ atapi-all.c 2000/04/20 09:41:58
@@ -93,6 +93,7 @@
     switch (ATP_PARAM->device_type) {
 #if NATAPICD > 0
     case ATAPI_TYPE_CDROM:
+try_cdrom:
        if (acdattach(atp))
            goto notfound;
        break; 
@@ -100,7 +101,12 @@
 #if NATAPIFD > 0
     case ATAPI_TYPE_DIRECT:
        if (afdattach(atp))
+#if NATAPICD > 0
+           ATP_PARAM->device_type = ATAPI_TYPE_CDROM;
+           goto try_cdrom;
+#else
            goto notfound;
+#endif
        break; 
 #endif
 #if NATAPIST > 0


-Søren


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004201142.NAA96256>