^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __ASM_SH_HEARTBEAT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __ASM_SH_HEARTBEAT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <linux/timer.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define HEARTBEAT_INVERTED (1 << 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) struct heartbeat_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) void __iomem *base;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) unsigned char *bit_pos;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) unsigned int nr_bits;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct timer_list timer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) unsigned int regsize;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) unsigned int mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) unsigned long flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #endif /* __ASM_SH_HEARTBEAT_H */