Deleted Added
full compact
sio.c (62454) sio.c (62573)
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

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
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

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/pc98/cbus/sio.c 62454 2000-07-03 09:35:31Z phk $
33 * $FreeBSD: head/sys/pc98/cbus/sio.c 62573 2000-07-04 11:25:35Z phk $
34 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
35 * from: i386/isa sio.c,v 1.234
36 */
37
38#include "opt_comconsole.h"
39#include "opt_compat.h"
40#include "opt_ddb.h"
41#include "opt_sio.h"

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

873 * In addition to setting comdefaultrate for I/O through /dev/console,
874 * also set the initial and lock values for the /dev/ttyXX device
875 * if there is one associated with the console. Finally, if the /dev/tty
876 * device has already been open, change the speed on the open running port
877 * itself.
878 */
879
880static int
34 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
35 * from: i386/isa sio.c,v 1.234
36 */
37
38#include "opt_comconsole.h"
39#include "opt_compat.h"
40#include "opt_ddb.h"
41#include "opt_sio.h"

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

873 * In addition to setting comdefaultrate for I/O through /dev/console,
874 * also set the initial and lock values for the /dev/ttyXX device
875 * if there is one associated with the console. Finally, if the /dev/tty
876 * device has already been open, change the speed on the open running port
877 * itself.
878 */
879
880static int
881sysctl_machdep_comdefaultrate (SYSCTL_HANDLER_ARGS)
881sysctl_machdep_comdefaultrate(SYSCTL_HANDLER_ARGS)
882{
883 int error, s;
884 speed_t newspeed;
885 struct com_s *com;
886 struct tty *tp;
887
888 newspeed = comdefaultrate;
889

--- 4296 unchanged lines hidden ---
882{
883 int error, s;
884 speed_t newspeed;
885 struct com_s *com;
886 struct tty *tp;
887
888 newspeed = comdefaultrate;
889

--- 4296 unchanged lines hidden ---