rp.c (130096) | rp.c (130344) |
---|---|
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 130096 2004-06-04 21:55:55Z phk $"); | 35__FBSDID("$FreeBSD: head/sys/dev/rp/rp.c 130344 2004-06-11 11:16:26Z phk $"); |
36 37/* 38 * rp.c - for RocketPort FreeBSD 39 */ 40 41#include "opt_compat.h" 42 43#include <sys/param.h> --- 1187 unchanged lines hidden (view full) --- 1231 struct rp_port *rp; 1232 CHANNEL_t *cp; 1233 struct tty *tp; 1234 int unit, mynor, port, umynor; /* SG */ 1235 int oldspl; 1236 int error = 0; 1237 int arg, flags, result, ChanStatus; 1238 struct termios *t; | 36 37/* 38 * rp.c - for RocketPort FreeBSD 39 */ 40 41#include "opt_compat.h" 42 43#include <sys/param.h> --- 1187 unchanged lines hidden (view full) --- 1231 struct rp_port *rp; 1232 CHANNEL_t *cp; 1233 struct tty *tp; 1234 int unit, mynor, port, umynor; /* SG */ 1235 int oldspl; 1236 int error = 0; 1237 int arg, flags, result, ChanStatus; 1238 struct termios *t; |
1239#if defined(COMPAT_43) || defined(COMPAT_SUNOS) | 1239#if defined(COMPAT_43) |
1240 u_long oldcmd; 1241 struct termios term; 1242#endif 1243 1244 umynor = (((minor(dev) >> 16) -1) * 32); /* SG */ 1245 port = (minor(dev) & 0x1f); /* SG */ 1246 mynor = (port + umynor); /* SG */ 1247 unit = minor_to_unit[mynor]; --- 31 unchanged lines hidden (view full) --- 1279 default: 1280 return(ENOTTY); 1281 } 1282 } 1283 1284 tp = rp->rp_tty; 1285 cp = &rp->rp_channel; 1286 | 1240 u_long oldcmd; 1241 struct termios term; 1242#endif 1243 1244 umynor = (((minor(dev) >> 16) -1) * 32); /* SG */ 1245 port = (minor(dev) & 0x1f); /* SG */ 1246 mynor = (port + umynor); /* SG */ 1247 unit = minor_to_unit[mynor]; --- 31 unchanged lines hidden (view full) --- 1279 default: 1280 return(ENOTTY); 1281 } 1282 } 1283 1284 tp = rp->rp_tty; 1285 cp = &rp->rp_channel; 1286 |
1287#if defined(COMPAT_43) || defined(COMPAT_SUNOS) | 1287#if defined(COMPAT_43) |
1288 term = tp->t_termios; 1289 oldcmd = cmd; 1290 error = ttsetcompat(tp, &cmd, data, &term); 1291 if(error != 0) 1292 return(error); 1293 if(cmd != oldcmd) { 1294 data = (caddr_t)&term; 1295 } --- 362 unchanged lines hidden --- | 1288 term = tp->t_termios; 1289 oldcmd = cmd; 1290 error = ttsetcompat(tp, &cmd, data, &term); 1291 if(error != 0) 1292 return(error); 1293 if(cmd != oldcmd) { 1294 data = (caddr_t)&term; 1295 } --- 362 unchanged lines hidden --- |