rc.c (56843) | rc.c (61011) |
---|---|
1/* 2 * Copyright (C) 1995 by Pavel Antonov, Moscow, Russia. 3 * Copyright (C) 1995 by Andrey A. Chernov, Moscow, Russia. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright (C) 1995 by Pavel Antonov, Moscow, Russia. 3 * Copyright (C) 1995 by Andrey A. Chernov, Moscow, Russia. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/rc/rc.c 56843 2000-01-29 16:00:34Z peter $ | 27 * $FreeBSD: head/sys/dev/rc/rc.c 61011 2000-05-28 13:40:48Z peter $ |
28 * 29 */ 30 31/* 32 * SDL Communications Riscom/8 (based on Cirrus Logic CL-CD180) driver 33 * 34 */ 35 36#include "rc.h" 37 38/*#define RCDEBUG*/ 39 40#include <sys/param.h> 41#include <sys/systm.h> | 28 * 29 */ 30 31/* 32 * SDL Communications Riscom/8 (based on Cirrus Logic CL-CD180) driver 33 * 34 */ 35 36#include "rc.h" 37 38/*#define RCDEBUG*/ 39 40#include <sys/param.h> 41#include <sys/systm.h> |
42#include <sys/kernel.h> |
|
42#include <sys/tty.h> 43#include <sys/proc.h> 44#include <sys/conf.h> 45#include <sys/dkstat.h> 46#include <sys/fcntl.h> | 43#include <sys/tty.h> 44#include <sys/proc.h> 45#include <sys/conf.h> 46#include <sys/dkstat.h> 47#include <sys/fcntl.h> |
48#include <sys/bus.h> |
|
47#include <sys/interrupt.h> | 49#include <sys/interrupt.h> |
48#include <sys/kernel.h> | |
49#include <machine/clock.h> 50#include <machine/ipl.h> 51 52#include <i386/isa/isa_device.h> 53 54#include <i386/isa/ic/cd180.h> 55#include <i386/isa/rcreg.h> 56 --- 19 unchanged lines hidden (view full) --- 76#define RC_PROBED 1 77#define RC_ATTACHED 2 78 79#define GET_UNIT(dev) (minor(dev) & 0x3F) 80#define CALLOUT(dev) (minor(dev) & 0x80) 81 82/* For isa routines */ 83struct isa_driver rcdriver = { | 50#include <machine/clock.h> 51#include <machine/ipl.h> 52 53#include <i386/isa/isa_device.h> 54 55#include <i386/isa/ic/cd180.h> 56#include <i386/isa/rcreg.h> 57 --- 19 unchanged lines hidden (view full) --- 77#define RC_PROBED 1 78#define RC_ATTACHED 2 79 80#define GET_UNIT(dev) (minor(dev) & 0x3F) 81#define CALLOUT(dev) (minor(dev) & 0x80) 82 83/* For isa routines */ 84struct isa_driver rcdriver = { |
84 rcprobe, rcattach, "rc" | 85 INTR_TYPE_TTY, 86 rcprobe, 87 rcattach, 88 "rc" |
85}; | 89}; |
90COMPAT_ISA_DRIVER(rc, rcdriver); |
|
86 87static d_open_t rcopen; 88static d_close_t rcclose; 89static d_ioctl_t rcioctl; 90 91#define CDEV_MAJOR 63 92static struct cdevsw rc_cdevsw = { 93 /* open */ rcopen, --- 1360 unchanged lines hidden --- | 91 92static d_open_t rcopen; 93static d_close_t rcclose; 94static d_ioctl_t rcioctl; 95 96#define CDEV_MAJOR 63 97static struct cdevsw rc_cdevsw = { 98 /* open */ rcopen, --- 1360 unchanged lines hidden --- |