Add sysfpga_nmi_clear(). This resets the NMI one-shot in Cayman's

System FPGA chip.
This commit is contained in:
scw 2002-09-22 20:51:09 +00:00
parent f9a4918dc0
commit f1780fd0ae
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysfpga.c,v 1.3 2002/08/31 09:30:02 scw Exp $ */
/* $NetBSD: sysfpga.c,v 1.4 2002/09/22 20:51:09 scw Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@ -331,3 +331,10 @@ sysfpga_intr_disestablish(void *cookie)
ih->ih_func = NULL;
}
void
sysfpga_nmi_clear(void)
{
sysfpga_reg_write(sysfpga_sc, SYSFPGA_REG_NMISR, 0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysfpgavar.h,v 1.2 2002/08/30 10:59:39 scw Exp $ */
/* $NetBSD: sysfpgavar.h,v 1.3 2002/09/22 20:51:09 scw Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@ -73,5 +73,6 @@ struct evcnt;
extern struct evcnt *sysfpga_intr_evcnt(int);
extern void *sysfpga_intr_establish(int, int, int, int (*)(void *), void *);
extern void sysfpga_intr_disestablish(void *);
extern void sysfpga_nmi_clear(void);
#endif /* _SH5_SYSFPGAVAR_H */