Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/gehenna-devsw]: src/sys/dev/tc Add the character device switch.
details: https://anonhg.NetBSD.org/src/rev/c14c2ea4a98a
branches: gehenna-devsw
changeset: 527066:c14c2ea4a98a
user: gehenna <gehenna%NetBSD.org@localhost>
date: Thu May 16 11:30:54 2002 +0000
description:
Add the character device switch.
diffstat:
sys/dev/tc/stic.c | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diffs (45 lines):
diff -r f37b5a8bfcff -r c14c2ea4a98a sys/dev/tc/stic.c
--- a/sys/dev/tc/stic.c Thu May 16 11:29:45 2002 +0000
+++ b/sys/dev/tc/stic.c Thu May 16 11:30:54 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stic.c,v 1.17 2002/03/17 19:41:03 atatat Exp $ */
+/* $NetBSD: stic.c,v 1.17.4.1 2002/05/16 11:30:54 gehenna Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: stic.c,v 1.17 2002/03/17 19:41:03 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: stic.c,v 1.17.4.1 2002/05/16 11:30:54 gehenna Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -164,10 +164,6 @@
int stic_show_screen(void *, void *, int, void (*)(void *, int, int),
void *);
-int sticopen(dev_t, int, int, struct proc *);
-int sticclose(dev_t, int, int, struct proc *);
-paddr_t sticmmap(dev_t, off_t, int);
-
void stic_do_switch(void *);
void stic_setup_backing(struct stic_info *, struct stic_screen *);
void stic_setup_vdac(struct stic_info *);
@@ -189,6 +185,15 @@
void stic_putchar(void *, int, int, u_int, long);
int stic_alloc_attr(void *, int, int, int, long *);
+dev_type_open(sticopen);
+dev_type_close(sticclose);
+dev_type_mmap(sticmmap);
+
+const struct cdevsw stic_cdevsw = {
+ sticopen, sticclose, noread, nowrite, noioctl,
+ nostop, notty, nopoll, sticmmap,
+};
+
/* Colormap for wscons, matching WSCOL_*. Upper 8 are high-intensity. */
static const u_int8_t stic_cmap[16*3] = {
0x00, 0x00, 0x00, /* black */
Home |
Main Index |
Thread Index |
Old Index