iiconf.h (289093) | iiconf.h (289095) |
---|---|
1/*- 2 * Copyright (c) 1998, 2001 Nicolas Souchu 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1998, 2001 Nicolas Souchu 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/iicbus/iiconf.h 289093 2015-10-09 22:49:50Z ian $ | 26 * $FreeBSD: head/sys/dev/iicbus/iiconf.h 289095 2015-10-09 23:20:08Z ian $ |
27 */ 28#ifndef __IICONF_H 29#define __IICONF_H 30 31#include <sys/queue.h> 32#include <dev/iicbus/iic.h> 33 34 --- 51 unchanged lines hidden (view full) --- 86#define IIC_ENOACK 0x2 /* ack not received until timeout */ 87#define IIC_ETIMEOUT 0x3 /* timeout */ 88#define IIC_EBUSBSY 0x4 /* bus busy (reserved by another client) */ 89#define IIC_ESTATUS 0x5 /* status error */ 90#define IIC_EUNDERFLOW 0x6 /* slave ready for more data */ 91#define IIC_EOVERFLOW 0x7 /* too much data */ 92#define IIC_ENOTSUPP 0x8 /* request not supported */ 93#define IIC_ENOADDR 0x9 /* no address assigned to the interface */ | 27 */ 28#ifndef __IICONF_H 29#define __IICONF_H 30 31#include <sys/queue.h> 32#include <dev/iicbus/iic.h> 33 34 --- 51 unchanged lines hidden (view full) --- 86#define IIC_ENOACK 0x2 /* ack not received until timeout */ 87#define IIC_ETIMEOUT 0x3 /* timeout */ 88#define IIC_EBUSBSY 0x4 /* bus busy (reserved by another client) */ 89#define IIC_ESTATUS 0x5 /* status error */ 90#define IIC_EUNDERFLOW 0x6 /* slave ready for more data */ 91#define IIC_EOVERFLOW 0x7 /* too much data */ 92#define IIC_ENOTSUPP 0x8 /* request not supported */ 93#define IIC_ENOADDR 0x9 /* no address assigned to the interface */ |
94#define IIC_ERESOURCE 0xa /* resources (memory, whatever) unavailable */ |
|
94 | 95 |
96extern int iic2errno(int); |
|
95extern int iicbus_request_bus(device_t, device_t, int); 96extern int iicbus_release_bus(device_t, device_t); 97extern device_t iicbus_alloc_bus(device_t); 98 99extern void iicbus_intr(device_t, int, char *); 100 101extern int iicbus_null_repeated_start(device_t, u_char); 102extern int iicbus_null_callback(device_t, int, caddr_t); --- 38 unchanged lines hidden --- | 97extern int iicbus_request_bus(device_t, device_t, int); 98extern int iicbus_release_bus(device_t, device_t); 99extern device_t iicbus_alloc_bus(device_t); 100 101extern void iicbus_intr(device_t, int, char *); 102 103extern int iicbus_null_repeated_start(device_t, u_char); 104extern int iicbus_null_callback(device_t, int, caddr_t); --- 38 unchanged lines hidden --- |