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

📄 cmd_kbd_mouse.h

📁 linux下S3C2410的I2C总线的驱动
💻 H
字号:
#ifndef __CMD_KBD_MOUSE_H__#define __CMD_KBD_MOUSE_H__#define KBD_TIMEOUT (HZ)		/* Timeout for keyboard command acknowledge */#define MOUSE_TIMEOUT (HZ)/* *	Keyboard Controller Commands */#define KBD_CCMD_READ_MODE	0x20	/* Read mode bits */#define KBD_CCMD_WRITE_MODE	0x60	/* Write mode bits */#define KBD_CCMD_GET_VERSION	0xA1	/* Get controller version */#define KBD_CCMD_MOUSE_DISABLE	0xA7	/* Disable mouse interface */#define KBD_CCMD_MOUSE_ENABLE	0xA8	/* Enable mouse interface */#define KBD_CCMD_TEST_MOUSE	0xA9	/* Mouse interface test */#define KBD_CCMD_SELF_TEST	0xAA	/* Controller self test */#define KBD_CCMD_KBD_TEST	0xAB	/* Keyboard interface test */#define KBD_CCMD_KBD_DISABLE	0xAD	/* Keyboard interface disable */#define KBD_CCMD_KBD_ENABLE	0xAE	/* Keyboard interface enable */#define KBD_CCMD_WRITE_AUX_OBUF	0xD3    /* Write to output buffer as if					   initiated by the auxiliary device */#define KBD_CCMD_WRITE_MOUSE	0xD4	/* Write the following byte to the mouse *//* *	Keyboard Commands */#define KBD_CMD_SET_LEDS	0xED	/* Set keyboard leds */#define KBD_CMD_SET_RATE	0xF3	/* Set typematic rate */#define KBD_CMD_ENABLE		0xF4	/* Enable scanning */#define KBD_CMD_DISABLE		0xF5	/* Disable scanning */#define KBD_CMD_RESET		0xFF	/* Reset *//* *	Keyboard Replies */#define KBD_REPLY_POR		0xAA	/* Power on reset */#define KBD_REPLY_ACK		0xFA	/* Command ACK */#define KBD_REPLY_RESEND	0xFE	/* Command NACK, send the cmd again *//* *	Mouse Commands */#define AUX_SET_RES		0xE8	/* Set resolution */#define AUX_SET_SCALE11		0xE6	/* Set 1:1 scaling */#define AUX_SET_SCALE21		0xE7	/* Set 2:1 scaling */#define AUX_GET_SCALE		0xE9	/* Get scaling factor */#define AUX_SET_STREAM		0xEA	/* Set stream mode */#define AUX_SET_SAMPLE		0xF3	/* Set sample rate */#define AUX_ENABLE_DEV		0xF4	/* Enable aux device */#define AUX_DISABLE_DEV		0xF5	/* Disable aux device */#define AUX_RESET		0xFF	/* Reset aux device */#define AUX_ACK			0xFA	/* Command byte ACK. */#define AUX_BUF_SIZE		2048	/* This might be better divisible by					   three to make overruns stay in sync					   but then the read function would need					   a lock etc - ick */struct aux_queue {	unsigned long head;	unsigned long tail;	wait_queue_head_t proc_list;	struct fasync_struct *fasync;	unsigned char buf[AUX_BUF_SIZE];};typedef void(*ps2_handle_event)(int ps2n, unsigned char);static ps2_handle_event __init Ps2_kbd_init_hw(int ps2n);static ps2_handle_event  __init Ps2_Mouse_init_hw(int ps2n);static void Ps2_kbd_release(void);#endif	//#ifndef __CMD_KBD_MOUSE_H__

⌨️ 快捷键说明

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