Deleted Added
full compact
rp.c (46813) rp.c (47625)
1/*
2 * Copyright (c) Comtrol Corporation <support@comtrol.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted prodived that the follwoing conditions
7 * are met.
8 * 1. Redistributions of source code must retain the above copyright

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

24 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
1/*
2 * Copyright (c) Comtrol Corporation <support@comtrol.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted prodived that the follwoing conditions
7 * are met.
8 * 1. Redistributions of source code must retain the above copyright

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

24 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $Id: rp.c,v 1.25 1999/05/06 18:44:04 peter Exp $
32 * $Id: rp.c,v 1.26 1999/05/09 17:07:20 peter Exp $
33 */
34
35/*
36 * rp.c - for RocketPort FreeBSD
37 */
38
39#include "opt_compat.h"
40

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

796static d_close_t rpclose;
797static d_read_t rpread;
798static d_write_t rpwrite;
799static d_ioctl_t rpioctl;
800static d_stop_t rpstop;
801static d_devtotty_t rpdevtotty;
802
803#define CDEV_MAJOR 81
33 */
34
35/*
36 * rp.c - for RocketPort FreeBSD
37 */
38
39#include "opt_compat.h"
40

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

796static d_close_t rpclose;
797static d_read_t rpread;
798static d_write_t rpwrite;
799static d_ioctl_t rpioctl;
800static d_stop_t rpstop;
801static d_devtotty_t rpdevtotty;
802
803#define CDEV_MAJOR 81
804static struct cdevsw rp_cdevsw = {
805 rpopen, rpclose, rpread, rpwrite,
806 rpioctl, rpstop, noreset, rpdevtotty,
807 ttpoll, nommap, NULL, driver_name,
808 NULL, -1, nodump, nopsize,
809 D_TTY,
804static struct cdevsw rp_cdevsw = {
805 /* open */ rpopen,
806 /* close */ rpclose,
807 /* read */ rpread,
808 /* write */ rpwrite,
809 /* ioctl */ rpioctl,
810 /* stop */ rpstop,
811 /* reset */ noreset,
812 /* devtotty */ rpdevtotty,
813 /* poll */ ttpoll,
814 /* mmap */ nommap,
815 /* strategy */ nostrategy,
816 /* name */ driver_name,
817 /* parms */ noparms,
818 /* maj */ CDEV_MAJOR,
819 /* dump */ nodump,
820 /* psize */ nopsize,
821 /* flags */ D_TTY,
822 /* maxio */ 0,
823 /* bmaj */ -1
810};
811
812static int rp_controller_port = 0;
813static int rp_num_ports_open = 0;
814static int ndevs = 0;
815static int minor_to_unit[128];
816#if 0
817static struct tty rp_tty[128];

--- 1225 unchanged lines hidden ---
824};
825
826static int rp_controller_port = 0;
827static int rp_num_ports_open = 0;
828static int ndevs = 0;
829static int minor_to_unit[128];
830#if 0
831static struct tty rp_tty[128];

--- 1225 unchanged lines hidden ---