-/* $OpenBSD: octeon_intr.c,v 1.19 2016/12/08 16:27:46 visa Exp $ */
+/* $OpenBSD: octeon_intr.c,v 1.20 2017/04/06 15:25:24 visa Exp $ */
/*
* Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se)
return (ih);
}
+void *
+octeon_intr_establish_fdt(int node, int level,
+ int (*ih_fun)(void *), void *ih_arg, const char *ih_what)
+{
+ return octeon_intr_establish_fdt_idx(node, 0, level, ih_fun,
+ ih_arg, ih_what);
+}
+
void *
octeon_intr_establish_fdt_idx(int node, int idx, int level,
int (*ih_fun)(void *), void *ih_arg, const char *ih_what)
splx(s); /* causes hw mask update */
}
+void
+octeon_intr_disestablish_fdt(void *ih)
+{
+ octeon_intr_disestablish(ih);
+}
+
void
octeon_splx(int newipl)
{
-/* $OpenBSD: intr.h,v 1.8 2016/12/08 16:27:46 visa Exp $ */
+/* $OpenBSD: intr.h,v 1.9 2017/04/06 15:25:24 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
void octeon_setintrmask(int);
void *octeon_intr_establish(int, int, int (*)(void *),
void *, const char *);
-void *octeon_intr_establish_fdt_idx(int, int, int, int (*)(void *),
- void *, const char *);
void octeon_intr_disestablish(void *);
void octeon_intr_init(void);
+void *octeon_intr_establish_fdt(int, int, int (*)(void *),
+ void *, const char *);
+void *octeon_intr_establish_fdt_idx(int, int, int, int (*)(void *),
+ void *, const char *);
+void octeon_intr_disestablish_fdt(void *);
+
#endif /* _LOCORE */
#endif /* _MACHINE_INTR_H_ */