-/* $OpenBSD: intc.c,v 1.13 2024/04/29 12:33:17 jsg Exp $ */
+/* $OpenBSD: intc.c,v 1.14 2024/04/29 12:42:06 jsg Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
restore_interrupts(psw);
}
-void
-intc_intr_bootstrap(vaddr_t addr)
-{
- int i, j;
- extern struct bus_space armv7_bs_tag;
- intc_iot = &armv7_bs_tag;
- intc_ioh = addr;
- for (i = 0; i < INTC_NUM_BANKS; i++)
- for (j = 0; j < NIPL; j++)
- intc_imask[i][j] = 0xffffffff;
-}
-
void
intc_irq_handler(void *frame)
{
-/* $OpenBSD: intc.h,v 1.6 2024/04/29 12:33:17 jsg Exp $ */
+/* $OpenBSD: intc.h,v 1.7 2024/04/29 12:42:06 jsg Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
return 31-count;
}
-
-/*
- * This function *MUST* be called very early on in a port's
- * initarm() function, before ANY spl*() functions are called.
- *
- * The parameter is the virtual address of the OMAPINTC's Interrupt
- * Controller registers.
- */
-void intc_intr_bootstrap(vaddr_t);
-
void intc_irq_handler(void *);
void *intc_intr_establish(int irqno, int level, struct cpu_info *ci,
int (*func)(void *), void *cookie, char *name);