⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mcp.h

📁 基于pxa270的touch screen的源码
💻 H
字号:
/* *  linux/drivers/misc/mcp.h * *  Copyright (C) 2001 Russell King, All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License. */#ifndef MCP_H#define MCP_H#ifdef CONFIG_ARCH_SA1100#include <asm/dma.h>#endifstruct mcp {	struct module	*owner;	spinlock_t	lock;	int		use_count;	unsigned int	sclk_rate;	unsigned int	rw_timeout;#ifdef CONFIG_ARCH_SA1100	dma_device_t	dma_audio_rd;	dma_device_t	dma_audio_wr;	dma_device_t	dma_telco_rd;	dma_device_t	dma_telco_wr;#endif	void		(*set_telecom_divisor)(struct mcp *, unsigned int);	void		(*set_audio_divisor)(struct mcp *, unsigned int);	void		(*reg_write)(struct mcp *, unsigned int, unsigned int);	unsigned int	(*reg_read)(struct mcp *, unsigned int);	void		(*enable)(struct mcp *);	void		(*disable)(struct mcp *);};void mcp_set_telecom_divisor(struct mcp *, unsigned int);void mcp_set_audio_divisor(struct mcp *, unsigned int);void mcp_reg_write(struct mcp *, unsigned int, unsigned int);unsigned int mcp_reg_read(struct mcp *, unsigned int);void mcp_enable(struct mcp *);void mcp_disable(struct mcp *);/* noddy implementation alert! */struct mcp *mcp_get(void);int mcp_register(struct mcp *);#define mcp_get_sclk_rate(mcp)	((mcp)->sclk_rate)#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -