kbd.c (47625) | kbd.c (47640) |
---|---|
1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $Id: kbd.c,v 1.7 1999/05/30 14:55:24 phk Exp $ | 26 * $Id: kbd.c,v 1.8 1999/05/30 16:51:31 phk Exp $ |
27 */ 28 29#include "kbd.h" 30#include "opt_kbd.h" 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> --- 391 unchanged lines hidden (view full) --- 426 /* maxio */ 0, 427 /* bmaj */ -1 428}; 429 430static void 431vkbdattach(void *arg) 432{ 433 static int kbd_devsw_installed = FALSE; | 27 */ 28 29#include "kbd.h" 30#include "opt_kbd.h" 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> --- 391 unchanged lines hidden (view full) --- 426 /* maxio */ 0, 427 /* bmaj */ -1 428}; 429 430static void 431vkbdattach(void *arg) 432{ 433 static int kbd_devsw_installed = FALSE; |
434 dev_t dev; | |
435 436 if (!kbd_devsw_installed) { | 434 435 if (!kbd_devsw_installed) { |
437 dev = makedev(CDEV_MAJOR, 0); 438 cdevsw_add(&dev, &kbd_cdevsw, NULL); | 436 cdevsw_add(&kbd_cdevsw); |
439 kbd_devsw_installed = TRUE; 440 } 441} 442 443PSEUDO_SET(vkbdattach, kbd); 444 445int 446kbd_attach(dev_t dev, keyboard_t *kbd, struct cdevsw *cdevsw) --- 800 unchanged lines hidden --- | 437 kbd_devsw_installed = TRUE; 438 } 439} 440 441PSEUDO_SET(vkbdattach, kbd); 442 443int 444kbd_attach(dev_t dev, keyboard_t *kbd, struct cdevsw *cdevsw) --- 800 unchanged lines hidden --- |