if_plip.c (108470) | if_plip.c (109623) |
---|---|
1/*- 2 * Copyright (c) 1997 Poul-Henning Kamp 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 --- 10 unchanged lines hidden (view full) --- 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 * From Id: lpt.c,v 1.55.2.1 1996/11/12 09:08:38 phk Exp | 1/*- 2 * Copyright (c) 1997 Poul-Henning Kamp 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 --- 10 unchanged lines hidden (view full) --- 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 * From Id: lpt.c,v 1.55.2.1 1996/11/12 09:08:38 phk Exp |
27 * $FreeBSD: head/sys/dev/ppbus/if_plip.c 108470 2002-12-30 21:18:15Z schweikh $ | 27 * $FreeBSD: head/sys/dev/ppbus/if_plip.c 109623 2003-01-21 08:56:16Z alfred $ |
28 */ 29 30/* 31 * Parallel port TCP/IP interfaces added. I looked at the driver from 32 * MACH but this is a complete rewrite, and btw. incompatible, and it 33 * should perform better too. I have never run the MACH driver though. 34 * 35 * This driver sends two bytes (0x08, 0x00) in front of each packet, --- 302 unchanged lines hidden (view full) --- 338 ppb_set_mode(ppbus, PPB_COMPATIBLE); 339 340 if (lpinittables()) { 341 ppb_release_bus(ppbus, dev); 342 return ENOBUFS; 343 } 344 345 sc->sc_ifbuf = malloc(sc->sc_if.if_mtu + MLPIPHDRLEN, | 28 */ 29 30/* 31 * Parallel port TCP/IP interfaces added. I looked at the driver from 32 * MACH but this is a complete rewrite, and btw. incompatible, and it 33 * should perform better too. I have never run the MACH driver though. 34 * 35 * This driver sends two bytes (0x08, 0x00) in front of each packet, --- 302 unchanged lines hidden (view full) --- 338 ppb_set_mode(ppbus, PPB_COMPATIBLE); 339 340 if (lpinittables()) { 341 ppb_release_bus(ppbus, dev); 342 return ENOBUFS; 343 } 344 345 sc->sc_ifbuf = malloc(sc->sc_if.if_mtu + MLPIPHDRLEN, |
346 M_DEVBUF, M_WAITOK); | 346 M_DEVBUF, 0); |
347 if (!sc->sc_ifbuf) { 348 ppb_release_bus(ppbus, dev); 349 return ENOBUFS; 350 } 351 352 /* attach our interrupt handler, later detached when the bus is released */ 353 if ((error = BUS_SETUP_INTR(ppbus, dev, sc->res_irq, 354 INTR_TYPE_NET, lp_intr, dev, &ih))) { --- 430 unchanged lines hidden --- | 347 if (!sc->sc_ifbuf) { 348 ppb_release_bus(ppbus, dev); 349 return ENOBUFS; 350 } 351 352 /* attach our interrupt handler, later detached when the bus is released */ 353 if ((error = BUS_SETUP_INTR(ppbus, dev, sc->res_irq, 354 INTR_TYPE_NET, lp_intr, dev, &ih))) { --- 430 unchanged lines hidden --- |