Add sysfpga_nmi_clear(). This resets the NMI one-shot in Cayman's
System FPGA chip.
This commit is contained in:
parent
f9a4918dc0
commit
f1780fd0ae
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue