1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-13 19:43:10 +02:00
openwrt-xburst/target/linux/s3c24xx/files-2.6.30/include/linux/hdq.h
lars fb189822fc [s3c24xx] bump to 2.6.30-rc6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15918 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-18 17:55:41 +00:00

33 lines
596 B
C

#ifndef __LINUX_HDQ_H__
#define __LINUX_HDQ_H__
#include <linux/device.h>
#define HDQ_SAMPLE_PERIOD_US 10
/* platform data */
struct hdq_platform_data {
/*
* give an opportunity to use us as parent for
* devices that depend on us
*/
void (*attach_child_devices)(struct device *parent_device);
void (*gpio_dir_out)(void);
void (*gpio_dir_in)(void);
void (*gpio_set)(int);
int (*gpio_get)(void);
int (*enable_fiq)(void);
void (*disable_fiq)(void);
void (*kick_fiq)(void);
};
int hdq_read(int address);
int hdq_write(int address, u8 data);
int hdq_initialized(void);
#endif