PageRenderTime 26ms CodeModel.GetById 17ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/arch/arm/mach-pxa/include/mach/irda.h

https://github.com/AICP/kernel_asus_grouper
C Header | 25 lines | 18 code | 6 blank | 1 comment | 1 complexity | 96c9346ccb9811c780bf4fd3f627f043 MD5 | raw file
 1#ifndef ASMARM_ARCH_IRDA_H
 2#define ASMARM_ARCH_IRDA_H
 3
 4/* board specific transceiver capabilities */
 5
 6#define IR_OFF		1
 7#define IR_SIRMODE	2
 8#define IR_FIRMODE	4
 9
10struct pxaficp_platform_data {
11	int transceiver_cap;
12	void (*transceiver_mode)(struct device *dev, int mode);
13	int (*startup)(struct device *dev);
14	void (*shutdown)(struct device *dev);
15	int gpio_pwdown;		/* powerdown GPIO for the IrDA chip */
16	bool gpio_pwdown_inverted;	/* gpio_pwdown is inverted */
17};
18
19extern void pxa_set_ficp_info(struct pxaficp_platform_data *info);
20
21#if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
22void pxa2xx_transceiver_mode(struct device *dev, int mode);
23#endif
24
25#endif