1520b6353SMarius Strobl /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3718cf2ccSPedro F. Giffuni * 4520b6353SMarius Strobl * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 5520b6353SMarius Strobl * All rights reserved. 6520b6353SMarius Strobl * 7520b6353SMarius Strobl * Redistribution and use in source and binary forms, with or without 8520b6353SMarius Strobl * modification, are permitted provided that the following conditions 9520b6353SMarius Strobl * are met: 10520b6353SMarius Strobl * 1. Redistributions of source code must retain the above copyright 11520b6353SMarius Strobl * notice, this list of conditions and the following disclaimer as 12520b6353SMarius Strobl * the first lines of this file unmodified. 13520b6353SMarius Strobl * 2. Redistributions in binary form must reproduce the above copyright 14520b6353SMarius Strobl * notice, this list of conditions and the following disclaimer in the 15520b6353SMarius Strobl * documentation and/or other materials provided with the distribution. 16520b6353SMarius Strobl * 17520b6353SMarius Strobl * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 18520b6353SMarius Strobl * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19520b6353SMarius Strobl * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20520b6353SMarius Strobl * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 21520b6353SMarius Strobl * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22520b6353SMarius Strobl * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23520b6353SMarius Strobl * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24520b6353SMarius Strobl * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25520b6353SMarius Strobl * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26520b6353SMarius Strobl * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27520b6353SMarius Strobl * 28520b6353SMarius Strobl * from: FreeBSD: src/sys/isa/atkbdc_isa.c,v 1.31 2005/05/29 04:42:28 nyan Exp 29520b6353SMarius Strobl */ 30520b6353SMarius Strobl 31520b6353SMarius Strobl #ifndef _DEV_ATKBDC_ATKBDC_SUBR_H_ 32520b6353SMarius Strobl #define _DEV_ATKBDC_ATKBDC_SUBR_H_ 33520b6353SMarius Strobl 34520b6353SMarius Strobl MALLOC_DECLARE(M_ATKBDDEV); 35520b6353SMarius Strobl 36520b6353SMarius Strobl /* children */ 37520b6353SMarius Strobl typedef struct atkbdc_device { 38520b6353SMarius Strobl struct resource_list resources; 39520b6353SMarius Strobl int rid; 40520b6353SMarius Strobl u_int32_t vendorid; 41520b6353SMarius Strobl u_int32_t serial; 42520b6353SMarius Strobl u_int32_t logicalid; 43520b6353SMarius Strobl u_int32_t compatid; 44520b6353SMarius Strobl } atkbdc_device_t; 45520b6353SMarius Strobl 46520b6353SMarius Strobl /* kbdc */ 47520b6353SMarius Strobl int atkbdc_print_child(device_t bus, device_t dev); 48520b6353SMarius Strobl int atkbdc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val); 49520b6353SMarius Strobl int atkbdc_write_ivar(device_t bus, device_t dev, int index, uintptr_t val); 50520b6353SMarius Strobl struct resource_list *atkbdc_get_resource_list(device_t bus, device_t dev); 51520b6353SMarius Strobl 52520b6353SMarius Strobl #endif /* !_DEV_ATKBDC_ATKBDC_SUBR_H_ */ 53