summaryrefslogtreecommitdiffstats
path: root/sys/dev/iicbus/iiconf.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert changes accidentally committed as part of r209298.nwhitehorn2010-06-181-29/+5
|
* Provide for multiple, cascaded PICs on PowerPC systems, and extend thenwhitehorn2010-06-181-5/+29
| | | | | | OFW interrupt map interface to also return the device's interrupt parent. MFC after: 8.1-RELEASE
* Handle errors from device_get_chidlren.imp2008-08-231-2/+5
| | | | Free child list when there's more children than we expected.
* Add locking to the core iicbus(4) drivers:jhb2008-08-041-15/+19
| | | | | | | | | | | | | | | | | | - 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.
* MFp4: Make iicbus_trasnfer_gen suitable for bridge drivers. Use it in theimp2007-03-231-6/+10
| | | | bitbang bridge.
* const poisonimp2006-12-051-1/+1
| | | | submitted by: john wehle
* Allow iic bridges to support a generalized transfer, rather thanimp2006-07-141-0/+42
| | | | | | | | | forcing all transfers to do the start read/write stop by hand. Some smart bridges prefer this sort of operation, and this allows us to support their features more easily. When bridges don't support it, we fall back to using the old-style opertaions. Expand the ioctl interface to expose this function. Unlike the old-style interface, this interface is thread safe, even on old bridges.
* Use __FBSDID().obrien2003-08-241-3/+4
| | | | Also some minor style cleanups.
* Major rework of the iicbus/smbus framework:nsouch2002-03-231-33/+0
| | | | | | | | - VIA chipset SMBus controllers added - alpm driver updated - Support for dynamic modules added - bktr FreeBSD smbus updated but not tested - cleanup
* Remove unneeded #include <sys/kernel.h>phk2000-04-291-1/+0
|
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* Remove the 'ivars' arguement to device_add_child() andmdodd1999-12-031-1/+1
| | | | | | | | | | | | | | | | device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr
* Sync with RELENG_3.nsouch1999-11-011-2/+6
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Handle correctly iicbus request/release mechanism. Add iicbus allocationnsouch1999-02-131-8/+9
| | | | to the general purpose i/o iic(4) driver.
* Changed to use IICBUS_REPEATED_STARTroger1999-02-061-2/+2
| | | | Submitted by: Changed to use IICBUS_REPEATED_START
* Submitted by: Nicolas Souchu <nsouch@freebsd.org>roger1999-01-281-1/+50
| | | | | Updated to support bt848 driver and MSP3400 audio chip. This adds changes made in 1.4.2.1 and 1.4.2.2 from RELENG_3
* Change /dev/smb and /dev/iic interface to allow user programs to interact withnsouch1999-01-091-4/+95
| | | | | | | | | | devices dynamically. That means, + only one /dev/iic or /dev/smb device for each smb/iic bus to access + I2C/SMB device address must be given to any ioctl + new devices may be plugged and accessed after boot, which was impossible previously (device addresses were hardcoded into the kernel)
* Remove broken and useless intr interface.nsouch1998-11-221-2/+2
| | | | | | | Submitted by: Doug Rabson <dfr@nlsystems.com> Amancio Hasty <hasty@rah.star-gate.com> Avoid compile warnings.
* iicbb is generic support for I2C bit-banging.nsouch1998-10-311-29/+44
| | | | Other files: timeout management added to the I2C framework.
* Submitted by: nsouchnsouch1998-09-031-0/+207
Philips I2C bus generic support other new bus architecture.
OpenPOWER on IntegriCloud