1/*
2 * Copyright (c) 1988 University of Utah.
3 * Copyright (c) 1991 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the Systems Programming Group of the University of Utah Computer
8 * Science Department.
--- 22 unchanged lines hidden (view full) ---
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * from: @(#)cons.c 7.2 (Berkeley) 5/9/91
39 * $FreeBSD: head/sys/kern/tty_cons.c 111815 2003-03-03 12:15:54Z phk $
40 */
41
42#include "opt_ddb.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/conf.h>
47#include <sys/cons.h>
--- 18 unchanged lines hidden (view full) ---
66static d_read_t cnread;
67static d_write_t cnwrite;
68static d_ioctl_t cnioctl;
69static d_poll_t cnpoll;
70static d_kqfilter_t cnkqfilter;
71
72#define CDEV_MAJOR 0
73static struct cdevsw cn_cdevsw = {
74 .d_open = cnopen,
75 .d_close = cnclose,
76 .d_read = cnread,
77 .d_write = cnwrite,
78 .d_ioctl = cnioctl,
79 .d_poll = cnpoll,
80 .d_name = "console",
81 .d_maj = CDEV_MAJOR,
82 .d_flags = D_TTY | D_KQFILTER,
83 .d_kqfilter = cnkqfilter,
84};
85
86struct cn_device {
87 STAILQ_ENTRY(cn_device) cnd_next;
88 char cnd_name[16];
89 struct vnode *cnd_vp;
90 struct consdev *cnd_cn;
91};
--- 503 unchanged lines hidden ---
2 * Copyright (c) 1988 University of Utah.
3 * Copyright (c) 1991 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the Systems Programming Group of the University of Utah Computer
8 * Science Department.
--- 22 unchanged lines hidden (view full) ---
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * from: @(#)cons.c 7.2 (Berkeley) 5/9/91
39 * $FreeBSD: head/sys/kern/tty_cons.c 111815 2003-03-03 12:15:54Z phk $
40 */
41
42#include "opt_ddb.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/conf.h>
47#include <sys/cons.h>
--- 18 unchanged lines hidden (view full) ---
66static d_read_t cnread;
67static d_write_t cnwrite;
68static d_ioctl_t cnioctl;
69static d_poll_t cnpoll;
70static d_kqfilter_t cnkqfilter;
71
72#define CDEV_MAJOR 0
73static struct cdevsw cn_cdevsw = {
74 .d_open = cnopen,
75 .d_close = cnclose,
76 .d_read = cnread,
77 .d_write = cnwrite,
78 .d_ioctl = cnioctl,
79 .d_poll = cnpoll,
80 .d_name = "console",
81 .d_maj = CDEV_MAJOR,
82 .d_flags = D_TTY | D_KQFILTER,
83 .d_kqfilter = cnkqfilter,
84};
85
86struct cn_device {
87 STAILQ_ENTRY(cn_device) cnd_next;
88 char cnd_name[16];
89 struct vnode *cnd_vp;
90 struct consdev *cnd_cn;
91};
--- 503 unchanged lines hidden ---