Subject: Re: SMBus implementation
To: Jared D. McNeill <firstname.lastname@example.org>
From: Michael <email@example.com>
Date: 10/27/2005 07:23:39
Content-Type: text/plain; charset=US-ASCII
> > "Try again." :-)
> That's what I was looking for! :)
> > 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.
> 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)
-----END PGP SIGNATURE-----