1617b9080SKazutaka YOKOTA /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3718cf2ccSPedro F. Giffuni * 4617b9080SKazutaka YOKOTA * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 5617b9080SKazutaka YOKOTA * All rights reserved. 6617b9080SKazutaka YOKOTA * 7617b9080SKazutaka YOKOTA * Redistribution and use in source and binary forms, with or without 8617b9080SKazutaka YOKOTA * modification, are permitted provided that the following conditions 9617b9080SKazutaka YOKOTA * are met: 10617b9080SKazutaka YOKOTA * 1. Redistributions of source code must retain the above copyright 11617b9080SKazutaka YOKOTA * notice, this list of conditions and the following disclaimer as 12617b9080SKazutaka YOKOTA * the first lines of this file unmodified. 13617b9080SKazutaka YOKOTA * 2. Redistributions in binary form must reproduce the above copyright 14617b9080SKazutaka YOKOTA * notice, this list of conditions and the following disclaimer in the 15617b9080SKazutaka YOKOTA * documentation and/or other materials provided with the distribution. 16617b9080SKazutaka YOKOTA * 17617b9080SKazutaka YOKOTA * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 18617b9080SKazutaka YOKOTA * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19617b9080SKazutaka YOKOTA * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20617b9080SKazutaka YOKOTA * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 21617b9080SKazutaka YOKOTA * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22617b9080SKazutaka YOKOTA * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23617b9080SKazutaka YOKOTA * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24617b9080SKazutaka YOKOTA * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25617b9080SKazutaka YOKOTA * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26617b9080SKazutaka YOKOTA * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27617b9080SKazutaka YOKOTA */ 28617b9080SKazutaka YOKOTA 29520b6353SMarius Strobl #ifndef _DEV_ATKBDC_ATKBDREG_H_ 30520b6353SMarius Strobl #define _DEV_ATKBDC_ATKBDREG_H_ 31617b9080SKazutaka YOKOTA 32617b9080SKazutaka YOKOTA #define ATKBD_DRIVER_NAME "atkbd" 33617b9080SKazutaka YOKOTA 34617b9080SKazutaka YOKOTA /* device configuration flags (atkbdprobe, atkbdattach) */ 35617b9080SKazutaka YOKOTA #define KB_CONF_FAIL_IF_NO_KBD (1 << 0) /* don't install if no kbd is found */ 36617b9080SKazutaka YOKOTA #define KB_CONF_NO_RESET (1 << 1) /* don't reset the keyboard */ 37617b9080SKazutaka YOKOTA #define KB_CONF_ALT_SCANCODESET (1 << 2) /* assume the XT type keyboard */ 38f5517dc8SJohn Baldwin #define KB_CONF_NO_PROBE_TEST (1 << 3) /* don't test keyboard during probe */ 39617b9080SKazutaka YOKOTA 40664a31e4SPeter Wemm #ifdef _KERNEL 41617b9080SKazutaka YOKOTA 420897438aSWarner Losh int atkbd_probe_unit(device_t dev, int irq, int flags); 430897438aSWarner Losh int atkbd_attach_unit(device_t dev, keyboard_t **kbd, int irq, int flags); 44617b9080SKazutaka YOKOTA 45664a31e4SPeter Wemm #endif 46617b9080SKazutaka YOKOTA 47520b6353SMarius Strobl #endif /* !_DEV_ATKBDC_ATKBDREG_H_ */ 48