Deleted Added
full compact
olpt.c (111748) olpt.c (111815)
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

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

41 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
42 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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
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

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

41 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
42 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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 * $FreeBSD: head/sys/pc98/cbus/olpt.c 111748 2003-03-02 16:54:40Z des $
49 * $FreeBSD: head/sys/pc98/cbus/olpt.c 111815 2003-03-03 12:15:54Z phk $
50 */
51
52/*
53 * Device Driver for AT parallel printer port
54 * Written by William Jolitz 12/18/90
55 */
56
57/*

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

227
228static d_open_t lptopen;
229static d_close_t lptclose;
230static d_write_t lptwrite;
231static d_ioctl_t lptioctl;
232
233#define CDEV_MAJOR 16
234static struct cdevsw lpt_cdevsw = {
50 */
51
52/*
53 * Device Driver for AT parallel printer port
54 * Written by William Jolitz 12/18/90
55 */
56
57/*

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

227
228static d_open_t lptopen;
229static d_close_t lptclose;
230static d_write_t lptwrite;
231static d_ioctl_t lptioctl;
232
233#define CDEV_MAJOR 16
234static struct cdevsw lpt_cdevsw = {
235 /* open */ lptopen,
236 /* close */ lptclose,
237 /* read */ noread,
238 /* write */ lptwrite,
239 /* ioctl */ lptioctl,
240 /* poll */ nopoll,
241 /* mmap */ nommap,
242 /* strategy */ nostrategy,
243 /* name */ "lpt",
244 /* maj */ CDEV_MAJOR,
245 /* dump */ nodump,
246 /* psize */ nopsize,
247 /* flags */ 0,
235 .d_open = lptopen,
236 .d_close = lptclose,
237 .d_write = lptwrite,
238 .d_ioctl = lptioctl,
239 .d_name = "lpt",
240 .d_maj = CDEV_MAJOR,
248};
249
250static bus_addr_t lpt_iat[] = {0, 2, 4, 6};
251
252#ifndef PC98
253/*
254 * Internal routine to lptprobe to do port tests of one byte value
255 */

--- 570 unchanged lines hidden ---
241};
242
243static bus_addr_t lpt_iat[] = {0, 2, 4, 6};
244
245#ifndef PC98
246/*
247 * Internal routine to lptprobe to do port tests of one byte value
248 */

--- 570 unchanged lines hidden ---