Deleted Added
full compact
iic.c (118728) iic.c (126076)
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/iic.c 118728 2003-08-10 14:28:24Z ticso $
26 * $FreeBSD: head/sys/dev/iicbus/iic.c 126076 2004-02-21 19:42:58Z phk $
27 *
28 */
29#include <sys/param.h>
30#include <sys/kernel.h>
31#include <sys/systm.h>
32#include <sys/module.h>
33#include <sys/bus.h>
34#include <sys/conf.h>

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

87};
88
89static d_open_t iicopen;
90static d_close_t iicclose;
91static d_write_t iicwrite;
92static d_read_t iicread;
93static d_ioctl_t iicioctl;
94
27 *
28 */
29#include <sys/param.h>
30#include <sys/kernel.h>
31#include <sys/systm.h>
32#include <sys/module.h>
33#include <sys/bus.h>
34#include <sys/conf.h>

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

87};
88
89static d_open_t iicopen;
90static d_close_t iicclose;
91static d_write_t iicwrite;
92static d_read_t iicread;
93static d_ioctl_t iicioctl;
94
95#define CDEV_MAJOR 105
96static struct cdevsw iic_cdevsw = {
97 .d_open = iicopen,
98 .d_close = iicclose,
99 .d_read = iicread,
100 .d_write = iicwrite,
101 .d_ioctl = iicioctl,
102 .d_name = "iic",
95static struct cdevsw iic_cdevsw = {
96 .d_open = iicopen,
97 .d_close = iicclose,
98 .d_read = iicread,
99 .d_write = iicwrite,
100 .d_ioctl = iicioctl,
101 .d_name = "iic",
103 .d_maj = CDEV_MAJOR,
104};
105
106static void
107iic_identify(driver_t *driver, device_t parent)
108{
109 BUS_ADD_CHILD(parent, 0, "iic", -1);
110}
111

--- 188 unchanged lines hidden ---
102};
103
104static void
105iic_identify(driver_t *driver, device_t parent)
106{
107 BUS_ADD_CHILD(parent, 0, "iic", -1);
108}
109

--- 188 unchanged lines hidden ---