26c26
< * $Id: iiconf.h,v 1.1.1.1 1998/09/03 20:51:50 nsouch Exp $
---
> * $Id: iiconf.h,v 1.2 1998/10/31 11:31:07 nsouch Exp $
111,114d110
< #define iicbus_start(bus,slave,timeout) \
< (IICBUS_START(device_get_parent(bus), slave, timeout))
< #define iicbus_stop(bus) \
< (IICBUS_STOP(device_get_parent(bus)))
117,120d112
< #define iicbus_write(bus,buf,len,sent,timeout) \
< (IICBUS_WRITE(device_get_parent(bus), buf, len, sent, timeout))
< #define iicbus_read(bus,buf,len,sent,last,delay) \
< (IICBUS_READ(device_get_parent(bus), buf, len, sent, last, delay))
121a114,121
> /* basic I2C operations */
> extern int iicbus_started(device_t);
> extern int iicbus_start(device_t, u_char, int);
> extern int iicbus_stop(device_t);
> extern int iicbus_write(device_t, char *, int, int *, int);
> extern int iicbus_read(device_t, char *, int, int *, int, int);
>
> /* Read/write operations with start/stop conditions managed */
< * $Id: iiconf.h,v 1.1.1.1 1998/09/03 20:51:50 nsouch Exp $
---
> * $Id: iiconf.h,v 1.2 1998/10/31 11:31:07 nsouch Exp $
111,114d110
< #define iicbus_start(bus,slave,timeout) \
< (IICBUS_START(device_get_parent(bus), slave, timeout))
< #define iicbus_stop(bus) \
< (IICBUS_STOP(device_get_parent(bus)))
117,120d112
< #define iicbus_write(bus,buf,len,sent,timeout) \
< (IICBUS_WRITE(device_get_parent(bus), buf, len, sent, timeout))
< #define iicbus_read(bus,buf,len,sent,last,delay) \
< (IICBUS_READ(device_get_parent(bus), buf, len, sent, last, delay))
121a114,121
> /* basic I2C operations */
> extern int iicbus_started(device_t);
> extern int iicbus_start(device_t, u_char, int);
> extern int iicbus_stop(device_t);
> extern int iicbus_write(device_t, char *, int, int *, int);
> extern int iicbus_read(device_t, char *, int, int *, int, int);
>
> /* Read/write operations with start/stop conditions managed */