summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/i2cvar.h
AgeCommit message (Collapse)Author
2006-02-08add a member to the i2c_attach args so that a controller can pass aDavid Gwynne
cookie down to the device. the most obvious use of this is to pass a device its ofw node on sparc64 and macppc so it can configure itself more appropriately. ok kettenis@ henning@ deraadt@
2006-01-01switch from macppc-specific maciic(4) driver to the generic iic(4),Theo de Raadt
after teaching it to use a function pointer to get back to the OFW scan.. this will also help the sparc64 later; ok kettenis
2005-12-31spacingTheo de Raadt
2005-12-28some chips (especially those crazy i2c/lpc/isa gross things) expose theirTheo de Raadt
banks at other addresses, but there are issues with accessing these other devices. so allow a driver to "knock" these out from future probing. tested by kettenis -- unfortunate enough to have one of these winbond pieces of poo
2005-12-27no longer use ia_compat; tested by a fewTheo de Raadt
2005-12-22permit outsider to call iic_printTheo de Raadt
2005-12-20Do bus scanning only if underlying controller asked for it.Alexander Yurchenko
2005-12-19First attempt to have a table of known I2C slave devices that weAlexander Yurchenko
have drivers for. iic(4) will scan the bus for them and try to attach an appropriate driver. For now iic(4) scans for all possible addresses for debugging purposes. ok deraadt@
2005-11-15instead of passing OF nodes down to the drivers, pass name/compat stringTheo de Raadt
pointers. This lets their match() functions actually make real decisions. OF-capable machines will pass name/compat pointers, but other machines will not. grudging ok kettenis
2004-05-23I2C framework originally written by Steve C. Woodford and Jason R. ThorpeAlexander Yurchenko
for NetBSD (r). This framework supports various i2c master controllers: - dumb bit-bang controllers - a few styles of automated controllers that give you control over sending start/stop conditions on the i2c bus - automated controllers that are too smart for its own good, giving software no control over start/stop conditions - smbus controllers by emulating smbus protocol with i2c commands i2c slave devices need their addresses to be specified in the kernel config file, no device discovery presented. ok deraadt@