1c8fe38aeSMatthew Dillon /*- 2c8fe38aeSMatthew Dillon * Copyright (c) 1990 The Regents of the University of California. 3c8fe38aeSMatthew Dillon * Copyright (c) 2008 The DragonFly Project. 4c8fe38aeSMatthew Dillon * All rights reserved. 5c8fe38aeSMatthew Dillon * 6c8fe38aeSMatthew Dillon * This code is derived from software contributed to Berkeley by 7c8fe38aeSMatthew Dillon * William Jolitz. 8c8fe38aeSMatthew Dillon * 9c8fe38aeSMatthew Dillon * Redistribution and use in source and binary forms, with or without 10c8fe38aeSMatthew Dillon * modification, are permitted provided that the following conditions 11c8fe38aeSMatthew Dillon * are met: 12c8fe38aeSMatthew Dillon * 1. Redistributions of source code must retain the above copyright 13c8fe38aeSMatthew Dillon * notice, this list of conditions and the following disclaimer. 14c8fe38aeSMatthew Dillon * 2. Redistributions in binary form must reproduce the above copyright 15c8fe38aeSMatthew Dillon * notice, this list of conditions and the following disclaimer in the 16c8fe38aeSMatthew Dillon * documentation and/or other materials provided with the distribution. 17*2c64e990Szrj * 3. Neither the name of the University nor the names of its contributors 18c8fe38aeSMatthew Dillon * may be used to endorse or promote products derived from this software 19c8fe38aeSMatthew Dillon * without specific prior written permission. 20c8fe38aeSMatthew Dillon * 21c8fe38aeSMatthew Dillon * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22c8fe38aeSMatthew Dillon * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23c8fe38aeSMatthew Dillon * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24c8fe38aeSMatthew Dillon * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25c8fe38aeSMatthew Dillon * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26c8fe38aeSMatthew Dillon * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27c8fe38aeSMatthew Dillon * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28c8fe38aeSMatthew Dillon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29c8fe38aeSMatthew Dillon * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30c8fe38aeSMatthew Dillon * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31c8fe38aeSMatthew Dillon * SUCH DAMAGE. 32c8fe38aeSMatthew Dillon * 33c8fe38aeSMatthew Dillon * from: @(#)icu.h 5.6 (Berkeley) 5/9/91 34c8fe38aeSMatthew Dillon * $FreeBSD: src/sys/i386/isa/icu.h,v 1.18 1999/12/26 12:43:47 bde Exp $ 35c8fe38aeSMatthew Dillon * $DragonFly: src/sys/platform/pc64/icu/icu.h,v 1.1 2008/08/29 17:07:16 dillon Exp $ 36c8fe38aeSMatthew Dillon */ 37c8fe38aeSMatthew Dillon 38c8fe38aeSMatthew Dillon /* 39c8fe38aeSMatthew Dillon * AT/386 Interrupt Control constants 40c8fe38aeSMatthew Dillon * W. Jolitz 8/89 41c8fe38aeSMatthew Dillon */ 42c8fe38aeSMatthew Dillon 43c8fe38aeSMatthew Dillon #ifndef _ARCH_ICU_ICU_H_ 44c8fe38aeSMatthew Dillon #define _ARCH_ICU_ICU_H_ 45c8fe38aeSMatthew Dillon 461c2bce94SSepherosa Ziehau #define ICU_IMR_OFFSET 1 /* IO_ICU{1,2} + 1 */ 471c2bce94SSepherosa Ziehau 48c8fe38aeSMatthew Dillon /* 49c8fe38aeSMatthew Dillon * Interrupt enable bit numbers - in normal order of priority 50c8fe38aeSMatthew Dillon * (which we change) 51c8fe38aeSMatthew Dillon */ 52c8fe38aeSMatthew Dillon #define ICU_IRQ0 0 /* highest priority - timer */ 53c8fe38aeSMatthew Dillon #define ICU_IRQ1 1 54c8fe38aeSMatthew Dillon #define ICU_IRQ_SLAVE 2 55c8fe38aeSMatthew Dillon #define ICU_IRQ8 8 56c8fe38aeSMatthew Dillon #define ICU_IRQ9 9 57c8fe38aeSMatthew Dillon #define ICU_IRQ2 ICU_IRQ9 58c8fe38aeSMatthew Dillon #define ICU_IRQ10 10 59c8fe38aeSMatthew Dillon #define ICU_IRQ11 11 60c8fe38aeSMatthew Dillon #define ICU_IRQ12 12 61c8fe38aeSMatthew Dillon #define ICU_IRQ13 13 62c8fe38aeSMatthew Dillon #define ICU_IRQ14 14 63c8fe38aeSMatthew Dillon #define ICU_IRQ15 15 64c8fe38aeSMatthew Dillon #define ICU_IRQ3 3 /* this is highest after rotation */ 65c8fe38aeSMatthew Dillon #define ICU_IRQ4 4 66c8fe38aeSMatthew Dillon #define ICU_IRQ5 5 67c8fe38aeSMatthew Dillon #define ICU_IRQ6 6 68c8fe38aeSMatthew Dillon #define ICU_IRQ7 7 /* lowest - parallel printer */ 69c8fe38aeSMatthew Dillon 70c8fe38aeSMatthew Dillon #endif /* !_ARCH_ICU_ICU_H_ */ 71