11a4290e7SDoug Rabson /*- 2*51369649SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 3*51369649SPedro F. Giffuni * 41a4290e7SDoug Rabson * Copyright (c) 1990 The Regents of the University of California. 51a4290e7SDoug Rabson * All rights reserved. 61a4290e7SDoug Rabson * 71a4290e7SDoug Rabson * This code is derived from software contributed to Berkeley by 81a4290e7SDoug Rabson * William Jolitz. 91a4290e7SDoug Rabson * 101a4290e7SDoug Rabson * Redistribution and use in source and binary forms, with or without 111a4290e7SDoug Rabson * modification, are permitted provided that the following conditions 121a4290e7SDoug Rabson * are met: 131a4290e7SDoug Rabson * 1. Redistributions of source code must retain the above copyright 141a4290e7SDoug Rabson * notice, this list of conditions and the following disclaimer. 151a4290e7SDoug Rabson * 2. Redistributions in binary form must reproduce the above copyright 161a4290e7SDoug Rabson * notice, this list of conditions and the following disclaimer in the 171a4290e7SDoug Rabson * documentation and/or other materials provided with the distribution. 18fbbd9655SWarner Losh * 3. Neither the name of the University nor the names of its contributors 191a4290e7SDoug Rabson * may be used to endorse or promote products derived from this software 201a4290e7SDoug Rabson * without specific prior written permission. 211a4290e7SDoug Rabson * 221a4290e7SDoug Rabson * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 231a4290e7SDoug Rabson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 241a4290e7SDoug Rabson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 251a4290e7SDoug Rabson * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 261a4290e7SDoug Rabson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 271a4290e7SDoug Rabson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 281a4290e7SDoug Rabson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 291a4290e7SDoug Rabson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 301a4290e7SDoug Rabson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 311a4290e7SDoug Rabson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 321a4290e7SDoug Rabson * SUCH DAMAGE. 331a4290e7SDoug Rabson */ 341a4290e7SDoug Rabson 35cfa84f46SDoug Rabson #ifndef _ISA_ISA_H_ 36cfa84f46SDoug Rabson #define _ISA_ISA_H_ 371a4290e7SDoug Rabson 381a4290e7SDoug Rabson /* 391a4290e7SDoug Rabson * ISA Bus conventions 401a4290e7SDoug Rabson */ 411a4290e7SDoug Rabson 421a4290e7SDoug Rabson /* 431a4290e7SDoug Rabson * Input / Output Port Assignments 441a4290e7SDoug Rabson */ 451a4290e7SDoug Rabson #ifndef IO_ISABEGIN 461a4290e7SDoug Rabson #define IO_ISABEGIN 0x000 /* 0x000 - Beginning of I/O Registers */ 471a4290e7SDoug Rabson #define IO_ICU1 0x020 /* 8259A Interrupt Controller #1 */ 481a4290e7SDoug Rabson #define IO_KBD 0x060 /* 8042 Keyboard */ 491a4290e7SDoug Rabson #define IO_RTC 0x070 /* RTC */ 501a4290e7SDoug Rabson #define IO_ICU2 0x0A0 /* 8259A Interrupt Controller #2 */ 511a4290e7SDoug Rabson 521a4290e7SDoug Rabson #define IO_MDA 0x3B0 /* Monochome Adapter */ 531a4290e7SDoug Rabson #define IO_VGA 0x3C0 /* E/VGA Ports */ 541a4290e7SDoug Rabson #define IO_CGA 0x3D0 /* CGA Ports */ 551a4290e7SDoug Rabson 561a4290e7SDoug Rabson #endif /* !IO_ISABEGIN */ 571a4290e7SDoug Rabson 581a4290e7SDoug Rabson /* 59f79309d2SWarner Losh * Input / Output Port Sizes 601a4290e7SDoug Rabson */ 61cc7495b5SKazutaka YOKOTA #define IO_CGASIZE 12 /* CGA controllers */ 62cc7495b5SKazutaka YOKOTA #define IO_MDASIZE 12 /* Monochrome display controllers */ 631a4290e7SDoug Rabson #define IO_VGASIZE 16 /* VGA controllers */ 641a4290e7SDoug Rabson 65cfa84f46SDoug Rabson #endif /* !_ISA_ISA_H_ */ 66