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 * $Id: atkbdc.c,v 1.1 1999/01/09 02:44:50 yokota Exp $ |
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> --- 72 unchanged lines hidden (view full) --- 111 return NULL; 112 bzero(sc, sizeof(*sc)); 113 sc->port = -1; /* XXX */ 114 } 115 return sc; 116} 117 118int |
119atkbdc_probe_unit(int unit, int port) |
120{ |
121 if (port <= 0) 122 return ENXIO; 123 return 0; 124} 125 126int 127atkbdc_attach_unit(int unit, atkbdc_softc_t *sc, int port) 128{ |
129 return atkbdc_setup(sc, port); 130} 131 132#endif /* NATKBDC > 0 */ 133 134/* the backdoor to the keyboard controller! XXX */ 135int 136atkbdc_configure(void) --- 889 unchanged lines hidden --- |