diff options
| author | thorpej <thorpej@NetBSD.org> | 2000-03-06 21:36:05 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2000-03-06 21:36:05 +0000 |
| commit | a183d34f04482a618d0fb955db92ffba90ee516e (patch) | |
| tree | 6b144785feb78953b66a5cb9b808dbdec2860306 /sys/dev/cons.h | |
| parent | 57aae5ce02da67da6b5b5d6516b9f333ec98606e (diff) | |
- Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
Diffstat (limited to 'sys/dev/cons.h')
| -rw-r--r-- | sys/dev/cons.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/cons.h b/sys/dev/cons.h index ecb452147d5..d264fd25803 100644 --- a/sys/dev/cons.h +++ b/sys/dev/cons.h @@ -1,4 +1,4 @@ -/* $NetBSD: cons.h,v 1.16 1999/12/08 01:20:12 simonb Exp $ */ +/* $NetBSD: cons.h,v 1.17 2000/03/06 21:36:12 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -56,6 +56,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 */ }; @@ -84,6 +86,7 @@ int cnpoll __P((dev_t, int, struct proc *)); 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)); @@ -93,15 +96,20 @@ 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 #endif /* _SYS_DEV_CONS_H_ */ |
