Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 11:41:20 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Alexander Funcke <funcke@nano-system.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: Correct way to get hold of a isab
Message-ID:  <XFMail.20021126114120.jhb@FreeBSD.org>
In-Reply-To: <20021126111427.GB1063@gothis.peppernet.se>

next in thread | previous in thread | raw e-mail | index | archive | help

On 26-Nov-2002 Alexander Funcke wrote:
> 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?

Does this device have a class of PCIC_BRIDGE and subclass of PCIS_BRIDGE_ISA?
(class of 0x0601zz where zz is any value).  If so it is claiming to be a
PCI-ISA bridge.  If this device is not a PCI-ISA bridge, then it shouldn't
claim to be one.  If it is a PCI-ISA bridge then you do need to use that
kind of hack for now.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021126114120.jhb>