Deleted Added
full compact
rp.c (191563) rp.c (193018)
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

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

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 */
33
34#include <sys/cdefs.h>
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

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

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 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/rp/rp.c 191563 2009-04-27 15:58:38Z ambrisko $");
35__FBSDID("$FreeBSD: head/sys/dev/rp/rp.c 193018 2009-05-29 06:41:23Z ed $");
36
37/*
38 * rp.c - for RocketPort FreeBSD
39 */
40
41#include "opt_compat.h"
42
43#include <sys/param.h>

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

769
770 bzero(rp, sizeof(struct rp_port) * num_ports);
771 rp_addr(unit) = rp;
772
773 port = 0;
774 for(aiop=0; aiop < num_aiops; aiop++) {
775 num_chan = sGetAiopNumChan(ctlp, aiop);
776 for(chan=0; chan < num_chan; chan++, port++, rp++) {
36
37/*
38 * rp.c - for RocketPort FreeBSD
39 */
40
41#include "opt_compat.h"
42
43#include <sys/param.h>

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

769
770 bzero(rp, sizeof(struct rp_port) * num_ports);
771 rp_addr(unit) = rp;
772
773 port = 0;
774 for(aiop=0; aiop < num_aiops; aiop++) {
775 num_chan = sGetAiopNumChan(ctlp, aiop);
776 for(chan=0; chan < num_chan; chan++, port++, rp++) {
777 rp->rp_tty = tp = tty_alloc(&rp_tty_class, rp, NULL);
777 rp->rp_tty = tp = tty_alloc(&rp_tty_class, rp);
778 rp->rp_port = port;
779 rp->rp_ctlp = ctlp;
780 rp->rp_unit = unit;
781 rp->rp_chan = chan;
782 rp->rp_aiop = aiop;
783
784 rp->rp_intmask = RXF_TRIG | TXFIFO_MT | SRC_INT |
785 DELTA_CD | DELTA_CTS | DELTA_DSR;

--- 380 unchanged lines hidden ---
778 rp->rp_port = port;
779 rp->rp_ctlp = ctlp;
780 rp->rp_unit = unit;
781 rp->rp_chan = chan;
782 rp->rp_aiop = aiop;
783
784 rp->rp_intmask = RXF_TRIG | TXFIFO_MT | SRC_INT |
785 DELTA_CD | DELTA_CTS | DELTA_DSR;

--- 380 unchanged lines hidden ---