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