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/atkbdc/atkbd.c 147271 2005-06-10 20:56:38Z marius $");
30
31#include "opt_kbd.h"
32#include "opt_atkbd.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/bus.h>
--- 239 unchanged lines hidden (view full) ---
277 */
278static int
279atkbd_configure(int flags)
280{
281 keyboard_t *kbd;
282 int arg[2];
283 int i;
284
285 /* probe the keyboard controller */
286 atkbdc_configure();
287
288 /* if the driver is disabled, unregister the keyboard if any */
289 if (resource_disabled("atkbd", ATKBD_DEFAULT)) {
290 i = kbd_find_keyboard(ATKBD_DRIVER_NAME, ATKBD_DEFAULT);
291 if (i >= 0) {
292 kbd = kbd_get_keyboard(i);
293 kbd_unregister(kbd);
294 kbd->kb_flags &= ~KB_REGISTERED;
295 }
296 return 0;
297 }
--- 1173 unchanged lines hidden ---
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/atkbdc/atkbd.c 147271 2005-06-10 20:56:38Z marius $");
30
31#include "opt_kbd.h"
32#include "opt_atkbd.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/bus.h>
--- 239 unchanged lines hidden (view full) ---
277 */
278static int
279atkbd_configure(int flags)
280{
281 keyboard_t *kbd;
282 int arg[2];
283 int i;
284
285 /* probe the keyboard controller */
286 atkbdc_configure();
287
288 /* if the driver is disabled, unregister the keyboard if any */
289 if (resource_disabled("atkbd", ATKBD_DEFAULT)) {
290 i = kbd_find_keyboard(ATKBD_DRIVER_NAME, ATKBD_DEFAULT);
291 if (i >= 0) {
292 kbd = kbd_get_keyboard(i);
293 kbd_unregister(kbd);
294 kbd->kb_flags &= ~KB_REGISTERED;
295 }
296 return 0;
297 }
--- 1173 unchanged lines hidden ---