Deleted Added
sdiff udiff text old ( 153072 ) new ( 158041 )
full compact
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:

--- 17 unchanged lines hidden (view full) ---

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 * from kbdio.c,v 1.13 1998/09/25 11:55:46 yokota Exp
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/dev/atkbdc/atkbdc.c 153072 2005-12-04 02:12:43Z ru $");
35
36#include "opt_kbd.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/bus.h>
41#include <sys/malloc.h>
42#include <sys/syslog.h>

--- 105 unchanged lines hidden (view full) ---

148
149/* the backdoor to the keyboard controller! XXX */
150int
151atkbdc_configure(void)
152{
153 bus_space_tag_t tag;
154 bus_space_handle_t h0;
155 bus_space_handle_t h1;
156#ifdef __sparc64__
157 char name[32];
158 phandle_t chosen, node;
159 ihandle_t stdin;
160 bus_addr_t port0;
161 bus_addr_t port1;
162 int space;
163#else

--- 50 unchanged lines hidden (view full) ---

214#ifdef notyet
215 bus_space_map(tag, port0, IO_KBDSIZE, 0, &h0);
216 bus_space_map(tag, port1, IO_KBDSIZE, 0, &h1);
217#else
218 h0 = (bus_space_handle_t)port0;
219 h1 = (bus_space_handle_t)port1;
220#endif
221#endif
222 return atkbdc_setup(atkbdc_softc[0], tag, h0, h1);
223}
224
225static int
226atkbdc_setup(atkbdc_softc_t *sc, bus_space_tag_t tag, bus_space_handle_t h0,
227 bus_space_handle_t h1)
228{
229 if (sc->ioh0 == 0) { /* XXX */

--- 858 unchanged lines hidden ---