Deleted Added
full compact
olpt.c (116431) olpt.c (126076)
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 116431 2003-06-16 07:41:47Z phk $
49 * $FreeBSD: head/sys/pc98/cbus/olpt.c 126076 2004-02-21 19:42:58Z phk $
50 */
51
52/*
53 * Device Driver for AT parallel printer port
54 * Written by William Jolitz 12/18/90
55 */
56
57/*

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

224
225DRIVER_MODULE(olpt, isa, olpt_driver, olpt_devclass, 0, 0);
226
227static d_open_t lptopen;
228static d_close_t lptclose;
229static d_write_t lptwrite;
230static d_ioctl_t lptioctl;
231
50 */
51
52/*
53 * Device Driver for AT parallel printer port
54 * Written by William Jolitz 12/18/90
55 */
56
57/*

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

224
225DRIVER_MODULE(olpt, isa, olpt_driver, olpt_devclass, 0, 0);
226
227static d_open_t lptopen;
228static d_close_t lptclose;
229static d_write_t lptwrite;
230static d_ioctl_t lptioctl;
231
232#define CDEV_MAJOR 16
233static struct cdevsw lpt_cdevsw = {
234 .d_open = lptopen,
235 .d_close = lptclose,
236 .d_write = lptwrite,
237 .d_ioctl = lptioctl,
238 .d_name = "lpt",
232static struct cdevsw lpt_cdevsw = {
233 .d_open = lptopen,
234 .d_close = lptclose,
235 .d_write = lptwrite,
236 .d_ioctl = lptioctl,
237 .d_name = "lpt",
239 .d_maj = CDEV_MAJOR,
240};
241
242static bus_addr_t lpt_iat[] = {0, 2, 4, 6};
243
244#ifndef PC98
245/*
246 * Internal routine to lptprobe to do port tests of one byte value
247 */

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

--- 570 unchanged lines hidden ---