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

📄 91c110.asm

📁 lan91c111 测试代码
💻 ASM
📖 第 1 页 / 共 2 页
字号:
                  ;    Offset 12 : NOT USED

start_func2_tuple10:
	.DB CISTPL_CFTABLE_ENTRY
        .DB (start_func2_end - $ - 1)
        .DB 0C7h       ; TPCE_INDX - Value written to COR, Default
        .DB 041h       ; TPCE_IF   - I/O Interface,Ready/Busy Active
	.DB 019h       ; TPCE_FS   - IRQ, IO and Vcc-Power descriptions follow.
	.DB 04fh       ; TPCE_PD   - P.DWnI, StaticI, MaxV, MinV, NomV bytes follow
	.DB 055h       ; TPCE_PD   - Nom V: 5V 
	.DB 0c5h, 04bh ; TPCE_PD   - Min V: 4.75V 
	.DB 0d5h, 019h ; TPCE_PD   - Max V: 5.25V 
	.DB 01eh       ; TPCE_PD   - Static I: 150mA
	.DB 043h       ; TPCE_PD   - P.DWn I: 400uA
        .DB 044h       ; TPCE_IO   - 16bit IO, decoding four address lines
	.DB 0b0h       ; TPCE_IR   - Interrupt: Share, level, Mask
	.DB 0ffh       ; TPCE_IR   - IRQ 0-7 valid
	.DB 0ffh       ; TPCE_IR   - IRQ 8-15 valid

start_func2_end:
	.DB CISTPL_END
        .DB (start_func2_ends - $ - 1)

start_func2_ends:

;******************************************************************************
; Modem CIS
;******************************************************************************
start_func1_tuple1:
	.DB CISTPL_LINKTARGET
	.DB (start_func1_tuple2 - $ - 1)
	.DB "CIS" 

start_func1_tuple2:
	.DB CISTPL_FUNCID
	.DB (start_func1_tuple3 - $ - 1)
	.DB TPLFID_SerialPort   ; TPLFID_FUNCTION
	.DB 000h                ; TPLFID_SYSINIT

start_func1_tuple3:
	.DB CISTPL_FUNCE
	.DB (start_func1_tuple4 - $ - 1)
	.DB 000h ; TPLFE_TYPE Serial Port Description Follows
	.DB 002h ; TPLFE_UA   16550 UART
	.DB 00fh ; TPLFE_UC   All parity supported
	.DB 07fh ; TPLFE_UC   8,7,6,5 bit characters and 1,1.5,2 stop bits supported

start_func1_tuple4:
	.DB CISTPL_FUNCE
	.DB (start_func1_tuple5 - $ - 1)
	.DB 005h ; TPLFE_TYPE Data modem Interface Capabilities Extension
	.DB 01fh ; TPLFE_FC   All - transparent, tx/rx-hw, tx/rx-xon/xoff
	.DB 00fh ; TPLFE_CB   64 byte DCE command buffer
	.DB 000h, 002h, 000h ; TPLFE_EB   DCE-DTE buffer 0x000200 = 512 bytes
	.DB 000h, 002h, 000h ; TPLFE_TB   DTE-DCE buffer 0x000200 = 512 bytes

start_func1_tuple5:
	.DB CISTPL_FUNCE
	.DB (start_func1_tuple6 - $ - 1)
	.DB 006h ; TPLFE_TYPE Fax modem Interface Capabilities Extension
	.DB 01fh ; TPLFE_FC   All - transparent, tx/rx-hw, tx/rx-xon/xoff
	.DB 00fh ; TPLFE_CB   64 byte DCE command buffer
	.DB 000h, 030h, 000h ; TPLFE_EB   DCE-DTE buffer 0x003000 = 12288 bytes
	.DB 000h, 030h, 000h ; TPLFE_TB   DTE-DCE buffer 0x003000 = 12288 bytes

start_func1_tuple6:
	.DB CISTPL_FUNCE
	.DB (start_func1_tuple7 - $ - 1)
	.DB 007h ; TPLFE_TYPE Voice modem Interface Capabilities Extension
	.DB 01fh ; TPLFE_FC   All - transparent, tx/rx-hw, tx/rx-xon/xoff
	.DB 00fh ; TPLFE_CB   64 byte DCE command buffer
	.DB 000h, 030h, 000h ; TPLFE_EB   DCE-DTE buffer 0x003000 = 12288 bytes
	.DB 000h, 030h, 000h ; TPLFE_TB   DTE-DCE buffer 0x003000 = 12288 bytes

start_func1_tuple7:
	.DB CISTPL_FUNCE
	.DB (start_func1_tuple8 - $ - 1)
	.DB 002h ; TPLFE_TYPE Data modem services.
	.DB 00ch, 000h ; TPLFE_UD - Max DTE to UART 230400bps
	.DB 03fh, 01ch ; TPLFE_MS - support:
	   ; |____7____|___6__|____5____|____4_____|____3____|__2___|___1___|____0_____|
	   ; | V.26bis | V.26 | V.22bis | Bell212A | V.22A&B | V.23 | V.21  | Bell 103 |
	   ; |    0    |   0  |    1    |    1     |    1    |  1   |   1   |     1    |
	   ; ===========================================================================
	   ; |   RFU   |  RFU |   RFU   |   V.34   | V.32bis | V.32 |  V.29 |   V.27   |
	   ; |    0    |   0  |    0    |    1     |    1    |  1   |   0   |    0     |
	   ; ===========================================================================
	.DB 003h ; TPLFE_EM - Error Correction: V.42/LAPM and MNP2-4
	.DB 003h ; TPLFE_DC - Data Compression: MNP5 and V.42bis
	.DB 00fh ; TPLFE_CM - Command Sets: AT1, AT2, AT3, MNP AT 
	.DB 007h ; TPLFE_EX - Escapes: BREAK, +++, User defined character
	.DB 000h ; TPLFE_DY - Data encryption: none
	.DB 001h ; TPLFE_EF - End user feature selection: Caller ID 
	.DB 0b5h ; TPLFE_CD - CCITT Country Code: USA
	.DB 0ffh ; TPLFE_CD - CCITT Country Code: end of list

start_func1_tuple8:
	.DB CISTPL_FUNCE
	.DB (start_func1_tuple9 - $ - 1)
	.DB 013h ; TPLFE_TYPE Fax modem services - Class 1.
	.DB 006h, 000h ; TPLFE_UF Max UART rate = 115,200 
	.DB 01fh ; TPLFE_FM Modulation: V.33, V.17, V.29, V.27ter, V.21-C2
	.DB 000h ; TPLFE_FY Encryption: not used
	.DB 07ah, 000h ; TPLFE_FS Feature Selection:
	              ;    File Xfer, polling, voice, error correct, T.6, T.4, T.3
	.DB 0b5h ; TPLFE_CF Country: USA
	.DB 0ffh ; TPLFE_CF Country: End of country list

start_func1_tuple9:
	.DB CISTPL_FUNCE
	.DB (start_func1_tuple10 - $ - 1)
	.DB 023h ; TPLFE_TYPE Fax modem services - Class 2.
	.DB 006h, 000h ; TPLFE_UF Max UART rate = 115,200 
	.DB 01fh ; TPLFE_FM Modulation: V.33, V.17, V.29, V.27ter, V.21-C2
	.DB 000h ; TPLFE_FY Encryption: not used
	.DB 032h, 000h ; TPLFE_FS Feature Selection:
                       ;    polling, voice, T.4     
	.DB 0b5h ; TPLFE_CF Country: USA
	.DB 0ffh ; TPLFE_CF Country: End of country list

start_func1_tuple10:
	.DB CISTPL_FUNCE
	.DB (start_func1_tuple11 - $ - 1)
	.DB 084h ; TPLFE_TYPE Voice modem service - EIA/TIA Class 8
	.DB 006h,000h ; TPLFE_UV Max DTE to UART speed - 115200bps
	.DB 00bh,002h ; TPLFE_SR Sample rate 11.025KHz
	.DB 007h,014h ; TPLFE_SR Sample rate 7.2KHz
	.DB 000h ; TPLFE_SR End of sample rate list
	.DB 010h,000h ; TPLFE_SS Sample Size 16
	.DB 008h,000h ; TPLFE_SS Sample Size 8
	.DB 004h,000h ; TPLFE_SS Sample Size 4
	.DB 002h,000h ; TPLFE_SS Sample Size 2
	.DB 000h ; TPLFE_SS End of Sample Size List
	.DB 000h ; TPLFE_SC Voice Compression Method - none

start_func1_tuple11:
	.DB CISTPL_CONFIG
	.DB (start_func1_tuple12 - $ - 1)
	.DB 005h  ; TPCC_SZ   Size Fields - Reserved  : TPCC_RMSZ : TPCC_RASZ
	         ;                            00     :   0001    :    01
	.DB 007h  ; TPCC_LAST - Last Config Table Index 7
	.DB 020h  ; TPCC_RADR - Config register base address, 2Byte
	.DB 004h  ;    420h
	.DB 077h  ; TPCC_RMSK - Config register Presence Mask, 2Byte
	.DB 000h  ;    0000 0000 0111 0111 
	         ;    Offset 0  : MCOR
	         ;    Offset 2  : MCSR
	         ;    Offset 4  : MPRR 
                 ;    Offset 6  : NOT USED
	         ;    Offset 8  : MESR
	         ;    Offset a  : MIO-0
	         ;    Offset c	: MIO-1
	         ;    Offset e	: NOT USED
	         ;    Offset 10	: NOT USED
                 ;    Offset 12 : NOT USED

start_func1_tuple12:
	.DB CISTPL_CFTABLE_ENTRY
	.DB (start_func1_tuple13 - $ - 1)
        .DB 0C7h  ; TPCE_INDX      Configuration Table Index
	         ;                 Configuration Entry Number :7
	         ;                 Default Configuration
	         ;                 Interface(TPCE_IF) byte follows
	.DB 041h  ; TPCE_IF        I/O Interface,Ready/Busy Active
	.DB 09Dh  ; TPCE_FS        Feature Selection
	         ;                 VCC power description follows
			 ;                 Timing Description follows
			 ;                 IRQ Structure present
			 ;                 A miscellaneous field struct is present
	.DB 07Fh  ; TPCE_PD        Power Description
	.DB 055h  ;                 Nominal supply voltage :5 V
	.DB 0C5h  ;                 Minimum supply voltage
	.DB 04Bh  ;                 (Extension) :4.75 V
	.DB 0D5h  ;                 Maximum supply voltage
	.DB 019h  ;                 (Extension) :5.25 V
	.DB 026h  ;                 Continuous current required :200 mA
	.DB 04Eh  ;                 Max current required averaged over 1 second :450 mA
	.DB 0E6h  ;                 Max current required averaged over 10 milliseconds
	.DB 032h  ;                 (Extension) :650 mA
	.DB 053h  ;                 Power-down current required :0 mA
	.DB 0E7h  ; TPCE_TD         Timing Description
	.DB 05Fh  ;                  Ready/Busy Scale
  .DB 0A3h, 060h, 0e8h, 003h, 007h
;  .DB 023h  ; TPCE_IO         I/O Description
;           ;                  8-bit,I/O Address Line: 3
	.DB 0B0h  ; TPCE_IR         Interrupt Request,Level
	.DB 0FFh  ;                  IRQs Allowed
	.DB 0FFh  ;                  IRQs Allowed
	.DB 028h  ; TPCE_MI         Miscellaneous

start_func1_tuple13:
	.DB CISTPL_CFTABLE_ENTRY
	.DB (start_func1_tuple14 - $ - 1)
  .DB 007h  ; TPCE_INDX      Configuration Table Index
	         ;                 Configuration Entry Number :7
	         ;                 Default Configuration
	         ;                 Interface(TPCE_IF) byte follows
  .DB 008h  ; TPCE_FS        Feature Selection
       ;                 IO field struct is present
  .DB 0A3h, 060h, 0f8h, 003h, 007h
;  .DB 023h  ; TPCE_IO         I/O Description
;           ;                  8-bit,I/O Address Line: 3

start_func1_tuple14:
	.DB CISTPL_CFTABLE_ENTRY
	.DB (start_func1_tuple15 - $ - 1)
  .DB 007h  ; TPCE_INDX      Configuration Table Index
	         ;                 Configuration Entry Number :7
	         ;                 Default Configuration
	         ;                 Interface(TPCE_IF) byte follows
  .DB 008h  ; TPCE_FS        Feature Selection
       ;                 IO field struct is present
  .DB 0A3h, 060h, 0e8h, 002h, 007h

start_func1_tuple15:
	.DB CISTPL_CFTABLE_ENTRY
	.DB (start_func1_tuple16 - $ - 1)
  .DB 007h  ; TPCE_INDX      Configuration Table Index
	         ;                 Configuration Entry Number :7
	         ;                 Default Configuration
	         ;                 Interface(TPCE_IF) byte follows
  .DB 008h  ; TPCE_FS        Feature Selection
       ;                 IO field struct is present
  .DB 0A3h, 060h, 0f8h, 002h, 007h

start_func1_tuple16:
	.DB CISTPL_CFTABLE_ENTRY
	.DB (start_func1_end - $ - 1)
  .DB 007h  ; TPCE_INDX      Configuration Table Index
	         ;                 Configuration Entry Number :7
	         ;                 Default Configuration
	         ;                 Interface(TPCE_IF) byte follows
  .DB 008h  ; TPCE_FS        Feature Selection
       ;                 IO field struct is present
  .DB 023h  ; TPCE_IO         I/O Description
           ;                  8-bit,I/O Address Line: 3


start_func1_end:
	.DB CISTPL_END
        .DB (start_func1_ends - $ - 1)
        .DB 0ffh

start_func1_ends:

        .DB 0ffh        ; pad some 0ffh CISTPL_END at the end
        .DB 0ffh
        .DB 0ffh

CIS_CFG_END:

CIS_LENGTH:		.EQU	CIS_CFG_END-CIS_ROM_TABLE

; NOTE: CIS_LENGTH *MUST* be less than 200H since there is only a
;       instal CIS RAM of 512 bytes in size!

; NOTE: CIS_LENGTH *MUST* be less than 400H otherwise things will
;       break since the CCR registers are located at 400H


⌨️ 快捷键说明

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