diff options
author | phk <phk@FreeBSD.org> | 2006-05-26 13:51:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-05-26 13:51:38 +0000 |
commit | c7b8431cf0c73811b1d6e59c76103009907b5961 (patch) | |
tree | 23c4cc6355dac5608bf0baf2f7ccb5dceb5cbec9 /sys/dev/dcons/dcons_os.c | |
parent | 39ead5158b699dbee6dff7bbf03f10a122c22be8 (diff) | |
download | FreeBSD-src-c7b8431cf0c73811b1d6e59c76103009907b5961.zip FreeBSD-src-c7b8431cf0c73811b1d6e59c76103009907b5961.tar.gz |
Convert to new console interface.
Diffstat (limited to 'sys/dev/dcons/dcons_os.c')
-rw-r--r-- | sys/dev/dcons/dcons_os.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c index ce3cc94..38803ac 100644 --- a/sys/dev/dcons/dcons_os.c +++ b/sys/dev/dcons/dcons_os.c @@ -171,12 +171,11 @@ static int dcons_drv_init(int); static cn_probe_t dcons_cnprobe; static cn_init_t dcons_cninit; +static cn_term_t dcons_cnterm; static cn_getc_t dcons_cngetc; -static cn_checkc_t dcons_cncheckc; static cn_putc_t dcons_cnputc; -CONS_DRIVER(dcons, dcons_cnprobe, dcons_cninit, NULL, dcons_cngetc, - dcons_cncheckc, dcons_cnputc, NULL); +CONSOLE_DRIVER(dcons); #if __FreeBSD_version >= 502122 static gdb_probe_f dcons_dbg_probe; @@ -443,15 +442,14 @@ dcons_cninit(struct consdev *cp) = (void *)&sc[DCONS_CON]; /* share port0 with unit0 */ } -#if CONS_NODEV -static int -dcons_cngetc(struct consdev *cp) +static void +dcons_cnterm(struct consdev *cp) { - struct dcons_softc *dc = (struct dcons_softc *)cp->cn_arg; - return (dcons_os_getc(dc)); } + +#if CONS_NODEV static int -dcons_cncheckc(struct consdev *cp) +dcons_cngetc(struct consdev *cp) { struct dcons_softc *dc = (struct dcons_softc *)cp->cn_arg; return (dcons_os_checkc(dc)); |