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

📄 stdsmckl.opt

📁 SMSC KBC1100键盘控制器原代码
💻 OPT
📖 第 1 页 / 共 2 页
字号:
;***************************************************************************
;* Copyright (c) 2000 to 2003  Phoenix Technologies Ltd.  This program     *
;* contains proprietary and confidential information.  All rights reserved *
;* except as may be permitted by prior written consent.                    *
;***************************************************************************
;STDSMCKL.OPT - STD Option file for SMSC 206-pin Keyboard & Auxiliary
;               Device Controller with Internal ScanCode & PS/2 Mouse
;               Controller.
;***************************************************************************
;    Revision Information  $Revision:   0.12    $
;                          $Date:       11-NOV-2004 18:42:51   $
;***************************************************************************

FALSE           equ     0       ; Logical conventions, always=0
TRUE            equ     1       ; Logical conventions, always=1

;----------------------- SHIPMENT INFORMATION -------------------------------
;----------------------------------------------------------------------------
MODEL1          equ    0AAh     ; Model Number byte 1
MODEL2          equ    055h     ; Model Number byte 2
SHIP            equ    000h     ; Customer Ship Number
CHKSUM          equ    000h     ; Checksum will be filled by CONVERT utility
                                ; only for BIN output file
                                ; (do not change these definition)

;----------------------- CUSTOMIZATIONS -------------------------------------
;----------------------------------------------------------------------------
                                ; (only GNRHOOK and one of the HOOK are true)
GNRHOOK         equ     TRUE    ; True if support OEM HOOK

;----------------------- Code start address ---------------------------------
CodeBase        equ     0000h   ; Code Begin Address.
;----------------------------------------------------------------------------


;-------------------- Share ROM Interface Configuration ---------------------
FL_CFG_I        equ  11110011b ;FL_CFG
                                ;  B7.4 - Flash Size
                                ;  1111: 8Mbit     1000: 1Mbit
                                ;  1110: 4Mbit     0000: 512Kbit
                                ;  1100: 2Mbit
                                ;  B3 - Reserved, returen "0" if read
                                ;  B2 - Alt chip select
                                ;  B1 - Host access enable
                                ;  B0 - Host Wait enable

FLCTRL_I        equ  00100011b ;FLCTRL
                                ;  B7 - Reserved
                                ;  B6 - Arbitration Int Enbale
                                ;  B5 - Hard Ware Arbitration enable
                                ;  B4 - Flash clock control enable
                                ;  B3 - Flash clock control lock
                                ;  B2.1 - Flash Access Speed Select
                                ;  00: 2 clk, 01: 1.5 clk, 10: 1 clk, 00: 0 clk
                                ;  B0 - Flash Power save mode enable

FWHID_I         equ  01000000b  ;FWHID        
                                ;  B7 - Reserved
                                ;  B6 - MEMEN cycle enable    
                                ;  B5 - FWH/LPC select  1: FWH     
                                ;  B4 - IDSELEN  1:ID Sel Enable
                                ;  B3-0 - ID SELECT                            

;----------------------- OPTIONS --------------------------------------------
;----------------------------------------------------------------------------
INITKS7         equ  00000011b ; {KSTATE7}
                                ;  B7 - Mouse Driver Hot Plug Support
                                ;  B6 - Disable Hot Pluggability
                                ;  B5 - Disable Internal Aux Support
                                ;  B4 - Aux Operations Control (bit1)
                                ;  B3 - Aux Operations Control (bit0)
                                ;  B2 - Aux Status Bit3 Mask#
                                ;  B1 - IntAux Stat Bit3 Not Masked (0=Masked)
                                ;  B0 - ExtAux Stat Bit3 Not Masked (0=Masked)
                                ;  Aux Operations Control:
                                ;  00 - Simultaneous Mode
                                ;  01 - External Aux - Primary Device
                                ;  10 - Hot Switch Mode
                                ;  11 - Alternative Mode
INITKS8         equ  01010000b ; {KSTATE8}
                                ;  B7 - Ctrl/Alt/Shift Key clear Fn flag
                                ;  B6 - Dynamic In Pad Support (0=Static)
                                ;  B5 - GA20 & KBRC output disabled (0=enbled)
                                ;  B4 - 3D Mouse Extended support enabled
                                ;  B3 - Battery Type (bit3)
                                ;  B2 - Battery Type (bit2)
                                ;  B1 - Battery Type (bit1)
                                ;  B0 - Battery Type (bit0)
                                ;  100     = Two Benchmarq IC support
                                ;  011/010 = Two Sony BP / One Sony BP
                                ;  001/000 = Duracell (SMBus) / No Battery
INITKS9         equ  00000000b ; {KSTATE9} B7-B2 - Reserved (should be 0)
                                ;  Bit 1,0 are the only Build Options
                                ;  B1 - PS/2 Port Configuration (bit1)
                                ;  B0 - PS/2 Port Configuration (bit0)

LEDM             equ  11100000b ; {LEDMsk} B3-B0 - Reserved (should be 0)
                                ;  Bit 7-4 are the only Build Options
                                ;  B7 - Scroll Lock/Fn Key LED0 output enabled
                                ;  B6 - Num Lock LED1 output enabled
                                ;  B5 - Caps Lock LED2 output enabled
                                ;  B4 - Pad/Kana Lock/Charging/Fn Key LED3
                                ;       output enabled

INITCFG          equ  00000001b ; {KSTATEA} B6-B2 - Reserved (should be 0)
                                ;  Bit 7,1,0 are the only Build Options
                                ;  B7 - AX Kana LED (1=enbl-AX Kbd, 0=disbl)
                                ;  B1 - Kbd I.D. (1=AB,84-OADG Kbd, 0=AB,83)
                                ;  B0 - Scan algorithm (0=CMPD  1=Port3)

INIFnSTK         equ  00000000b ; {FnSTICKY} B4-B0 - Reserved (should be 0)
                                ;  Bit 7-5 are the only Build Options
                                ;  B7 - Fn Sticky Key support enabled
                                ;  B6 - Fn Key status mapped to LED0
                                ;  B5 - Fn Key status mapped to LED3
;----------------------------------------------------------------------------
                                ; (One and only one CLK??MHZ need to be TRUE)
CLK32MHZ        teq     FALSE   ; Optional Frequency (default FALSE)
CLK24MHZ        teq     FALSE   ; Optional Frequency (default FALSE)
CLK16MHZ        teq     TRUE    ; Recommend Default Frequency (default TRUE)
CLK12MHZ        teq     FALSE   ; Optional Frequency (default FALSE)
;----------------------------------------------------------------------------
HWGateA20       equ     TRUE    ; True for trapping the D1h cmd in hardware
HWSyReset       equ     TRUE    ; True for trapping the FEh cmd in hardware
ThrDPorts       teq     TRUE    ; True for 3 PS/2 Devices Support (2 mice)
TwoDPorts       teq     TRUE    ; True for both Port0 & Port1 are supported
SwapDPort       teq     TRUE    ; True for Auto Port Swapping Detection
EMUINTAUX       equ     TRUE    ; True for Internal AUX emulatation support
WDT_Enbl        equ     FALSE   ; True for WatchDog Timer Enable
BlockCmds       teq     TRUE    ; True for No Device Commands thru Security
EnIDLE          teq     TRUE    ; Idle mode support (default TRUE)
;----------------------- I/0 PORT INITIALIZATION ----------------------------
;----------------------------------------------------------------------------
;---------------------GPIO A Port--------------------------------------------
;                     76543210  ; PA.7-0 Direction initialized
GPIODA_I       equ    01110011b
;                     76543210  ; PA.7-0 Output initialized
GPIOOA_I       equ    00110010b

;---------------------GPIO B Port--------------------------------------------
;                     76543210  ; PB.7-0 Direction initialized
GPIODB_I       equ    10011110b
;                     76543210  ; PB.7-0 Output initialized
GPIOOB_I       equ    00011000b

;---------------------GPIO C Port--------------------------------------------
;                     76543210  ; PC.7-0 Direction initialized
GPIODC_I       equ    00110101b
;                     76543210  ; PC.7-0 Output initialized
GPIOOC_I       equ    00110101b

⌨️ 快捷键说明

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