kbd.c (8fa0b743820f61c661ba5f3ea0e3be0dc137910e) kbd.c (73a1170a8c41cb848f17cc0a8839e9dcee3d126e)
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

--- 1130 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
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

--- 1130 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 ---