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 111748 2003-03-02 16:54:40Z des $
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 /* open */ lptopen,
193 /* close */ lptclose,
194 /* read */ lptread,
195 /* write */ lptwrite,
196 /* ioctl */ lptioctl,
197 /* poll */ nopoll,
198 /* mmap */ nommap,
199 /* strategy */ nostrategy,
200 /* name */ LPT_NAME,
201 /* maj */ CDEV_MAJOR,
202 /* dump */ nodump,
203 /* psize */ nopsize,
204 /* flags */ 0,
205};
206
207static int
208lpt_request_ppbus(device_t dev, int how)
209{
210 device_t ppbus = device_get_parent(dev);
211 struct lpt_data *sc = DEVTOSOFTC(dev);
212 int error;
--- 762 unchanged lines hidden ---
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 111748 2003-03-02 16:54:40Z des $
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 /* open */ lptopen,
193 /* close */ lptclose,
194 /* read */ lptread,
195 /* write */ lptwrite,
196 /* ioctl */ lptioctl,
197 /* poll */ nopoll,
198 /* mmap */ nommap,
199 /* strategy */ nostrategy,
200 /* name */ LPT_NAME,
201 /* maj */ CDEV_MAJOR,
202 /* dump */ nodump,
203 /* psize */ nopsize,
204 /* flags */ 0,
205};
206
207static int
208lpt_request_ppbus(device_t dev, int how)
209{
210 device_t ppbus = device_get_parent(dev);
211 struct lpt_data *sc = DEVTOSOFTC(dev);
212 int error;
--- 762 unchanged lines hidden ---