11.3Sandvar/* $NetBSD: kb_hbreg.h,v 1.3 2022/10/31 20:30:23 andvar Exp $ */ 21.1Stsutsui 31.1Stsutsui/*- 41.2Stsutsui * 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 * 151.1Stsutsui * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 161.1Stsutsui * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 171.1Stsutsui * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 181.1Stsutsui * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 191.1Stsutsui * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 201.1Stsutsui * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 211.1Stsutsui * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 221.1Stsutsui * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 231.2Stsutsui * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 241.2Stsutsui * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 251.1Stsutsui */ 261.1Stsutsui 271.1Stsutsui/* register port offsets */ 281.1Stsutsui#define KB_REG_DATA 0 291.1Stsutsui#define KB_REG_STAT 1 301.1Stsutsui#define KB_REG_INTE 2 311.1Stsutsui#define KB_REG_RESET 3 321.1Stsutsui#define KB_REG_INIT1 4 331.1Stsutsui#define KB_REG_INIT2 5 341.1Stsutsui#define KB_REG_BUZZ 6 351.1Stsutsui#define KB_REG_BUZZF 7 361.1Stsutsui 371.1Stsutsui#define KB_INTE 0x01 /* interrupt enable */ 381.1Stsutsui 391.1Stsutsui/* status port definitions */ 401.3Sandvar#define KBSTAT_INT 0x08 /* keyboard interrupt flag */ 411.1Stsutsui#define KBSTAT_BUF 0x20 /* keyboard buffer full */ 421.1Stsutsui#define KBSTAT_RDY 0x80 /* keyboard Rx data ready */ 43