Add null ip32_bus_reset. Add cpu_intr_establish which calls

crime_intr_establish.  XXX cpu_intr_establish needs to have the
"normal" intr_establish arguments.
This commit is contained in:
matt 2001-05-14 17:56:36 +00:00
parent 4cf3bc7ebc
commit 50522d3e8f
1 changed files with 18 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip32.c,v 1.3 2001/05/11 04:55:42 thorpej Exp $ */
/* $NetBSD: ip32.c,v 1.4 2001/05/14 17:56:36 matt Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang
@ -48,7 +48,11 @@
extern struct platform platform;
void ip32_init(void);
void ip32_bus_reset(void);
void ip32_intr(u_int, u_int, u_int, u_int);
void ip32_intr_establish(int, int, int (*)(void *), void *);
int crime_intr(void *);
void *crime_intr_establish(int, int, int, int (*)(void *), void *);
void ip32_init(void)
{
@ -57,6 +61,8 @@ void ip32_init(void)
*(volatile u_int32_t *)0xb4000034 = 0;
platform.iointr = ip32_intr;
platform.bus_reset = ip32_bus_reset;
platform.intr_establish = ip32_intr_establish;
biomask = 0x7f00;
netmask = 0x7f00;
@ -64,6 +70,12 @@ void ip32_init(void)
clockmask = 0xff00;
}
void
ip32_bus_reset(void)
{
/* do nothing */
}
void
ip32_intr(status, cause, pc, ipending)
u_int32_t status;
@ -129,4 +141,9 @@ else
_splset((status & ~cause & MIPS_HARD_INT_MASK) | MIPS_SR_INT_IE);
}
void
ip32_intr_establish(int level, int ipl, int (*func)(void *), void *arg)
{
(void) crime_intr_establish(level, IST_LEVEL, ipl, func, arg);
}
#endif /* IP32 */