diff options
Diffstat (limited to 'target/linux/generic-2.6/files-2.6.31/include')
4 files changed, 108 insertions, 0 deletions
| diff --git a/target/linux/generic-2.6/files-2.6.31/include/linux/glamo-engine.h b/target/linux/generic-2.6/files-2.6.31/include/linux/glamo-engine.h new file mode 100644 index 000000000..516d45fa6 --- /dev/null +++ b/target/linux/generic-2.6/files-2.6.31/include/linux/glamo-engine.h @@ -0,0 +1,27 @@ +#ifndef __GLAMO_ENGINE_H +#define __GLAMO_ENGINE_H + +enum glamo_engine { +	GLAMO_ENGINE_CAPTURE = 0, +	GLAMO_ENGINE_ISP = 1, +	GLAMO_ENGINE_JPEG = 2, +	GLAMO_ENGINE_MPEG_ENC = 3, +	GLAMO_ENGINE_MPEG_DEC = 4, +	GLAMO_ENGINE_LCD = 5, +	GLAMO_ENGINE_CMDQ = 6, +	GLAMO_ENGINE_2D = 7, +	GLAMO_ENGINE_3D = 8, +	GLAMO_ENGINE_MMC = 9, +	GLAMO_ENGINE_MICROP0 = 10, +	GLAMO_ENGINE_RISC = 11, +	GLAMO_ENGINE_MICROP1_MPEG_ENC = 12, +	GLAMO_ENGINE_MICROP1_MPEG_DEC = 13, +#if 0 +	GLAMO_ENGINE_H264_DEC = 14, +	GLAMO_ENGINE_RISC1 = 15, +	GLAMO_ENGINE_SPI = 16, +#endif +	__NUM_GLAMO_ENGINES +}; + +#endif diff --git a/target/linux/generic-2.6/files-2.6.31/include/linux/glamofb.h b/target/linux/generic-2.6/files-2.6.31/include/linux/glamofb.h new file mode 100644 index 000000000..5f9fab5a4 --- /dev/null +++ b/target/linux/generic-2.6/files-2.6.31/include/linux/glamofb.h @@ -0,0 +1,35 @@ +#ifndef _LINUX_GLAMOFB_H +#define _LINUX_GLAMOFB_H + +#include <linux/fb.h> + +#ifdef __KERNEL__ + +struct glamo_core; +struct glamofb_handle; + +struct glamo_fb_platform_data { +    int width, height; + +    int num_modes; +    struct fb_videomode *modes; + +    struct glamo_core *core; +}; + +int glamofb_cmd_mode(struct glamofb_handle *gfb, int on); +int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val); + +#ifdef CONFIG_MFD_GLAMO +void glamo_lcm_reset(struct platform_device *pdev, int level); +#else +#define glamo_lcm_reset(...) do {} while (0) +#endif + +#endif + +#define GLAMOFB_ENGINE_ENABLE _IOW('F', 0x1, __u32) +#define GLAMOFB_ENGINE_DISABLE _IOW('F', 0x2, __u32) +#define GLAMOFB_ENGINE_RESET _IOW('F', 0x3, __u32) + +#endif diff --git a/target/linux/generic-2.6/files-2.6.31/include/linux/gpio_buttons.h b/target/linux/generic-2.6/files-2.6.31/include/linux/gpio_buttons.h new file mode 100644 index 000000000..f5e629725 --- /dev/null +++ b/target/linux/generic-2.6/files-2.6.31/include/linux/gpio_buttons.h @@ -0,0 +1,35 @@ +/* + *  Definitions for the GPIO buttons interface driver + * + *  Copyright (C) 2007,2008 Gabor Juhos <juhosg at openwrt.org> + * + *  This file was based on: /include/linux/gpio_keys.h + *	The original gpio_keys.h seems not to have a license. + * + *  This program is free software; you can redistribute it and/or modify + *  it under the terms of the GNU General Public License version 2 as + *  published by the Free Software Foundation. + * + */ + +#ifndef _GPIO_BUTTONS_H_ +#define _GPIO_BUTTONS_H_ + +struct gpio_button { +	int	gpio;		/* GPIO line number */ +	int	active_low; +	char	*desc;		/* button description */ +	int	type;		/* input event type (EV_KEY, EV_SW) */ +	int	code;		/* input event code (KEY_*, SW_*) */ +	int	count; +	int	threshold;	/* count threshold */ +}; + +struct gpio_buttons_platform_data { +	struct gpio_button *buttons; +	int	nbuttons;		/* number of buttons */ +	int	poll_interval;		/* polling interval */ +}; + +#endif /* _GPIO_BUTTONS_H_ */ + diff --git a/target/linux/generic-2.6/files-2.6.31/include/linux/gpio_dev.h b/target/linux/generic-2.6/files-2.6.31/include/linux/gpio_dev.h new file mode 100644 index 000000000..3f3c9c772 --- /dev/null +++ b/target/linux/generic-2.6/files-2.6.31/include/linux/gpio_dev.h @@ -0,0 +1,11 @@ +#ifndef _GPIODEV_H__ +#define _GPIODEV_H__ + +#define IOC_GPIODEV_MAGIC  'B' +#define GPIO_GET        _IO(IOC_GPIODEV_MAGIC, 10) +#define GPIO_SET        _IO(IOC_GPIODEV_MAGIC, 11) +#define GPIO_CLEAR      _IO(IOC_GPIODEV_MAGIC, 12) +#define GPIO_DIR_IN     _IO(IOC_GPIODEV_MAGIC, 13) +#define GPIO_DIR_OUT    _IO(IOC_GPIODEV_MAGIC, 14) + +#endif | 
