if_ic.c (04f89a63cbf257b93a030fc153740e0fc37bdbd5) if_ic.c (f1d19042b082d95f07a0027e596ba2405aa8a9a5)
1/*-
2 * Copyright (c) 1998 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 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 * $Id: if_ic.c,v 1.1.1.1 1998/09/03 20:51:50 nsouch Exp $
26 * $Id: if_ic.c,v 1.2 1998/10/31 11:31:07 nsouch Exp $
27 */
28
29/*
30 * I2C bus IP driver
31 */
32
33#ifdef KERNEL
34#include <sys/param.h>

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

285 */
286static void
287icintr (device_t dev, int event, char *ptr)
288{
289 struct ic_softc *sc = (struct ic_softc *)device_get_softc(dev);
290 int unit = device_get_unit(dev);
291 int s, len;
292 struct mbuf *top;
27 */
28
29/*
30 * I2C bus IP driver
31 */
32
33#ifdef KERNEL
34#include <sys/param.h>

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

285 */
286static void
287icintr (device_t dev, int event, char *ptr)
288{
289 struct ic_softc *sc = (struct ic_softc *)device_get_softc(dev);
290 int unit = device_get_unit(dev);
291 int s, len;
292 struct mbuf *top;
293 int i;
294
295 s = splhigh();
296
297 switch (event) {
298
299 case INTR_GENERAL:
300 case INTR_START:
301 sc->ic_cp = sc->ic_ifbuf;

--- 167 unchanged lines hidden ---
293
294 s = splhigh();
295
296 switch (event) {
297
298 case INTR_GENERAL:
299 case INTR_START:
300 sc->ic_cp = sc->ic_ifbuf;

--- 167 unchanged lines hidden ---