18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __ASM_SH_HEARTBEAT_H
38c2ecf20Sopenharmony_ci#define __ASM_SH_HEARTBEAT_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/timer.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#define HEARTBEAT_INVERTED	(1 << 0)
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistruct heartbeat_data {
108c2ecf20Sopenharmony_ci	void __iomem *base;
118c2ecf20Sopenharmony_ci	unsigned char *bit_pos;
128c2ecf20Sopenharmony_ci	unsigned int nr_bits;
138c2ecf20Sopenharmony_ci	struct timer_list timer;
148c2ecf20Sopenharmony_ci	unsigned int regsize;
158c2ecf20Sopenharmony_ci	unsigned int mask;
168c2ecf20Sopenharmony_ci	unsigned long flags;
178c2ecf20Sopenharmony_ci};
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#endif /* __ASM_SH_HEARTBEAT_H */
20