Deleted Added
full compact
lpt.c (106562) lpt.c (109623)
1/*
2 * Copyright (c) 1990 William F. Jolitz, TeleMuse
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

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

43 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
44 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
45 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
46 * SUCH DAMAGE.
47 *
48 * from: unknown origin, 386BSD 0.1
49 * From Id: lpt.c,v 1.55.2.1 1996/11/12 09:08:38 phk Exp
50 * From Id: nlpt.c,v 1.14 1999/02/08 13:55:43 des Exp
1/*
2 * Copyright (c) 1990 William F. Jolitz, TeleMuse
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

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

43 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
44 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
45 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
46 * SUCH DAMAGE.
47 *
48 * from: unknown origin, 386BSD 0.1
49 * From Id: lpt.c,v 1.55.2.1 1996/11/12 09:08:38 phk Exp
50 * From Id: nlpt.c,v 1.14 1999/02/08 13:55:43 des Exp
51 * $FreeBSD: head/sys/dev/ppbus/lpt.c 106562 2002-11-07 17:20:58Z jhb $
51 * $FreeBSD: head/sys/dev/ppbus/lpt.c 109623 2003-01-21 08:56:16Z alfred $
52 */
53
54/*
55 * Device Driver for AT parallel printer port
56 * Written by William Jolitz 12/18/90
57 */
58
59/*

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

543
544 /* enable interrupt if interrupt-driven */
545 if (sc->sc_irq & LP_USE_IRQ)
546 sc->sc_control |= LPC_ENA;
547
548 ppb_wctr(ppbus, sc->sc_control);
549
550 sc->sc_state = OPEN;
52 */
53
54/*
55 * Device Driver for AT parallel printer port
56 * Written by William Jolitz 12/18/90
57 */
58
59/*

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

543
544 /* enable interrupt if interrupt-driven */
545 if (sc->sc_irq & LP_USE_IRQ)
546 sc->sc_control |= LPC_ENA;
547
548 ppb_wctr(ppbus, sc->sc_control);
549
550 sc->sc_state = OPEN;
551 sc->sc_inbuf = malloc(BUFSIZE, M_DEVBUF, M_WAITOK);
552 sc->sc_statbuf = malloc(BUFSTATSIZE, M_DEVBUF, M_WAITOK);
551 sc->sc_inbuf = malloc(BUFSIZE, M_DEVBUF, 0);
552 sc->sc_statbuf = malloc(BUFSTATSIZE, M_DEVBUF, 0);
553 sc->sc_xfercnt = 0;
554 splx(s);
555
556 /* release the ppbus */
557 lpt_release_ppbus(lptdev);
558
559 /* only use timeout if using interrupt */
560 lprintf(("irq %x\n", sc->sc_irq));

--- 414 unchanged lines hidden ---
553 sc->sc_xfercnt = 0;
554 splx(s);
555
556 /* release the ppbus */
557 lpt_release_ppbus(lptdev);
558
559 /* only use timeout if using interrupt */
560 lprintf(("irq %x\n", sc->sc_irq));

--- 414 unchanged lines hidden ---