From owner-freebsd-hardware Wed May 21 07:11:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA11813 for hardware-outgoing; Wed, 21 May 1997 07:11:53 -0700 (PDT) Received: from lariat.lariat.org (ppp0.lariat.org@[129.72.251.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA11796 for ; Wed, 21 May 1997 07:11:50 -0700 (PDT) Received: from solo.lariat.org ([129.72.251.10]) by lariat.lariat.org (8.8.5/8.8.5) with SMTP id IAA14603; Wed, 21 May 1997 08:11:24 -0600 (MDT) Message-Id: <3.0.1.32.19970521081005.006a2a6c@lariat.org> X-Sender: brett@lariat.org X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Wed, 21 May 1997 08:10:05 -0600 To: Poul-Henning Kamp , Bruce Evans From: Brett Glass Subject: Re: isa bus and boca multiport boards Cc: gurney_j@resnet.uoregon.edu, HARDWARE@freebsd.org, rberndt@nething.com, WELCHDW@wofford.edu In-Reply-To: <1616.864210369@critter> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-hardware@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 12:26 PM 5/21/97 +0200, Poul-Henning Kamp wrote: >"gone" means that somebody unplugged a PCCARD modem, and it's very >important to check it before you start talking to thin air. > >You could #ifdef it, but you'd gain only epsilon. Instead, how about building the list of ports to scan outside the ISR? You'd lose the null pointer check PLUS the check of "gone," so you'd save more like a delta than an epsilon. And there'd be no need for an #ifdef there. --Brett