Deleted Added
full compact
iiconf.h (289097) iiconf.h (289104)
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 289097 2015-10-09 23:58:19Z ian $
26 * $FreeBSD: head/sys/dev/iicbus/iiconf.h 289104 2015-10-10 02:06:07Z ian $
27 */
28#ifndef __IICONF_H
29#define __IICONF_H
30
31#include <sys/queue.h>
32#include <dev/iicbus/iic.h>
33
34
35#define IICPRI (PZERO+8) /* XXX sleep/wakeup queue priority */
36
37#define LSB 0x1
38
39/*
40 * How tsleep() is called in iic_request_bus().
41 */
42#define IIC_DONTWAIT 0
43#define IIC_NOINTR 0
44#define IIC_WAIT 0x1
45#define IIC_INTR 0x2
27 */
28#ifndef __IICONF_H
29#define __IICONF_H
30
31#include <sys/queue.h>
32#include <dev/iicbus/iic.h>
33
34
35#define IICPRI (PZERO+8) /* XXX sleep/wakeup queue priority */
36
37#define LSB 0x1
38
39/*
40 * How tsleep() is called in iic_request_bus().
41 */
42#define IIC_DONTWAIT 0
43#define IIC_NOINTR 0
44#define IIC_WAIT 0x1
45#define IIC_INTR 0x2
46#define IIC_INTRWAIT (IIC_INTR | IIC_WAIT)
46
47/*
48 * i2c modes
49 */
50#define IIC_MASTER 0x1
51#define IIC_SLAVE 0x2
52#define IIC_POLLED 0x4
53

--- 93 unchanged lines hidden ---
47
48/*
49 * i2c modes
50 */
51#define IIC_MASTER 0x1
52#define IIC_SLAVE 0x2
53#define IIC_POLLED 0x4
54

--- 93 unchanged lines hidden ---