From owner-freebsd-hackers Tue Jun 5 15: 0:41 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id D721B37B401; Tue, 5 Jun 2001 15:00:34 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 157OsL-000Lss-00; Tue, 5 Jun 2001 23:00:33 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.3/8.11.1) id f55M0Wv96535; Tue, 5 Jun 2001 23:00:32 +0100 (BST) (envelope-from jcm) Date: Tue, 5 Jun 2001 23:00:32 +0100 From: j mckitrick To: Mike Smith Cc: freebsd-hackers@freebsd.org Subject: Re: newbussifying drivers Message-ID: <20010605230032.B96188@dogma.freebsd-uk.eu.org> References: <20010605182151.A90883@dogma.freebsd-uk.eu.org> <200106052032.f55KWTj01513@mass.dis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200106052032.f55KWTj01513@mass.dis.org>; from msmith@freebsd.org on Tue, Jun 05, 2001 at 01:32:29PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG | Typically, probe routines these days are invoked with a single set of I/O | parameters to probe (and even this is only ISA devices). | | It's pretty rare to need to bit-bang to find a device these days anyway; | you should probably be looking for PnP data or similar. This is what | hints are (basically) - manually-supplied PnP data. How would you recommending fixing this, taken from the ex driver? for (ioport = 0x200; ioport < 0x3a0; ioport += 0x10) { /* No board found at address */ if (!look_for_card(ioport)) { continue; } if (bootverbose) printf("ex: Found card at 0x%03x!\n", ioport); /* Board in PnP mode */ if (eeprom_read(ioport, EE_W0) & EE_W0_PNP) { /* Reset the card. */ outb(ioport + CMD_REG, Reset_CMD); DELAY(500); if (bootverbose) printf("ex: card at 0x%03x in PnP mode!\n", iop continue; } I'm taking this on as my personal project, so the more info i get, the better work i can do. :-) jcm -- "I drank WHAT ?!" - Socrates To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message