summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-12-22 21:48:18 +0000
committermarius <marius@FreeBSD.org>2009-12-22 21:48:18 +0000
commitee5fad48a122a60dbb2cd562342d08780e3b16f8 (patch)
tree08cf79d8ba7ab5367cd65e3b7d8a3d6eb3c3c585 /sys/sparc64/include
parent4918b61e08b0f64301404c54cc49692bf35da460 (diff)
downloadFreeBSD-src-ee5fad48a122a60dbb2cd562342d08780e3b16f8.zip
FreeBSD-src-ee5fad48a122a60dbb2cd562342d08780e3b16f8.tar.gz
- Add macros for the states of the interrupt clear registers.
- Change INTMAP_VEC() to take an INO as its second argument rather than an INR. The former is what I actually intended with this macro and how it's currently used.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r--sys/sparc64/include/bus_common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/sparc64/include/bus_common.h b/sys/sparc64/include/bus_common.h
index 3d70427..f04eb7f 100644
--- a/sys/sparc64/include/bus_common.h
+++ b/sys/sparc64/include/bus_common.h
@@ -39,6 +39,10 @@
#ifndef _MACHINE_BUS_COMMON_H_
#define _MACHINE_BUS_COMMON_H_
+#define INTCLR_PENDING 0x000000003ULL /* Interrupt queued to CPU */
+#define INTCLR_RECEIVED 0x000000001ULL /* Interrupt received */
+#define INTCLR_IDLE 0x000000000ULL /* Interrupt idle */
+
#define INTMAP_V 0x080000000ULL /* Interrupt valid (enabled) */
#define INTMAP_TID_MASK 0x07c000000ULL /* UPA target ID */
#define INTMAP_TID_SHIFT 26
@@ -60,9 +64,9 @@
(INTMAP_TID((mr), (mid)) | INTMAP_V)
#define INTMAP_TID(mr, mid) \
(((mr) & ~INTMAP_TID_MASK) | ((mid) << INTMAP_TID_SHIFT))
-#define INTMAP_VEC(ign, inr) \
+#define INTMAP_VEC(ign, ino) \
((((ign) << INTMAP_IGN_SHIFT) & INTMAP_IGN_MASK) | \
- ((inr) & INTMAP_INR_MASK))
+ ((ino) & INTMAP_INO_MASK))
/* counter-timer support. */
void sparc64_counter_init(const char *name, bus_space_tag_t tag,
OpenPOWER on IntegriCloud