Subject: Re: support for unconfigured PCI devices, esp. SD card reader
To: Daniel Carosone <dan@geek.com.au>
From: Michael Lorenz <macallan@netbsd.org>
List: port-i386
Date: 07/30/2007 00:08:59
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jul 29, 2007, at 23:34, Daniel Carosone wrote:

> On Mon, Jul 30, 2007 at 05:29:13AM +0200, Quentin Garnier wrote:
>> SMBus is a lot like I2C, and you will usually find various kind of
>> sensors attached there.
>
> How?

You can probe for most of them - just issue a read and see if something 
answers.
SMBus is just another protocol layer on top of iic.

> Specifically, once I have an iic at smbus, how do I find what sensors
> are attached there?  There are a few examples in GENERIC, with
> specific addresses for specific motherboards.

Most iic devices have hardcoded addresses but since the address space 
is pretty limited those addresses aren't unique but if you know the 
address you can at least narrow the list of candidates down a lot.

So, with iic you can's do much more than guess what's there, you're 
expected to know.
SMBus devices can be discovered and identified though.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRq1kW8pnzkX8Yg2nAQLZOggAi9yxLJvLosZYUxlbb1Q9UR9cxnC6t2zQ
ywimCJn0qyR+I0xdjuYm9/u9HEyulxoiAiJj71MEeeGfBEuJ6LIo0ToCzdFGMwDB
O8aRWjDjIYuBLQVCoH770HoxGYJ21GSzhimlRG4YauA0+UWMPP0+KzD90tVQ1dzf
YmNK0l7uZby4eITaxkNMrNJclfuBDN7tI6R3qisFdZ/mqpgg6uLnwbvfmWSCxcqo
jaQEVdfcofvt/Hb8GBwVsoMFjZ1hbsJes/shOix7qH85zRPTJrsPF2KAISzacGNB
hG/LLE0vhSFaz3Qo84CQIRV+HEklPKH1fIRUpMKHb7z9GMrlzf4p8w==
=VsDM
-----END PGP SIGNATURE-----