From owner-freebsd-multimedia Mon Jul 14 03:29:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA12508 for multimedia-outgoing; Mon, 14 Jul 1997 03:29:56 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id DAA12501 for ; Mon, 14 Jul 1997 03:29:53 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Mon, 14 Jul 1997 6:28:15 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA07621; Mon, 14 Jul 97 06:28:14 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id GAA06618; Mon, 14 Jul 1997 06:26:02 -0400 Message-Id: <19970714062602.02401@ct.picker.com> Date: Mon, 14 Jul 1997 06:26:02 -0400 From: Randall Hopper To: Luigi Rizzo Cc: hasty@rah.star-gate.com, multimedia@FreeBSD.ORG Subject: Re: guspnp9 feedback References: <19970713163210.43120@ct.picker.com> <199707140614.IAA10040@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <199707140614.IAA10040@labinfo.iet.unipi.it>; from Luigi Rizzo on Mon, Jul 14, 1997 at 08:14:04AM +0200 Sender: owner-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Luigi Rizzo: |> As I said, it's not just the return type. |> |> < long attach_awe_obsolete(long mem_start, struct address_info *hw_config); |> > void attach_awe_obsolete(struct address_info *hw_config); | |I have removed mem_start since the parameter was useless (just passed |across functions) in all drivers I had seen, and only served to |clutter the code. ... |not change). The return type of the attach routine has been set |(temporarily ?) to void since in the drivers I had seen attach() |could never fail, nor it was generally tested for failute. Thanks for the info Luigi. Ok, well the awe driver mallocs kernel mem in the attach. If the malloc fails, it returns 0. Since attach() calls can fail, it might be good to leave the non-void return type in there, and we can beef up the error checking of attach() invocations as we notice unchecked invocations. |Also, the probe code can probably benefit from the addition of proper |support for PnP boards, since these boards identify clearly themselves |in the PnP id and do not require black magic in the probe routine. Good point. There's some PnP detection code for the SB32/AWE32 cards in newer versions of the Linux AWE driver, but later versions are GPLed. So I guess this would have to be reengineered (?). If I had a PnP card, I'd take a stab (I've avoided these for obvious reasons). Randall