From owner-freebsd-hackers Thu Apr 20 4:44:38 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 36E8537B564; Thu, 20 Apr 2000 04:44:21 -0700 (PDT) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id NAA96256; Thu, 20 Apr 2000 13:42:12 +0200 (CEST) (envelope-from sos) From: Soren Schmidt Message-Id: <200004201142.NAA96256@freebsd.dk> Subject: Re: NEC 260 CDROM detection under FreeBSD 4.0-RELESE/STABLE In-Reply-To: from "Alexey N. Dokuchaev" at "Apr 17, 2000 04:02:32 pm" To: danfe@inet.ssc.nsu.ru (Alexey N. Dokuchaev) Date: Thu, 20 Apr 2000 13:42:12 +0200 (CEST) Cc: freebsd-hackers@FreeBSD.ORG, freebsd-hardware@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-hackers" in the body of the message