atkbd.c (56334) | atkbd.c (56836) |
---|---|
1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/atkbdc/atkbd.c 56334 2000-01-20 13:32:53Z yokota $ | 26 * $FreeBSD: head/sys/dev/atkbdc/atkbd.c 56836 2000-01-29 15:08:56Z peter $ |
27 */ 28 | 27 */ 28 |
29#include "atkbd.h" | |
30#include "opt_kbd.h" 31#include "opt_atkbd.h" 32 | 29#include "opt_kbd.h" 30#include "opt_atkbd.h" 31 |
33#if NATKBD > 0 34 | |
35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> 38#include <sys/bus.h> 39#include <sys/proc.h> 40#include <sys/malloc.h> 41 42#ifdef __i386__ --- 1345 unchanged lines hidden (view full) --- 1388 value = i << 5; 1389 for (i = sizeof(rates)/sizeof(rates[0]) - 1; i > 0; --i) { 1390 if (rate >= rates[i]) 1391 break; 1392 } 1393 value |= i; 1394 return value; 1395} | 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/bus.h> 36#include <sys/proc.h> 37#include <sys/malloc.h> 38 39#ifdef __i386__ --- 1345 unchanged lines hidden (view full) --- 1385 value = i << 5; 1386 for (i = sizeof(rates)/sizeof(rates[0]) - 1; i > 0; --i) { 1387 if (rate >= rates[i]) 1388 break; 1389 } 1390 value |= i; 1391 return value; 1392} |
1396 1397#endif /* NATKBD > 0 */ | |