From owner-freebsd-current Thu Oct 26 13:24:17 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA22183 for current-outgoing; Thu, 26 Oct 1995 13:24:17 -0700 Received: from meter.eng.uci.edu (root@meter.eng.uci.edu [128.200.85.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA22178 for ; Thu, 26 Oct 1995 13:24:14 -0700 Received: from newport.ece.uci.edu by meter.eng.uci.edu (8.7) id NAA03242; Thu, 26 Oct 1995 13:24:08 -0700 (PDT) Received: from localhost by newport.ece.uci.edu (8.7) id NAA27215; Thu, 26 Oct 1995 13:24:06 -0700 (PDT) Message-Id: <199510262024.NAA27215@newport.ece.uci.edu> To: odiug@gom.informatik.rwth-aachen.de (Guido Muesch) cc: freebsd-current@freebsd.org Subject: Re: Where is IDE CDROM? In-reply-to: Your message of "Thu, 26 Oct 1995 13:10:21." <9510261210.AA12214@gom.informatik.rwth-aachen.de> Date: Thu, 26 Oct 1995 13:24:03 -0700 From: Steven Wallace Sender: owner-current@freebsd.org Precedence: bulk > #ifndef ATAPI_MODULE > # define ATAPI_STATIC > #endif > > I changed that and the kernel seems to recognizes my CD-Rom, but the kernel > crashes in wd.c:wcdattach trying to call atapi_request_immediate. > > Ist this fixed by now, or do I have a great misunderstanding here? > My 'current' is a few days old now. > This is what you have to do: In your config, add: options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC device wcd0 #IDE CD-ROM This will compile everything you need for the ATAPI driver in the kernel. Alternatively, if you want to just be able to load the lkm, ONLY define options ATAPI. This got me confused for a while until I looked at the code closely. Probably should be documented inside LINT. Steven