sio.c (130096) | sio.c (130344) |
---|---|
1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/pc98/cbus/sio.c 130096 2004-06-04 21:55:55Z phk $ | 29 * $FreeBSD: head/sys/pc98/cbus/sio.c 130344 2004-06-11 11:16:26Z phk $ |
30 * from: @(#)com.c 7.5 (Berkeley) 5/16/91 31 * from: i386/isa sio.c,v 1.234 32 */ 33 34#include "opt_comconsole.h" 35#include "opt_compat.h" 36#include "opt_ddb.h" 37#include "opt_sio.h" --- 2902 unchanged lines hidden (view full) --- 2940 int flag; 2941 struct thread *td; 2942{ 2943 struct com_s *com; 2944 int error; 2945 int mynor; 2946 int s; 2947 struct tty *tp; | 30 * from: @(#)com.c 7.5 (Berkeley) 5/16/91 31 * from: i386/isa sio.c,v 1.234 32 */ 33 34#include "opt_comconsole.h" 35#include "opt_compat.h" 36#include "opt_ddb.h" 37#include "opt_sio.h" --- 2902 unchanged lines hidden (view full) --- 2940 int flag; 2941 struct thread *td; 2942{ 2943 struct com_s *com; 2944 int error; 2945 int mynor; 2946 int s; 2947 struct tty *tp; |
2948#if defined(COMPAT_43) || defined(COMPAT_SUNOS) | 2948#if defined(COMPAT_43) |
2949 u_long oldcmd; 2950 struct termios term; 2951#endif 2952 2953 mynor = minor(dev); 2954 com = com_addr(MINOR_TO_UNIT(mynor)); 2955 if (com == NULL || com->gone) 2956 return (ENODEV); --- 26 unchanged lines hidden (view full) --- 2983 case TIOCGWINSZ: 2984 bzero(data, sizeof(struct winsize)); 2985 return (0); 2986 default: 2987 return (ENOTTY); 2988 } 2989 } 2990 tp = com->tp; | 2949 u_long oldcmd; 2950 struct termios term; 2951#endif 2952 2953 mynor = minor(dev); 2954 com = com_addr(MINOR_TO_UNIT(mynor)); 2955 if (com == NULL || com->gone) 2956 return (ENODEV); --- 26 unchanged lines hidden (view full) --- 2983 case TIOCGWINSZ: 2984 bzero(data, sizeof(struct winsize)); 2985 return (0); 2986 default: 2987 return (ENOTTY); 2988 } 2989 } 2990 tp = com->tp; |
2991#if defined(COMPAT_43) || defined(COMPAT_SUNOS) | 2991#if defined(COMPAT_43) |
2992 term = tp->t_termios; 2993 oldcmd = cmd; 2994 error = ttsetcompat(tp, &cmd, data, &term); 2995 if (error != 0) 2996 return (error); 2997 if (cmd != oldcmd) 2998 data = (caddr_t)&term; 2999#endif --- 2044 unchanged lines hidden --- | 2992 term = tp->t_termios; 2993 oldcmd = cmd; 2994 error = ttsetcompat(tp, &cmd, data, &term); 2995 if (error != 0) 2996 return (error); 2997 if (cmd != oldcmd) 2998 data = (caddr_t)&term; 2999#endif --- 2044 unchanged lines hidden --- |