38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
/*************************************************************************//**
|
|
*****************************************************************************
|
|
* @file keyboard.h
|
|
* @brief
|
|
* @author Forrest Y. Yu
|
|
* @date 2005
|
|
*****************************************************************************
|
|
*****************************************************************************/
|
|
|
|
#ifndef _ORANGES_KEYBOARD_H_
|
|
#define _ORANGES_KEYBOARD_H_
|
|
|
|
|
|
/************************************************************************/
|
|
/* Macros Declaration */
|
|
/************************************************************************/
|
|
#define MOUSE_IN_BYTES 4
|
|
#define MOUSESCR_UP 0x1
|
|
#define MOUSESCR_DOWN 0x2
|
|
|
|
#define PS2_PORT_DATA (0x60)
|
|
#define PS2_PORT_CMD (0x64)
|
|
|
|
#define PS2_CMD_2ND_OUT (0xD4)
|
|
#define PS2_CMD_2ND_ENB (0xA8)
|
|
#define PS2_CMD_READRAM (0x20)
|
|
#define PS2_CMD_SET_DEFAULT (0xF6)
|
|
#define PS2_CMD_DATA_REPORT_DIS (0xF5)
|
|
#define PS2_CMD_DATA_REPORT_ENB (0xF4)
|
|
#define PS2_CMD_SAMPLE_RATE (0xF3)
|
|
#define PS2_CMD_GET_DEVICE (0xF2)
|
|
#define PS2_ACK (0xfa)
|
|
|
|
|
|
#endif /* _ORANGES_KEYBOARD_H_ */
|
|
|
|
|