diff options
| author | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1999-01-12 10:35:58 +0000 |
|---|---|---|
| committer | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1999-01-12 10:35:58 +0000 |
| commit | 90500a9d1a9fbb8a4239d14452ad947fb562884a (patch) | |
| tree | 6cf88e05de4aba36d6f54148f7cbd217d73a1946 /sys/dev/kbd | |
| parent | 26fd36dffaee87336f8ab30af5c0057cc65640c4 (diff) | |
Notes
Diffstat (limited to 'sys/dev/kbd')
| -rw-r--r-- | sys/dev/kbd/kbd.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sys/dev/kbd/kbd.c b/sys/dev/kbd/kbd.c index 7fac7091921b..ee4ade1adf6b 100644 --- a/sys/dev/kbd/kbd.c +++ b/sys/dev/kbd/kbd.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: $ + * $Id: kbd.c,v 1.1 1999/01/09 02:44:50 yokota Exp $ */ #include "kbd.h" @@ -51,17 +51,20 @@ * for the kernel console. The arrays will be increased dynamically * when necessary. */ -static keyboard_t *kbd_ini; -static keyboard_switch_t *kbdsw_ini; -static struct cdevsw *kbdcdevsw_ini; -static keyboard_t **keyboard = &kbd_ini; static int keyboards = 1; +static keyboard_t *kbd_ini; +static keyboard_t **keyboard = &kbd_ini; +static keyboard_switch_t *kbdsw_ini; keyboard_switch_t **kbdsw = &kbdsw_ini; -static struct cdevsw **kbdcdevsw = &kbdcdevsw_ini; + +#ifdef KBD_INSTALL_CDEV #define ARRAY_DELTA 4 +static struct cdevsw *kbdcdevsw_ini; +static struct cdevsw **kbdcdevsw = &kbdcdevsw_ini; + static void kbd_realloc_array(void) { @@ -97,6 +100,8 @@ kbd_realloc_array(void) printf("kbd: new array size %d\n", keyboards); } +#endif /* KBD_INSTALL_CDEV */ + /* * Low-level keyboard driver functions * Keyboard subdrivers, such as the AT keyboard driver and the USB keyboard |
