| 1 | /*- |
| 2 | * Copyright (c) 1990 The Regents of the University of California. |
| 3 | * All rights reserved. |
| 4 | * |
| 5 | * This code is derived from software contributed to Berkeley by |
| 6 | * William Jolitz. |
| 7 | * |
| 8 | * %sccs.include.386.c% |
| 9 | * |
| 10 | * @(#)icu.h 5.2 (Berkeley) %G% |
| 11 | */ |
| 12 | |
| 13 | /* |
| 14 | * AT/386 Interrupt Control constants |
| 15 | * W. Jolitz 8/89 |
| 16 | */ |
| 17 | |
| 18 | #ifndef __ICU__ |
| 19 | #define __ICU__ |
| 20 | |
| 21 | #ifndef LOCORE |
| 22 | extern unsigned short imen; /* interrupt mask enable */ |
| 23 | extern unsigned short cpl; /* current priority level */ |
| 24 | |
| 25 | extern unsigned short ttymask; /* things that get masked with spltty() */ |
| 26 | extern unsigned short biomask; /* things that get masked with splbio() */ |
| 27 | |
| 28 | #define INTREN(s) imen &= ~(s) |
| 29 | #define INTRDIS(s) imen |= (s) |
| 30 | #endif |
| 31 | |
| 32 | /* Interrupt enable bits */ |
| 33 | #define IRQ0 0x0001 /* highest priority - timer */ |
| 34 | #define IRQ1 0x0002 |
| 35 | #define IRQ8 0x0100 |
| 36 | #define IRQ9 0x0200 |
| 37 | #define IRQ2 IRQ9 |
| 38 | #define IRQ10 0x0400 |
| 39 | #define IRQ11 0x0800 |
| 40 | #define IRQ12 0x1000 |
| 41 | #define IRQ13 0x2000 |
| 42 | #define IRQ14 0x4000 |
| 43 | #define IRQ15 0x8000 |
| 44 | #define IRQ3 0x0008 |
| 45 | #define IRQ4 0x0010 |
| 46 | #define IRQ5 0x0020 |
| 47 | #define IRQ6 0x0040 |
| 48 | #define IRQ7 0x0080 /* lowest - parallel printer */ |
| 49 | |
| 50 | #endif __ICU__ |