Deleted Added
sdiff udiff text old ( 125087 ) new ( 126076 )
full compact
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

--- 12 unchanged lines hidden (view full) ---

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 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/kbd/kbd.c 126076 2004-02-21 19:42:58Z phk $");
30
31#include "opt_kbd.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>
37#include <sys/conf.h>

--- 388 unchanged lines hidden (view full) ---

426
427static d_open_t genkbdopen;
428static d_close_t genkbdclose;
429static d_read_t genkbdread;
430static d_write_t genkbdwrite;
431static d_ioctl_t genkbdioctl;
432static d_poll_t genkbdpoll;
433
434
435static struct cdevsw kbd_cdevsw = {
436 .d_open = genkbdopen,
437 .d_close = genkbdclose,
438 .d_read = genkbdread,
439 .d_write = genkbdwrite,
440 .d_ioctl = genkbdioctl,
441 .d_poll = genkbdpoll,
442 .d_name = "kbd",
443};
444
445int
446kbd_attach(keyboard_t *kbd)
447{
448
449 if (kbd->kb_index >= keyboards)
450 return EINVAL;

--- 936 unchanged lines hidden ---