summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc64/include/intr.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/powerpc64/include/intr.h')
-rw-r--r--sys/arch/powerpc64/include/intr.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/arch/powerpc64/include/intr.h b/sys/arch/powerpc64/include/intr.h
index fd4b93fedfc..a20ad9cde48 100644
--- a/sys/arch/powerpc64/include/intr.h
+++ b/sys/arch/powerpc64/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.7 2020/07/15 10:19:42 kettenis Exp $ */
+/* $OpenBSD: intr.h,v 1.8 2020/07/22 16:49:13 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@ -19,6 +19,8 @@
#ifndef _MACHINE_INTR_H_
#define _MACHINE_INTR_H_
+struct cpu_info;
+
#define IPL_NONE 0
#define IPL_SOFT 1
#define IPL_SOFTCLOCK 2
@@ -87,29 +89,32 @@ void intr_init(void);
void *intr_establish(uint32_t, int, int,
int (*)(void *), void *, const char *);
+void intr_send_ipi(struct cpu_info *);
extern void (*_hvi)(struct trapframe *);
extern void *(*_intr_establish)(uint32_t, int, int,
int (*)(void *), void *, const char *);
+extern void (*_intr_send_ipi)(void *);
extern void (*_setipl)(int);
#include <machine/softintr.h>
-struct cpu_info;
-
struct interrupt_controller {
int ic_node;
void *ic_cookie;
void *(*ic_establish)(void *, int *, int, struct cpu_info *,
int (*)(void *), void *, char *);
+ void (*ic_send_ipi)(void *);
LIST_ENTRY(interrupt_controller) ic_list;
uint32_t ic_phandle;
uint32_t ic_cells;
};
-void interrupt_controller_register(struct interrupt_controller *);
+void interrupt_controller_register(struct interrupt_controller *);
+void *fdt_intr_establish_idx_cpu(int, int, int, struct cpu_info *,
+ int (*)(void *), void *, char *);
void *fdt_intr_establish_imap(int, int *, int, int, int (*)(void *),
void *, char *);
void *fdt_intr_establish_imap_cpu(int, int *, int, int,