Date: Mon, 21 Jul 1997 05:52:10 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: msmith@atrad.adelaide.edu.au (Michael Smith) Cc: msmith@atrad.adelaide.edu.au, multimedia@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: sound driver structure and configuration Message-ID: <199707210352.FAA20510@labinfo.iet.unipi.it> In-Reply-To: <199707210245.MAA20440@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Jul 21, 97 12:15:10 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> Luigi Rizzo stands accused of saying: > > > > > > > > device pcmX at isa ? port? tty irq N drq D flags F vector pcmintr ... > > > Thes should ideally be "at snd?", eg. like the 'disk' stuff, or just > > > 'device xxx' like the SCSI devices. They're _not_ "at isa?" in the > > > true sense of the word. > > > > right. But what are the implications of using "at xyz?" ? How do I test > > for a specific bus, etc. ? > > The way to go for that (at the moment) is like the PCI code; you use a > linker set to create an aggregated list of drivers, which you then > scan with your bus code. more or less this is what I do now. Except that I do not leave the user a choice of which modules to include and which not, and the actual selection of the driver to use (if necessary at all) is done through some bits of the 'flags' field. I have done this because in in the sound driver there are probably a couple of main operating modes (i.e. soundblaster and MSS) for the codec, and all the card-specific code is for initialization or handling special features of the board. And it is too complex to ask the user (possibly an inexperienced one) to produce a correct configuration file otherwise, with all the required options for his board. > If using the PnP stuff is of interest to you, you could help me out > with some suggestions for calling 16-bit protected-mode BIOS > interfaces from 32-bit (eg. FreeBSD kernel) mode 8) I have reams of unfortunately i am not enough familiar with the architecture of the system to help out on this... Cheers Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707210352.FAA20510>