1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2f15cbe6fSPaul Mundt #ifndef __ASM_SH_HEARTBEAT_H 3f15cbe6fSPaul Mundt #define __ASM_SH_HEARTBEAT_H 4f15cbe6fSPaul Mundt 5f15cbe6fSPaul Mundt #include <linux/timer.h> 6f15cbe6fSPaul Mundt 7f15cbe6fSPaul Mundt #define HEARTBEAT_INVERTED (1 << 0) 8f15cbe6fSPaul Mundt 9f15cbe6fSPaul Mundt struct heartbeat_data { 10f15cbe6fSPaul Mundt void __iomem *base; 11f15cbe6fSPaul Mundt unsigned char *bit_pos; 12f15cbe6fSPaul Mundt unsigned int nr_bits; 13f15cbe6fSPaul Mundt struct timer_list timer; 14f15cbe6fSPaul Mundt unsigned int regsize; 15e174d130SKuninori Morimoto unsigned int mask; 16f15cbe6fSPaul Mundt unsigned long flags; 17f15cbe6fSPaul Mundt }; 18f15cbe6fSPaul Mundt 19f15cbe6fSPaul Mundt #endif /* __ASM_SH_HEARTBEAT_H */ 20