Deleted Added
full compact
kbd.c (227309) kbd.c (298307)
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>
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 227309 2011-11-07 15:43:11Z ed $");
29__FBSDID("$FreeBSD: head/sys/dev/kbd/kbd.c 298307 2016-04-19 23:37:24Z pfg $");
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>

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

1139 char *name;
1140 } name_table[] = {
1141 { KB_84, "AT 84" },
1142 { KB_101, "AT 101/102" },
1143 { KB_OTHER, "generic" },
1144 };
1145 int i;
1146
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>

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

1139 char *name;
1140 } name_table[] = {
1141 { KB_84, "AT 84" },
1142 { KB_101, "AT 101/102" },
1143 { KB_OTHER, "generic" },
1144 };
1145 int i;
1146
1147 for (i = 0; i < sizeof(name_table)/sizeof(name_table[0]); ++i) {
1147 for (i = 0; i < nitems(name_table); ++i) {
1148 if (type == name_table[i].type)
1149 return (name_table[i].name);
1150 }
1151 return ("unknown");
1152}
1153
1154void
1155genkbd_diag(keyboard_t *kbd, int level)

--- 332 unchanged lines hidden ---
1148 if (type == name_table[i].type)
1149 return (name_table[i].name);
1150 }
1151 return ("unknown");
1152}
1153
1154void
1155genkbd_diag(keyboard_t *kbd, int level)

--- 332 unchanged lines hidden ---