Files
Arquivotheca.Solaris-2.5/uts/sun4e/sys/intreg.h
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

42 lines
1.1 KiB
C
Executable File

/*
* Copyright (c) 1989 by Sun Microsystems, Inc.
*/
#ifndef _SYS_INTREG_H
#define _SYS_INTREG_H
#pragma ident "@(#)intreg.h 1.7 92/07/14 SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* The interrupt register provides for the generation of software
* interrupts and controls the video and clock hardware interrupts.
*/
#define OBIO_INTREG_ADDR 0xEA000000 /* address in obio space */
#define INTREG_ADDR 0xFFFFE000 /* virtual address we map it to */
#ifndef _ASM
#define INTREG ((u_char *)(INTREG_ADDR))
#endif /* _ASM */
/*
* Bits of the interrupt register.
*/
#define IR_ENA_CLK14 0x80 /* r/w - enable clock level 14 interrupt */
#define IR_ENA_CLK10 0x20 /* r/w - enable clock level 10 interrupt */
#define IR_SOFT_INT6 0x08 /* r/w - cause software level 6 interrupt */
#define IR_ENA_LVL8 0x10 /* r/w - enable IPL 8 (SBus IRQ 6) interrupt */
#define IR_SOFT_INT4 0x04 /* r/w - cause software level 4 interrupt */
#define IR_SOFT_INT1 0x02 /* r/w - cause software level 1 interrupt */
#define IR_ENA_INT 0x01 /* r/w - enable (all) interrupts */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_INTREG_H */