1/*- 2 * Copyright (c) 1996-1999 3 * Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp) 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/dev/atkbdc/atkbdc.c 92661 2002-03-19 10:53:33Z peter $ |
31 * from kbdio.c,v 1.13 1998/09/25 11:55:46 yokota Exp 32 */ 33 34#include "atkbdc.h" 35#include "opt_kbd.h" 36 37#include <sys/param.h> 38#include <sys/systm.h> --- 115 unchanged lines hidden (view full) --- 154 resource_int_value("atkbdc", 0, "port", &port0); 155#endif 156 157 /* XXX: tag should be passed from the caller */ 158#if defined(__i386__) 159 tag = I386_BUS_SPACE_IO; 160#elif defined(__alpha__) 161 tag = busspace_isa_io; |
162#elif defined(__ia64__) 163 tag = IA64_BUS_SPACE_IO; 164#else 165#error "define tag!" |
166#endif 167 168#if notyet 169 bus_space_map(tag, port0, IO_KBDSIZE, 0, &h0); 170 bus_space_map(tag, port1, IO_KBDSIZE, 0, &h1); 171#else 172 h0 = (bus_space_handle_t)port0; 173 h1 = (bus_space_handle_t)port1; --- 867 unchanged lines hidden --- |