Deleted Added
full compact
rc.c (46704) rc.c (47625)
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:

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

94static d_close_t rcclose;
95static d_read_t rcread;
96static d_write_t rcwrite;
97static d_ioctl_t rcioctl;
98static d_stop_t rcstop;
99static d_devtotty_t rcdevtotty;
100
101#define CDEV_MAJOR 63
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:

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

94static d_close_t rcclose;
95static d_read_t rcread;
96static d_write_t rcwrite;
97static d_ioctl_t rcioctl;
98static d_stop_t rcstop;
99static d_devtotty_t rcdevtotty;
100
101#define CDEV_MAJOR 63
102static struct cdevsw rc_cdevsw = {
103 rcopen, rcclose, rcread, rcwrite,
104 rcioctl, rcstop, noreset, rcdevtotty,
105 ttpoll, nommap, NULL, "rc",
106 NULL, -1, nodump, nopsize,
107 D_TTY,
102static struct cdevsw rc_cdevsw = {
103 /* open */ rcopen,
104 /* close */ rcclose,
105 /* read */ rcread,
106 /* write */ rcwrite,
107 /* ioctl */ rcioctl,
108 /* stop */ rcstop,
109 /* reset */ noreset,
110 /* devtotty */ rcdevtotty,
111 /* poll */ ttpoll,
112 /* mmap */ nommap,
113 /* strategy */ nostrategy,
114 /* name */ "rc",
115 /* parms */ noparms,
116 /* maj */ CDEV_MAJOR,
117 /* dump */ nodump,
118 /* psize */ nopsize,
119 /* flags */ D_TTY,
120 /* maxio */ 0,
121 /* bmaj */ -1
108};
109
110/* Per-board structure */
111static struct rc_softc {
112 u_int rcb_probed; /* 1 - probed, 2 - attached */
113 u_int rcb_addr; /* Base I/O addr */
114 u_int rcb_unit; /* unit # */
115 u_char rcb_dtr; /* DTR status */

--- 1400 unchanged lines hidden ---
122};
123
124/* Per-board structure */
125static struct rc_softc {
126 u_int rcb_probed; /* 1 - probed, 2 - attached */
127 u_int rcb_addr; /* Base I/O addr */
128 u_int rcb_unit; /* unit # */
129 u_char rcb_dtr; /* DTR status */

--- 1400 unchanged lines hidden ---