From owner-freebsd-hackers Sun Jul 20 21:54:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA22557 for hackers-outgoing; Sun, 20 Jul 1997 21:54:42 -0700 (PDT) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id VAA22543; Sun, 20 Jul 1997 21:54:34 -0700 (PDT) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id FAA20510; Mon, 21 Jul 1997 05:52:10 +0200 From: Luigi Rizzo Message-Id: <199707210352.FAA20510@labinfo.iet.unipi.it> Subject: Re: sound driver structure and configuration To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Mon, 21 Jul 1997 05:52:10 +0200 (MET DST) Cc: msmith@atrad.adelaide.edu.au, multimedia@FreeBSD.ORG, hackers@FreeBSD.ORG In-Reply-To: <199707210245.MAA20440@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Jul 21, 97 12:15:10 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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/ _____________________________|______________________________________