From owner-freebsd-hackers Tue Nov 26 3: 8:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC13137B401 for ; Tue, 26 Nov 2002 03:08:27 -0800 (PST) Received: from nano-system.com (as3-4-6.far.s.bonet.se [217.215.64.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE29143EBE for ; Tue, 26 Nov 2002 03:08:20 -0800 (PST) (envelope-from zaiberd@nano-system.com) Received: (from zaiberd@localhost) by Tue Nov 26 12:14:27 2002nano-system.com (8.11.6/8.11.6) id gAQBERc01328 for freebsd-hackers@freebsd.org; Tue, 26 Nov 2002 12:14:27 +0100 (CET) Date: Tue, 26 Nov 2002 12:14:27 +0100 From: Alexander Funcke To: freebsd-hackers@freebsd.org Subject: Correct way to get hold of a isab Message-ID: <20021126111427.GB1063@gothis.peppernet.se> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i 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 Hi, I've written a GPIO driver for the National Geode SCx200 processors. While I was developing I added the following line in isab_match() (sys/pci/pcisupport.c) so it wouldn't be identified as a isa-bridge. isab_match(device_t dev) { switch(pci_get_devid(dev)) { . . . /* National Geode SCx200's ISA and GPIO/LPC bridge, needs to be free so we can claim it later from the GPIO-driver. */ case 0x0500100b: return(NULL); } . . . } This do work, but I guess this isn't the correct way, how should it be done? TIA, /Alexander To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message