summaryrefslogtreecommitdiffstats
path: root/sys/dev/iicbus
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>1999-01-28 15:56:18 +0000
committerroger <roger@FreeBSD.org>1999-01-28 15:56:18 +0000
commitc7d92faaf0fd3e1a442e5d4db7ec7dc121f7e323 (patch)
treed7714df6a46e0c423e700fb598edefbf4663ae0e /sys/dev/iicbus
parentd49986b1d03c106558b1a2a75780605f47d93090 (diff)
downloadFreeBSD-src-c7d92faaf0fd3e1a442e5d4db7ec7dc121f7e323.zip
FreeBSD-src-c7d92faaf0fd3e1a442e5d4db7ec7dc121f7e323.tar.gz
Submitted by: Nicolas Souchu <nsouch@freebsd.org>
Updated to support bt848 driver MSP34xx audio chip. This adds changes made in 1.3.2.1 and 1.3.2.2 from RELENG_3
Diffstat (limited to 'sys/dev/iicbus')
-rw-r--r--sys/dev/iicbus/iiconf.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/iicbus/iiconf.h b/sys/dev/iicbus/iiconf.h
index d626ffe..4c23762 100644
--- a/sys/dev/iicbus/iiconf.h
+++ b/sys/dev/iicbus/iiconf.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: iiconf.h,v 1.3 1999/01/09 18:08:24 nsouch Exp $
+ * $Id: iiconf.h,v 1.4 1999/01/27 21:49:53 dillon Exp $
*/
#ifndef __IICONF_H
#define __IICONF_H
@@ -106,8 +106,6 @@ extern void iicbus_intr(device_t, int, char *);
extern int iicbus_null_repeated_start(device_t, u_char);
extern int iicbus_null_callback(device_t, int, caddr_t);
-#define iicbus_repeated_start(bus,slave,timeout) \
- (IICBUS_REPEATED_START(device_get_parent(bus), slave, timeout))
#define iicbus_reset(bus,speed,addr,oldaddr) \
(IICBUS_RESET(device_get_parent(bus), speed, addr, oldaddr))
@@ -115,9 +113,14 @@ extern int iicbus_null_callback(device_t, int, caddr_t);
extern int iicbus_started(device_t);
extern int iicbus_start(device_t, u_char, int);
extern int iicbus_stop(device_t);
+extern int iicbus_repeated_start(device_t, u_char, int);
extern int iicbus_write(device_t, char *, int, int *, int);
extern int iicbus_read(device_t, char *, int, int *, int, int);
+/* single byte read/write functions, start/stop not managed */
+extern int iicbus_write_byte(device_t, char, int);
+extern int iicbus_read_byte(device_t, char *, int);
+
/* Read/write operations with start/stop conditions managed */
extern int iicbus_block_write(device_t, u_char, char *, int, int *);
extern int iicbus_block_read(device_t, u_char, char *, int, int *);
OpenPOWER on IntegriCloud