summaryrefslogtreecommitdiff
path: root/sys/dev/cons.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/cons.h')
-rw-r--r--sys/dev/cons.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/cons.h b/sys/dev/cons.h
index 14adef8e9ae..8dcd7d11de2 100644
--- a/sys/dev/cons.h
+++ b/sys/dev/cons.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cons.h,v 1.7 2001/03/01 20:54:33 provos Exp $ */
+/* $OpenBSD: cons.h,v 1.8 2001/04/17 04:30:49 aaron Exp $ */
/* $NetBSD: cons.h,v 1.14 1996/03/14 19:08:35 christos Exp $ */
/*
@@ -54,6 +54,8 @@ struct consdev {
__P((dev_t, int));
void (*cn_pollc) /* turn on and off polling */
__P((dev_t, int));
+ void (*cn_bell) /* ring bell */
+ __P((dev_t, u_int, u_int, u_int));
dev_t cn_dev; /* major/minor of device */
int cn_pri; /* pecking order; the higher the better */
};
@@ -86,6 +88,7 @@ int cnkqfilter __P((dev_t, struct knote *));
int cngetc __P((void));
void cnputc __P((int));
void cnpollc __P((int));
+void cnbell __P((u_int, u_int, u_int));
void cnrint __P((void));
void nullcnpollc __P((dev_t, int));
@@ -95,13 +98,18 @@ void nullcnpollc __P((dev_t, int));
#define dev_type_cngetc(n) int n __P((dev_t))
#define dev_type_cnputc(n) void n __P((dev_t, int))
#define dev_type_cnpollc(n) void n __P((dev_t, int))
+#define dev_type_cnbell(n) void n __P((dev_t, u_int, u_int, u_int))
#define cons_decl(n) \
dev_decl(n,cnprobe); dev_decl(n,cninit); dev_decl(n,cngetc); \
- dev_decl(n,cnputc); dev_decl(n,cnpollc)
+ dev_decl(n,cnputc); dev_decl(n,cnpollc); dev_decl(n,cnbell);
#define cons_init(n) { \
dev_init(1,n,cnprobe), dev_init(1,n,cninit), dev_init(1,n,cngetc), \
dev_init(1,n,cnputc), dev_init(1,n,cnpollc) }
+#define cons_init_bell(n) { \
+ dev_init(1,n,cnprobe), dev_init(1,n,cninit), dev_init(1,n,cngetc), \
+ dev_init(1,n,cnputc), dev_init(1,n,cnpollc), dev_init(1,n,cnbell) }
+
#endif