mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 10:14:23 +08:00
8786c952c1
Add some flags for the heartbeat driver, and kill off some duplication in the bit positions for the boards that don't have special cases. This also allows for variable access widths and inversion. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
18 lines
324 B
C
18 lines
324 B
C
#ifndef __ASM_SH_HEARTBEAT_H
|
|
#define __ASM_SH_HEARTBEAT_H
|
|
|
|
#include <linux/timer.h>
|
|
|
|
#define HEARTBEAT_INVERTED (1 << 0)
|
|
|
|
struct heartbeat_data {
|
|
void __iomem *base;
|
|
unsigned char *bit_pos;
|
|
unsigned int nr_bits;
|
|
struct timer_list timer;
|
|
unsigned int regsize;
|
|
unsigned long flags;
|
|
};
|
|
|
|
#endif /* __ASM_SH_HEARTBEAT_H */
|