Subject: Re: SMBus implementation
To: Jared D. McNeill <jmcneill@invisible.ca>
From: Michael <macallan18@earthlink.net>
List: tech-kern
Date: 10/27/2005 07:23:39
--Signature_Thu__27_Oct_2005_07_23_39_-0400_kNNZT6W/n5cp/Jnq
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> > "Try again."  :-)
>=20
> That's what I was looking for! :)
>=20
> > This needs to be done within the context of sys/dev/i2c (which =20
> > already has support for doing smbus operations with "regular" I2C =20
> > interfaces).  If it doesn't integrate with the existing I2C =20
> > framework, it's a non-starter.
>=20
> Should 'smbus' attach to iic, or should iic also be an smbus?

If I understand the code in sys/dev/i2c correctly then you'll want to
attach an iic which may be an i2c bus or an smbus ( what's the real
difference anyway, besides some additional commands? )
If your smbus controller is too intelligent and doesn't let you mess
with the bus signals directly you may want to implement only
iic_acquire_bus(), iic_release_bus() and iic_exec(), at least that's
what ki2c on macppc does.

have fun
Michael

--Signature_Thu__27_Oct_2005_07_23_39_-0400_kNNZT6W/n5cp/Jnq
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQ2C4u8pnzkX8Yg2nAQJB5wf8DRFGqQEJhlgS/ZhFcE0+cSw2C0Irn8j9
cn8dAUEJXO1M0k2g++ek4teeF+5ZWP+n5+0FDsEI8KWtiLtKWFwr1pUJgQ67KRvG
XOX8bVyObfLBtrIiVPnAYk6jdfPklubqLdt09MKsa6/pQ3RRRsRf4xYuaENAJXEL
hdAUvBbqR4F8nQ78754E0c328j4ta3gTOFPlYTr9NzWDnFL+F6GQMMkRreyCL2G7
4eZmf7XAdOubfw0+i4Ko8O2jlgVYSqBF9lfqp/xAqjdovDbfXcKSQWa7/woMH8l9
7phW2hAesnXeS2x8v1LCAfoWUjpwQe9Yg6ohG36iRb6UJqTtrGPP/w==
=K4/r
-----END PGP SIGNATURE-----

--Signature_Thu__27_Oct_2005_07_23_39_-0400_kNNZT6W/n5cp/Jnq--