142421Syokota/*- 242421Syokota * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 342421Syokota * All rights reserved. 442421Syokota * 542421Syokota * Redistribution and use in source and binary forms, with or without 642421Syokota * modification, are permitted provided that the following conditions 742421Syokota * are met: 842421Syokota * 1. Redistributions of source code must retain the above copyright 942421Syokota * notice, this list of conditions and the following disclaimer as 1042421Syokota * the first lines of this file unmodified. 1142421Syokota * 2. Redistributions in binary form must reproduce the above copyright 1242421Syokota * notice, this list of conditions and the following disclaimer in the 1342421Syokota * documentation and/or other materials provided with the distribution. 1442421Syokota * 1542421Syokota * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 1642421Syokota * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1742421Syokota * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1842421Syokota * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 1942421Syokota * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2042421Syokota * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2142421Syokota * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2242421Syokota * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2342421Syokota * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2442421Syokota * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2542421Syokota * 2650477Speter * $FreeBSD$ 2742421Syokota */ 2842421Syokota 29147271Smarius#ifndef _DEV_ATKBDC_ATKBDREG_H_ 30147271Smarius#define _DEV_ATKBDC_ATKBDREG_H_ 3142421Syokota 3242421Syokota#define ATKBD_DRIVER_NAME "atkbd" 3342421Syokota 3442421Syokota/* device configuration flags (atkbdprobe, atkbdattach) */ 3542421Syokota#define KB_CONF_FAIL_IF_NO_KBD (1 << 0) /* don't install if no kbd is found */ 3642421Syokota#define KB_CONF_NO_RESET (1 << 1) /* don't reset the keyboard */ 3742421Syokota#define KB_CONF_ALT_SCANCODESET (1 << 2) /* assume the XT type keyboard */ 38138900Sjhb#define KB_CONF_NO_PROBE_TEST (1 << 3) /* don't test keyboard during probe */ 3942421Syokota 4055205Speter#ifdef _KERNEL 4142421Syokota 42245315Simpint atkbd_probe_unit(device_t dev, int irq, int flags); 43245315Simpint atkbd_attach_unit(device_t dev, keyboard_t **kbd, int irq, int flags); 4442421Syokota 4555205Speter#endif 4642421Syokota 47147271Smarius#endif /* !_DEV_ATKBDC_ATKBDREG_H_ */ 48