Deleted Added
full compact
iiconf.h (50477) iiconf.h (93023)
1/*-
1/*-
2 * Copyright (c) 1998 Nicolas Souchu
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 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright

--- 7 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 *
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 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright

--- 7 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 50477 1999-08-28 01:08:13Z peter $
26 * $FreeBSD: head/sys/dev/iicbus/iiconf.h 93023 2002-03-23 15:49:15Z nsouch $
27 */
28#ifndef __IICONF_H
29#define __IICONF_H
30
31#include <sys/queue.h>
32
33#define IICPRI (PZERO+8) /* XXX sleep/wakeup queue priority */
34

--- 87 unchanged lines hidden (view full) ---

122extern int iicbus_read_byte(device_t, char *, int);
123
124/* Read/write operations with start/stop conditions managed */
125extern int iicbus_block_write(device_t, u_char, char *, int, int *);
126extern int iicbus_block_read(device_t, u_char, char *, int, int *);
127
128extern u_char iicbus_get_addr(device_t);
129
27 */
28#ifndef __IICONF_H
29#define __IICONF_H
30
31#include <sys/queue.h>
32
33#define IICPRI (PZERO+8) /* XXX sleep/wakeup queue priority */
34

--- 87 unchanged lines hidden (view full) ---

122extern int iicbus_read_byte(device_t, char *, int);
123
124/* Read/write operations with start/stop conditions managed */
125extern int iicbus_block_write(device_t, u_char, char *, int, int *);
126extern int iicbus_block_read(device_t, u_char, char *, int, int *);
127
128extern u_char iicbus_get_addr(device_t);
129
130#define IICBUS_MODVER 1
131#define IICBUS_MINVER 1
132#define IICBUS_MAXVER 1
133#define IICBUS_PREFVER IICBUS_MODVER
134
135#define IICBB_MODVER 1
136#define IICBB_MINVER 1
137#define IICBB_MAXVER 1
138#define IICBB_PREFVER IICBB_MODVER
139
130#endif
140#endif