*BSD News Article 8551


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!hp9000.csc.cuhk.hk!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!uunet!telebit!bjork
From: bjork@telebit.com (Steven Bjork)
Subject: Rearranging Julian's SCSI driver
Message-ID: <1992Dec4.154147.11668@telebit.com>
Originator: bjork@napa
Sender: news@telebit.com
Nntp-Posting-Host: napa.telebit.com
Organization: Telebit Corporation; Sunnyvale, CA, USA
Date: Fri, 4 Dec 1992 15:41:47 GMT
Lines: 22


I've changed Julian's SCSI driver so that I can compile
with only one of the sd, st, or cd devices configured.
The kit assumes you want everything and breaks if you 
don't include all three devices.

I've also changed the device numbers so that it leaves 
the original scsi driver alone, rather than trying to
#ifdef one or the other. It required a new MAKEDEV since
this changed the major device numbering scheme.

Looking at the driver, it appears all the debugging code
can be bracketed with #ifdef DEBUG--this should reduce the
size of the driver somewhat, and should allow for including
more devices in building your kernels.

Julian mentioned a possible update, and I also understand 0.2
is well underway. My question is, should I make my device
hacks above available, and do the work on putting in the
#ifdefs to reduce the SCSI code, or hold off?

--Steven