1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-10 14:02:43 +00:00
freebsd/sys/dev/iicbus
John Baldwin 313f8941e1 Add locking to the core iicbus(4) drivers:
- Add an sx lock to the iic(4) driver to serialize open(), close(), read(),
  and write and to protect sc_addr and sc_count in the softc.
- Use cdev->si_drv1 instead of using the minor number of the cdev to
  lookup the softc via newbus in iic(4).
- Store the device_t in the softc to avoid a similar detour via minor
  numbers in iic(4).
- Only add at most one instance of iic(4) and iicsmb(4) to each iicbus(4)
  instance, and do it in the child driver.
- Add a mutex to the iicbus(4) softc to synchronize the request/release bus
  stuff.
- Use __BUS_ACCESSOR() for IICBUS_ACCESSOR() instead of rolling our own.
- Add a mutex to the iicsmb(4) softc to protect softc state updated in the
  interrupt handler.
- Remove Giant from all the smbus methods in iicsmb(4) now that all the
  iicbus(4) backend is locked.
2008-08-04 21:03:06 +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 Add locking to the core iicbus(4) drivers: 2008-08-04 21:03:06 +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_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
iicbb.c Add locking to the various iicbus(4) bridge drivers: 2008-08-04 20:46:15 +00:00
iicbus_if.m const poison 2006-12-05 06:19:36 +00:00
iicbus.c Add locking to the core iicbus(4) drivers: 2008-08-04 21:03:06 +00:00
iicbus.h Add locking to the core iicbus(4) drivers: 2008-08-04 21:03:06 +00:00
iiconf.c Add locking to the core iicbus(4) drivers: 2008-08-04 21:03:06 +00:00
iiconf.h const poison 2006-12-05 06:19:36 +00:00
iicsmb.c Add locking to the core iicbus(4) drivers: 2008-08-04 21:03:06 +00:00