Hand off intr evcnt responsiblity in a reasonable way on the 5064.
This commit is contained in:
parent
7c074dc806
commit
be7629b7e0
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pcib.c,v 1.3 2001/06/10 09:13:07 thorpej Exp $ */
|
||||
/* $NetBSD: pcib.c,v 1.4 2001/06/10 09:28:26 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.3 2001/06/10 09:13:07 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.4 2001/06/10 09:28:26 thorpej Exp $");
|
||||
|
||||
#include "opt_algor_p5064.h"
|
||||
#include "opt_algor_p6032.h"
|
||||
@ -391,6 +391,11 @@ pcib_isa_intr_evcnt(void *v, int irq)
|
||||
{
|
||||
struct pcib_softc *sc = v;
|
||||
|
||||
#if defined(ALGOR_P5064)
|
||||
if (sc->sc_reserved & (1 << irq))
|
||||
return (isa_intr_evcnt(sc->sc_parent_ic, irq));
|
||||
#endif
|
||||
|
||||
return (&sc->sc_intrtab[irq].intr_count);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user