From 7a1a32c4ef277b98b9164496091f7d50f203fb81 Mon Sep 17 00:00:00 2001 From: Aleksandr Rybalko Date: Mon, 23 Dec 2013 18:09:10 +0000 Subject: o Add virtual terminal mmap request handler. o Forward termianl framebuffer ioctl to fbd. o Forward terminal mmap request to fbd. o Move inclusion of sys/conf.h to vt.h. Sponsored by: The FreeBSD Foundation --- sys/sys/terminal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/sys/terminal.h') diff --git a/sys/sys/terminal.h b/sys/sys/terminal.h index e76190b500a5..1809c0ac941c 100644 --- a/sys/sys/terminal.h +++ b/sys/sys/terminal.h @@ -95,6 +95,8 @@ typedef int tc_cngetc_t(struct terminal *tm); typedef void tc_opened_t(struct terminal *tm, int opened); typedef int tc_ioctl_t(struct terminal *tm, u_long cmd, caddr_t data, struct thread *td); +typedef int tc_mmap_t(struct terminal *tm, vm_ooffset_t offset, + vm_paddr_t * paddr, int nprot, vm_memattr_t *memattr); typedef void tc_bell_t(struct terminal *tm); struct terminal_class { @@ -109,10 +111,11 @@ struct terminal_class { /* Low-level console interface. */ tc_cnprobe_t *tc_cnprobe; tc_cngetc_t *tc_cngetc; - + /* Misc. */ tc_opened_t *tc_opened; tc_ioctl_t *tc_ioctl; + tc_mmap_t *tc_mmap; tc_bell_t *tc_bell; }; -- cgit v1.2.3