xref: /openbmc/linux/arch/sh/include/asm/heartbeat.h (revision e174d130)
1f15cbe6fSPaul Mundt #ifndef __ASM_SH_HEARTBEAT_H
2f15cbe6fSPaul Mundt #define __ASM_SH_HEARTBEAT_H
3f15cbe6fSPaul Mundt 
4f15cbe6fSPaul Mundt #include <linux/timer.h>
5f15cbe6fSPaul Mundt 
6f15cbe6fSPaul Mundt #define HEARTBEAT_INVERTED	(1 << 0)
7f15cbe6fSPaul Mundt 
8f15cbe6fSPaul Mundt struct heartbeat_data {
9f15cbe6fSPaul Mundt 	void __iomem *base;
10f15cbe6fSPaul Mundt 	unsigned char *bit_pos;
11f15cbe6fSPaul Mundt 	unsigned int nr_bits;
12f15cbe6fSPaul Mundt 	struct timer_list timer;
13f15cbe6fSPaul Mundt 	unsigned int regsize;
14e174d130SKuninori Morimoto 	unsigned int mask;
15f15cbe6fSPaul Mundt 	unsigned long flags;
16f15cbe6fSPaul Mundt };
17f15cbe6fSPaul Mundt 
18f15cbe6fSPaul Mundt #endif /* __ASM_SH_HEARTBEAT_H */
19