Skip site navigation (1)Skip section navigation (2)
Date:      14 Mar 2002 18:28:54 +1130
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        "M. Warner Losh" <imp@village.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: PCI read config functions
Message-ID:  <1016089135.522.50.camel@chowder.gsoft.com.au>
In-Reply-To: <20020313.234139.40854153.imp@village.org>
References:  <1016009035.1876.72.camel@chowder.gsoft.com.au>  <20020313.234139.40854153.imp@village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2002-03-14 at 18:11, M. Warner Losh wrote:
> : However this just ends up printing 0.
> : 
> : (PCI_DC_SIO_PORT is 0x2f)
> 
> Do you have the right dev?
> 
> 	bcr = pci_read_config(sp->sc->dev, CB_PCI_BRIDGE_CTRL, 2);
> 
> is what I use in the pccard bridge pci driver and it works.

I believe so..
The code I pasted is in the probe routine of the device just after a
check that the vendor and device ID are correct.

Perhaps not all of it is mapped? (or isn't during probe?)
Or some other straw grabbing statement :)

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum


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?1016089135.522.50.camel>