Deleted Added
full compact
ofw_console.c (78346) ofw_console.c (80696)
1/*
2 * Copyright (C) 2001 Benno Rice.
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

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

20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef lint
27static const char rcsid[] =
1/*
2 * Copyright (C) 2001 Benno Rice.
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

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

20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef lint
27static const char rcsid[] =
28 "$FreeBSD: head/sys/dev/ofw/ofw_console.c 78346 2001-06-16 07:17:56Z benno $";
28 "$FreeBSD: head/sys/dev/ofw/ofw_console.c 80696 2001-07-31 03:32:24Z jake $";
29#endif /* not lint */
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/systm.h>
34#include <sys/types.h>
35#include <sys/conf.h>
36#include <sys/cons.h>

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

154static int
155ofw_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
156{
157 int unit;
158 struct tty *tp;
159 int error;
160
161 unit = minor(dev);
29#endif /* not lint */
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/systm.h>
34#include <sys/types.h>
35#include <sys/conf.h>
36#include <sys/cons.h>

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

154static int
155ofw_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
156{
157 int unit;
158 struct tty *tp;
159 int error;
160
161 unit = minor(dev);
162 tp = ofw_tp;
163
162 if (unit != 0) {
163 return (ENXIO);
164 }
165
166 error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
167 if (error != ENOIOCTL) {
168 return (error);
169 }

--- 137 unchanged lines hidden ---
164 if (unit != 0) {
165 return (ENXIO);
166 }
167
168 error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
169 if (error != ENOIOCTL) {
170 return (error);
171 }

--- 137 unchanged lines hidden ---