Date: Fri, 15 Mar 1996 13:46:22 -0800 (PST) From: "JULIAN Elischer" <julian@ref.tfs.com> To: cau@cc.gatech.edu (Carlos Ugarte) Cc: freebsd-hackers@freebsd.org Subject: Re: Tips on developing a new SCSI driver? Message-ID: <199603152146.NAA23403@ref.tfs.com> In-Reply-To: <199603150623.BAA13696@oscar.cc.gatech.edu> from "Carlos Ugarte" at Mar 15, 96 01:23:29 am
next in thread | previous in thread | raw e-mail | index | archive | help
Ok well I can send you a partly done 1680 driver. this driver was for a much earlier version of the scsi system but it might give you some hints.. (this was before the 'scsi_link' structure existed so it doesn't fit into any current SCSI system. but it shoud be a starting point) > > > I asked this a couple of days ago on freebsd-scsi, but I never > saw the message come thru (or any responses), so I am asking > here. (I did subscribe, and I thought it wasn't a closed list...) I didn't see it.. > > I'd like to learn a little more about FreeBSD and hardware by > working on a SCSI driver. I have a spare Future Domain 1680 and > some free time to go along with it. What I do not have, though, > is a clue on where to get started. I've looked at the driver > source for a couple of others (aha1542.c, seagate.c) so I get the > gist of what would be involved. Is there a skeleton anywhere, or > any docs about device driver development? Unfortunatly there is no real docs about it.. the 1542 driver was the original, the 1742 and bt drivers were derived from them and the ultrastore drivers were developed from one of the above. the NCR and aic (adaptec 29xx etc.) drivers were independentlyu written to fit into the framework, using the others as a rough guide. from my recolection the 1680 card is pretty dumb. so you probably should base the driver on one of the drivers for a card that does low level stuff (msg layer stuff) My guess is that the 1522 driver (aic) driver might be suitable as a model. > Anything from how the > kernel interfaces with the driver, how the configuration file > affects things, what other files to touch (I recall seeing a > files.i386 somewhere), and so on. Every time you update the > driver, do you have to shutdown the system and reboot, or is > there a better/easier way? I have a second SCSI hard drive (my > system boots off a SCSI drive on an aha1542cf), a DAT drive and a > CD-ROM drive, so if I ever get anything running I could test it > on different devices. send me questions and I'll be glad to help. I'll try send you the 1670 driver separatly. I make no judgements about how good it is because it was written by someone else and I haven't looked at it much.. It could read but failed on writing julian >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603152146.NAA23403>