summaryrefslogtreecommitdiffstats
path: root/sys/dev/iicbus/iicbus.h
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>1999-01-09 18:08:24 +0000
committernsouch <nsouch@FreeBSD.org>1999-01-09 18:08:24 +0000
commite670443158fa0f8567cc666000f1cf5819c156ca (patch)
treedc9371aa53218a6e6b09f54a5dd8c837e4342de9 /sys/dev/iicbus/iicbus.h
parent674988520c88d8bdd31977e29964f169a47a72b1 (diff)
downloadFreeBSD-src-e670443158fa0f8567cc666000f1cf5819c156ca.zip
FreeBSD-src-e670443158fa0f8567cc666000f1cf5819c156ca.tar.gz
Change /dev/smb and /dev/iic interface to allow user programs to interact with
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)
Diffstat (limited to 'sys/dev/iicbus/iicbus.h')
-rw-r--r--sys/dev/iicbus/iicbus.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/iicbus/iicbus.h b/sys/dev/iicbus/iicbus.h
index 21c0f97..3c23095 100644
--- a/sys/dev/iicbus/iicbus.h
+++ b/sys/dev/iicbus/iicbus.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: iicbus.h,v 1.1.1.1 1998/09/03 20:51:50 nsouch Exp $
+ * $Id: iicbus.h,v 1.2 1998/10/31 11:31:07 nsouch Exp $
*
*/
#ifndef __IICBUS_H
@@ -32,6 +32,8 @@
struct iicbus_softc {
device_t owner; /* iicbus owner device structure */
+ u_char started; /* address of the 'started' slave
+ * 0 if no start condition succeeded */
};
extern devclass_t iicbus_devclass;
OpenPOWER on IntegriCloud