atkbdreg.h revision 50477
1198090Srdivacky/*-
2198090Srdivacky * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
3353358Sdim * All rights reserved.
4353358Sdim *
5353358Sdim * Redistribution and use in source and binary forms, with or without
6198090Srdivacky * modification, are permitted provided that the following conditions
7198090Srdivacky * are met:
8198090Srdivacky * 1. Redistributions of source code must retain the above copyright
9198090Srdivacky *    notice, this list of conditions and the following disclaimer as
10198090Srdivacky *    the first lines of this file unmodified.
11198090Srdivacky * 2. Redistributions in binary form must reproduce the above copyright
12218893Sdim *    notice, this list of conditions and the following disclaimer in the
13321369Sdim *    documentation and/or other materials provided with the distribution.
14321369Sdim *
15198090Srdivacky * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
16198090Srdivacky * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17321369Sdim * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18276479Sdim * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19205218Srdivacky * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20218893Sdim * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21198090Srdivacky * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22280031Sdim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23296417Sdim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24221345Sdim * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25276479Sdim *
26198090Srdivacky * $FreeBSD: head/sys/dev/atkbdc/atkbdreg.h 50477 1999-08-28 01:08:13Z peter $
27198090Srdivacky */
28198090Srdivacky
29198090Srdivacky#ifndef _DEV_KBD_ATKBDREG_H_
30198090Srdivacky#define _DEV_KBD_ATKBDREG_H_
31321369Sdim
32321369Sdim#define ATKBD_DRIVER_NAME	"atkbd"
33341825Sdim
34198090Srdivacky/* device configuration flags (atkbdprobe, atkbdattach) */
35198090Srdivacky#define KB_CONF_FAIL_IF_NO_KBD	(1 << 0) /* don't install if no kbd is found */
36198090Srdivacky#define KB_CONF_NO_RESET	(1 << 1) /* don't reset the keyboard */
37198090Srdivacky#define KB_CONF_ALT_SCANCODESET	(1 << 2) /* assume the XT type keyboard */
38198090Srdivacky
39198090Srdivacky#ifdef KERNEL
40198090Srdivacky
41203954Srdivackyint		atkbd_probe_unit(int unit, int port, int irq, int flags);
42203954Srdivackyint		atkbd_attach_unit(int unit, keyboard_t **kbd,
43198090Srdivacky				 int port, int irq, int flags);
44198090Srdivacky
45198090Srdivacky#endif /* KERNEL */
46198090Srdivacky
47321369Sdim#endif /* !_DEV_KBD_ATKBDREG_H_ */
48198090Srdivacky