kb_hbreg.h revision 1.1
11.1Stsutsui/* $NetBSD: kb_hbreg.h,v 1.1 2001/01/25 14:33:30 tsutsui Exp $ */ 21.1Stsutsui 31.1Stsutsui/*- 41.1Stsutsui * Copyright (C) 2001 Izumi Tsutsui. All rights reserved. 51.1Stsutsui * 61.1Stsutsui * Redistribution and use in source and binary forms, with or without 71.1Stsutsui * modification, are permitted provided that the following conditions 81.1Stsutsui * are met: 91.1Stsutsui * 1. Redistributions of source code must retain the above copyright 101.1Stsutsui * notice, this list of conditions and the following disclaimer. 111.1Stsutsui * 2. Redistributions in binary form must reproduce the above copyright 121.1Stsutsui * notice, this list of conditions and the following disclaimer in the 131.1Stsutsui * documentation and/or other materials provided with the distribution. 141.1Stsutsui * 3. The name of the author may not be used to endorse or promote products 151.1Stsutsui * derived from this software without specific prior written permission. 161.1Stsutsui * 171.1Stsutsui * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 181.1Stsutsui * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 191.1Stsutsui * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 201.1Stsutsui * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 211.1Stsutsui * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 221.1Stsutsui * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231.1Stsutsui * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241.1Stsutsui * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251.1Stsutsui * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 261.1Stsutsui * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 271.1Stsutsui */ 281.1Stsutsui 291.1Stsutsui/* register port offsets */ 301.1Stsutsui#define KB_REG_DATA 0 311.1Stsutsui#define KB_REG_STAT 1 321.1Stsutsui#define KB_REG_INTE 2 331.1Stsutsui#define KB_REG_RESET 3 341.1Stsutsui#define KB_REG_INIT1 4 351.1Stsutsui#define KB_REG_INIT2 5 361.1Stsutsui#define KB_REG_BUZZ 6 371.1Stsutsui#define KB_REG_BUZZF 7 381.1Stsutsui 391.1Stsutsui#define KB_INTE 0x01 /* interrupt enable */ 401.1Stsutsui 411.1Stsutsui/* status port definitions */ 421.1Stsutsui#define KBSTAT_INT 0x08 /* keyboard interrut flag */ 431.1Stsutsui#define KBSTAT_BUF 0x20 /* keyboard buffer full */ 441.1Stsutsui#define KBSTAT_RDY 0x80 /* keyboard Rx data ready */ 45