377ab387eb33eb4288a439d899344e2011234379
[openwrt.git] / target / linux / s3c24xx / files-2.6.31 / include / linux / hdq.h
1 #ifndef __LINUX_HDQ_H__
2 #define __LINUX_HDQ_H__
3
4 #include <linux/device.h>
5
6 #define HDQ_SAMPLE_PERIOD_US    10
7
8 /* platform data */
9
10 struct hdq_platform_data {
11         /*
12          * give an opportunity to use us as parent for
13          * devices that depend on us
14          */
15         void (*attach_child_devices)(struct device *parent_device);
16         
17         void (*gpio_dir_out)(void);
18         void (*gpio_dir_in)(void);
19         void (*gpio_set)(int);
20         int (*gpio_get)(void);
21
22         int (*enable_fiq)(void);
23         void (*disable_fiq)(void);
24         void (*kick_fiq)(void);
25
26 };
27
28 int hdq_read(int address);
29 int hdq_write(int address, u8 data);
30 int hdq_initialized(void);
31
32 #endif