📄 usbkbd.equ
字号:
ECHO -- Including: USBKBD.EQU
;***************************************************************************;
;***************************************************************************;
;** **;
;** (C)Copyright 1985-2002, American Megatrends, Inc. **;
;** **;
;** All Rights Reserved. **;
;** **;
;** 6145-F Northbelt Pkwy, Norcross, GA 30071 **;
;** **;
;** Phone (770)-246-8600 **;
;** **;
;***************************************************************************;
;***************************************************************************;
;***************************************************************************;
; $Header: /BIOS/Corebin/800/Modules/USB2/Template/Core/USBKBD.EQU 2 10/29/02 7:00p Sivagarn $
;
; $Revision: 2 $
;
; $Date: 10/29/02 7:00p $
;***************************************************************************;
; Revision History
; ----------------
; $Log: /BIOS/Corebin/800/Modules/USB2/Template/Core/USBKBD.EQU $
;
; 2 10/29/02 7:00p Sivagarn
; Added flags for port 60h/64h emulation support
;
; 1 9/15/02 5:39p Sivagarn
; Initial AMIUSB 2.20 check-in
;
;***************************************************************************;
; USB KBD equates
; Equates for KBC flag
;----------------------------------------------------------------------------
; Bit Position Description
;----------------------------------------------------------------------------
; 1,0 Represents current scan code set number (1, 2 or 3)
; 6-2 Typematic rate 0 = 30 char/sec, 31 = 2 char/sec
; 8,7 Typematic rate delay (00 - 250ms, 01 - 500ms,
; 10 - 750ms & 11 - 1000ms)
; 9 Auto repeat bit (1 - Enabled)
; 10 Keyboard controller password status (0 or 1-Enabled)
; 11 Keyboard scanner disabled (1) or enabled (0)
; 12 Keyboard trapping (port 60/64h) status (1-Enabled)
; 13 Make/break code generation (0-Make, 1-Break)
; 15,14 Keyboard/mouse data transmitting order
; (00, 01 - Mouse data first, 10 - Keyboard data first)
;----------------------------------------------------------------------------
KBC_SCAN_CODE_SET_BIT_SHIFT EQU 0
KBC_SET_SCAN_CODE_SET2 EQU (002h SHL KBC_SCAN_CODE_SET_BIT_SHIFT)
KBC_SCAN_CODE_SET_BIT_MASK EQU (003h SHL KBC_SCAN_CODE_SET_BIT_SHIFT)
KBC_TYPE_RATE_BIT_SHIFT EQU 2
KBC_TYPE_RATE_BIT_MASK EQU (01Fh SHL KBC_TYPE_RATE_BIT_SHIFT)
KBC_SET_TYPE_RATE_11CHARS_SEC EQU (00Bh SHL 2)
KBC_TYPE_DELAY_BIT_SHIFT EQU 7
KBC_TYPE_DELAY_BIT_MASK EQU (003h SHL KBC_TYPE_DELAY_BIT_SHIFT)
KBC_SET_TYPE_DELAY_500MSEC EQU (001h SHL 7)
KBC_AUTO_REPEAT_BIT_MASK EQU (001h SHL 9)
KBC_PASSWORD_FLAG_BIT_MASK EQU (001h SHL 10)
KBC_SCANNER_STATUS_BIT_MASK EQU (001h SHL 11)
KBC_PORT6064_TRAP_BIT_MASK EQU (001h SHL 12)
KBC_MK_BRK_CODE_BIT_MASK EQU (001h SHL 13)
KBC_DATA_TX_ORDER_BIT_MASK EQU (003h SHL 14)
KBC_DATA_TX_ORDER_INC_VALUE EQU (001h SHL 14)
KBC_DATA_TX_ORDER_KB_FIRST EQU (002h SHL 14)
; Extended status flag bit definitions
KBCEXT_LED_UPDATE_IN_PROGRESS_BIT EQU BIT0
; Make/break code equates
USB_GEN_MAKE_CODE EQU 020h
USB_GEN_BREAK_CODE EQU 030h
; Equates for KB shift key status information
KB_FUNCTION_BIT EQU 7 ; Function key LED bit
KB_FUNCTION_BIT_MASK EQU (1 SHL KB_FUNCTION_BIT)
KB_SCROLL_LOCK_BIT EQU 6 ; Scroll key LED bit
KB_SCROLL_LOCK_BIT_MASK EQU (1 SHL KB_SCROLL_LOCK_BIT)
KB_CAPS_LOCK_BIT EQU 5 ; CAPS lock key LED bit
KB_CAPS_LOCK_BIT_MASK EQU (1 SHL KB_CAPS_LOCK_BIT)
KB_NUM_LOCK_BIT EQU 4 ; NUM lock key LED bit
KB_NUM_LOCK_BIT_MASK EQU (1 SHL KB_NUM_LOCK_BIT )
KB_ALT_KEY_BIT EQU 3 ; ALT key status bit
KB_ALT_KEY_BIT_MASK EQU (1 SHL KB_ALT_KEY_BIT )
KB_CTRL_KEY_BIT EQU 2 ; CTRL key status bit
KB_CTRL_KEY_BIT_MASK EQU (1 SHL KB_CTRL_KEY_BIT )
KB_LSHIFT_KEY_BIT EQU 1 ; LSHIFT key status bit
KB_LSHIFT_KEY_BIT_MASK EQU (1 SHL KB_LSHIFT_KEY_BIT)
KB_RSHIFT_KEY_BIT EQU 0 ; RSHIFT key status bit
KB_RSHIFT_KEY_BIT_MASK EQU (1 SHL KB_RSHIFT_KEY_BIT)
; Equates used by keyboard controller scanner code
LEFT_ALT EQU 011h ; Left-ALT scan code (set 2)
LEFT_CTRL EQU 014h ; Left-CTRL scan code (set 2)
LEFT_SHIFT EQU 012h ; Left-SHIFT scan code (set 2)
RIGHT_SHIFT EQU 059h ; Right-SHIFT scan code (set 2)
; Scan code for base case only
RIGHT_ALT EQU (011h+80h) ; Local code id (scan-2)
RIGHT_CTRL EQU (014h+80h) ; Local code id (scan-2)
LEFT_MS_KEY EQU (01Fh+80h) ; Microsoft left key
RIGHT_MS_KEY EQU (027h+80h) ; Microsoft right key
APP_MS_KEY EQU (02Fh+80h) ; Microsoft application key
RIGHT_ENTER EQU (05Ah+80h) ; Local code id (scan-2)
; Scan code common to all the cases (base, control, shift and alt cases)
PRINT_SCREEN EQU (07Ch+80h) ; Local code id (scan-2)
; Scan code common to base and control cases
PAUSE_KEY EQU (07Eh+80h) ; Local code id (scan-2)
; Scan code common to base and shift cases
SLASH_KEY EQU (04Ah+80h) ; Local code id (scan-2)
; Scan code common to base, shift and num lock cases
END_KEY EQU (069h+80h) ; Local code id (scan-2)
LEFT_KEY EQU (06Bh+80h) ; Local code id (scan-2)
HOME_KEY EQU (06Ch+80h) ; Local code id (scan-2)
INSERT_KEY EQU (070h+80h) ; Local code id (scan-2)
DEL_KEY EQU (071h+80h) ; Local code id (scan-2)
DOWN_KEY EQU (072h+80h) ; Local code id (scan-2)
RIGHT_KEY EQU (074h+80h) ; Local code id (scan-2)
UP_KEY EQU (075h+80h) ; Local code id (scan-2)
PAGE_DOWN_KEY EQU (07Ah+80h) ; Local code id (scan-2)
PAGE_UP_KEY EQU (07Dh+80h) ; Local code id (scan-2)
;***************************************************************************;
;***************************************************************************;
;** **;
;** (C)Copyright 1985-2002, American Megatrends, Inc. **;
;** **;
;** All Rights Reserved. **;
;** **;
;** 6145-F Northbelt Pkwy, Norcross, GA 30071 **;
;** **;
;** Phone (770)-246-8600 **;
;** **;
;***************************************************************************;
;***************************************************************************;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -