1147271Smarius/*- 2147271Smarius * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3147271Smarius * All rights reserved. 4147271Smarius * 5147271Smarius * Redistribution and use in source and binary forms, with or without 6147271Smarius * modification, are permitted provided that the following conditions 7147271Smarius * are met: 8147271Smarius * 1. Redistributions of source code must retain the above copyright 9147271Smarius * notice, this list of conditions and the following disclaimer as 10147271Smarius * the first lines of this file unmodified. 11147271Smarius * 2. Redistributions in binary form must reproduce the above copyright 12147271Smarius * notice, this list of conditions and the following disclaimer in the 13147271Smarius * documentation and/or other materials provided with the distribution. 14147271Smarius * 15147271Smarius * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 16147271Smarius * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17147271Smarius * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18147271Smarius * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19147271Smarius * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20147271Smarius * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21147271Smarius * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22147271Smarius * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23147271Smarius * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24147271Smarius * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25147271Smarius * 26147271Smarius * from: FreeBSD: src/sys/isa/atkbdc_isa.c,v 1.31 2005/05/29 04:42:28 nyan Exp 27147271Smarius * $FreeBSD$ 28147271Smarius */ 29147271Smarius 30147271Smarius#ifndef _DEV_ATKBDC_ATKBDC_SUBR_H_ 31147271Smarius#define _DEV_ATKBDC_ATKBDC_SUBR_H_ 32147271Smarius 33147271SmariusMALLOC_DECLARE(M_ATKBDDEV); 34147271Smarius 35147271Smariusextern devclass_t atkbdc_devclass; 36147271Smarius 37147271Smarius/* children */ 38147271Smariustypedef struct atkbdc_device { 39147271Smarius struct resource_list resources; 40147271Smarius int rid; 41147271Smarius u_int32_t vendorid; 42147271Smarius u_int32_t serial; 43147271Smarius u_int32_t logicalid; 44147271Smarius u_int32_t compatid; 45147271Smarius} atkbdc_device_t; 46147271Smarius 47147271Smarius/* kbdc */ 48147271Smariusint atkbdc_print_child(device_t bus, device_t dev); 49147271Smariusint atkbdc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val); 50147271Smariusint atkbdc_write_ivar(device_t bus, device_t dev, int index, uintptr_t val); 51147271Smariusstruct resource_list *atkbdc_get_resource_list(device_t bus, device_t dev); 52147271Smarius 53147271Smarius#endif /* !_DEV_ATKBDC_ATKBDC_SUBR_H_ */ 54