Deleted Added
sdiff udiff text old ( 111748 ) new ( 111815 )
full compact
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 111815 2003-03-03 12:15:54Z phk $
52 */
53
54/*
55 * Device Driver for AT parallel printer port
56 * Written by William Jolitz 12/18/90
57 */
58
59/*

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

184static d_open_t lptopen;
185static d_close_t lptclose;
186static d_write_t lptwrite;
187static d_read_t lptread;
188static d_ioctl_t lptioctl;
189
190#define CDEV_MAJOR 16
191static struct cdevsw lpt_cdevsw = {
192 .d_open = lptopen,
193 .d_close = lptclose,
194 .d_read = lptread,
195 .d_write = lptwrite,
196 .d_ioctl = lptioctl,
197 .d_name = LPT_NAME,
198 .d_maj = CDEV_MAJOR,
199};
200
201static int
202lpt_request_ppbus(device_t dev, int how)
203{
204 device_t ppbus = device_get_parent(dev);
205 struct lpt_data *sc = DEVTOSOFTC(dev);
206 int error;

--- 762 unchanged lines hidden ---