lpt.c (119418) | lpt.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 --- 37 unchanged lines hidden (view full) --- 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 */ 52 53#include <sys/cdefs.h> | 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 --- 37 unchanged lines hidden (view full) --- 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 */ 52 53#include <sys/cdefs.h> |
54__FBSDID("$FreeBSD: head/sys/dev/ppbus/lpt.c 119418 2003-08-24 17:55:58Z obrien $"); | 54__FBSDID("$FreeBSD: head/sys/dev/ppbus/lpt.c 126076 2004-02-21 19:42:58Z phk $"); |
55 56/* 57 * Device Driver for AT parallel printer port 58 * Written by William Jolitz 12/18/90 59 */ 60 61/* 62 * Updated for ppbus by Nicolas Souchu --- 121 unchanged lines hidden (view full) --- 184 185 186static d_open_t lptopen; 187static d_close_t lptclose; 188static d_write_t lptwrite; 189static d_read_t lptread; 190static d_ioctl_t lptioctl; 191 | 55 56/* 57 * Device Driver for AT parallel printer port 58 * Written by William Jolitz 12/18/90 59 */ 60 61/* 62 * Updated for ppbus by Nicolas Souchu --- 121 unchanged lines hidden (view full) --- 184 185 186static d_open_t lptopen; 187static d_close_t lptclose; 188static d_write_t lptwrite; 189static d_read_t lptread; 190static d_ioctl_t lptioctl; 191 |
192#define CDEV_MAJOR 16 | |
193static struct cdevsw lpt_cdevsw = { 194 .d_open = lptopen, 195 .d_close = lptclose, 196 .d_read = lptread, 197 .d_write = lptwrite, 198 .d_ioctl = lptioctl, 199 .d_name = LPT_NAME, | 192static struct cdevsw lpt_cdevsw = { 193 .d_open = lptopen, 194 .d_close = lptclose, 195 .d_read = lptread, 196 .d_write = lptwrite, 197 .d_ioctl = lptioctl, 198 .d_name = LPT_NAME, |
200 .d_maj = CDEV_MAJOR, | |
201}; 202 203static int 204lpt_request_ppbus(device_t dev, int how) 205{ 206 device_t ppbus = device_get_parent(dev); 207 struct lpt_data *sc = DEVTOSOFTC(dev); 208 int error; --- 762 unchanged lines hidden --- | 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 --- |