if_ic.c (38775) | if_ic.c (40782) |
---|---|
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.11 1998/08/13 17:10:42 son Exp $ | 26 * $Id: if_ic.c,v 1.1.1.1 1998/09/03 20:51:50 nsouch Exp $ |
27 */ 28 29/* 30 * I2C bus IP driver 31 */ 32 33#ifdef KERNEL 34#include <sys/param.h> --- 173 unchanged lines hidden (view full) --- 208 209 sc->ic_ifbuf = malloc(sc->ic_if.if_mtu + ICHDRLEN, 210 M_DEVBUF, M_WAITOK); 211 if (!sc->ic_ifbuf) { 212 iicbus_release_bus(parent, icdev); 213 return ENOBUFS; 214 } 215 | 27 */ 28 29/* 30 * I2C bus IP driver 31 */ 32 33#ifdef KERNEL 34#include <sys/param.h> --- 173 unchanged lines hidden (view full) --- 208 209 sc->ic_ifbuf = malloc(sc->ic_if.if_mtu + ICHDRLEN, 210 M_DEVBUF, M_WAITOK); 211 if (!sc->ic_ifbuf) { 212 iicbus_release_bus(parent, icdev); 213 return ENOBUFS; 214 } 215 |
216 iicbus_reset(parent, IIC_FASTEST); | 216 iicbus_reset(parent, IIC_FASTEST, 0, NULL); |
217 218 ifp->if_flags |= IFF_RUNNING; 219 } 220 break; 221 222 case SIOCSIFMTU: 223 /* save previous buffers */ 224 iptr = sc->ic_ifbuf; --- 244 unchanged lines hidden --- | 217 218 ifp->if_flags |= IFF_RUNNING; 219 } 220 break; 221 222 case SIOCSIFMTU: 223 /* save previous buffers */ 224 iptr = sc->ic_ifbuf; --- 244 unchanged lines hidden --- |