opnsense-src/sys/dev/iicbus
John Baldwin 13e3657b7b Add locking to the various iicbus(4) bridge drivers:
- Just grab Giant in the ixp425_iic(4) driver since this driver uses
  a shared address/data register window pair to access the actual
  I2C registers.  None of the other ixp425 drivers lock access to these
  shared address/data registers yet and that would need to be done before
  this could use any meaningful locking.
- Add locking to the interrupt handler and 'iicbus_reset' methods of the
  at91_twi(4) driver.
- Add locking to the pcf(4) driver.  Other pcf(4) fixes include:
  - Don't needlessly zero the softc.
  - Use bus_foo rather than bus_space_foo and remove bus space tag and
    handle from softc.
- The lpbb(4) driver just grabs Giant for now.  This will be refined later
  when ppbus(4) is locked.
- As was done with smbus earlier, move the DRIVER_MODULE() lines to match
  the bus driver (either iicbus or iicbb) to the bridge driver into the
  bridge drivers.

Tested by:	sam (arm/ixp425)
2008-08-04 20:46:15 +00:00
..
ad7418.c i2c driver for Analog Devices AD7418 2006-11-19 23:39:54 +00:00
ds1339.c - Add driver for Dallas Semiconductor DS1339 RTC sitting 2008-07-25 19:34:44 +00:00
ds1672.c i2c and clock driver for Dallas Semiconductor DS1672 RTC 2006-11-19 23:40:58 +00:00
icee.c Don't use spinlocks here. The iicbus transactions can take a long 2007-04-17 05:48:35 +00:00
if_ic.c Minor style(9) treatment to make things a little more consistant 2006-08-21 17:32:50 +00:00
iic.c MFp4: Make the iicbus fully hinted. We no longer automatically add 2007-03-23 23:08:28 +00:00
iic.h Add a fake flag for write. Many drivers have started to use it and it 2006-11-28 06:51:36 +00:00
iicbb.c Add locking to the various iicbus(4) bridge drivers: 2008-08-04 20:46:15 +00:00
iicbb_if.m
iicbus.c MFp4: Make the iicbus fully hinted. We no longer automatically add 2007-03-23 23:08:28 +00:00
iicbus.h MFp4: Create an ivar for each iic device on the iicbus. This ivar 2007-03-23 23:02:33 +00:00
iicbus_if.m const poison 2006-12-05 06:19:36 +00:00
iiconf.c MFp4: Make iicbus_trasnfer_gen suitable for bridge drivers. Use it in the 2007-03-23 23:03:54 +00:00
iiconf.h const poison 2006-12-05 06:19:36 +00:00
iicsmb.c Explicitly lock Giant in smbus_if methods in the bktr_i2c and iicsmb 2008-06-06 18:40:38 +00:00