亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sis900.inc

?? MenuetOS是一個(gè)用匯編開發(fā)的32/64位PC操作系統(tǒng)
?? INC
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;                                                                    ;;;;  SIS900.INC                                                        ;;;;                                                                    ;;;;  Ethernet driver for Menuet OS                                     ;;;;                                                                    ;;;;  Version 0.4  26 April 2004                                        ;;;;                                                                    ;;;;  This driver is based on the SIS900 driver from                    ;;;;  the etherboot 5.0.6 project. The copyright statement is           ;;;;                                                                    ;;;;          GNU GENERAL PUBLIC LICENSE                                ;;;;             Version 2, June 1991                                   ;;;;                                                                    ;;;;  remaining parts Copyright 2004 Jason Delozier,                    ;;;;   cordata51@hotmail.com                                            ;;;;                                                                    ;;;;  See file COPYING for details                                      ;;;;                                                                    ;;;;  Updates:                                                          ;;;;    Revision Look up table and SIS635 Mac Address by Jarek Pelczar  ;;;;                                                                    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;********************************************************************;   Interface;      SIS900_reset;      SIS900_probe;      SIS900_poll;      SIS900_transmit;;********************************************************************;********************************************************************;  Comments:;    Known to work with the following SIS900 ethernet cards:;      -  Device ID: 0x0900   Vendor ID: 0x1039   Revision: 0x91;      -  Device ID: 0x0900   Vendor ID: 0x1039   Revision: 0x90;;    If your card is not listed, try it and let me know if it;    functions properly and it will be aded to the list.  If not;    we may be able to add support for it.;;  How To Use:;    Add the following lines to Ethernet.inc in their appropriate locations;;         include "Sis900.INC";         dd  0x09001039, SIS900_probe, SIS900_reset, SIS900_poll, ; SIS900_transmit;         dd  0x70161039, SIS900_probe, SIS900_reset, SIS900_poll, ; SIS900_transmit   ;untested;;  ToDo:;     -  Enable MII interface for reading speed;        and duplex settings.;;     -  Update Poll routine to support packet fragmentation.;;     -  Add additional support for other sis900 based cards;;********************************************************************; comment the next line out if you don't want debug info printed; on the debug board. This option adds a lot of bytes to the driver; so it's worth to comment it out.;        SIS900_DEBUG equ 1;* buffers and descriptorscur_rx  db  0NUM_RX_DESC    equ    4               ;* Number of RX descriptors *NUM_TX_DESC    equ    1               ;* Number of TX descriptors *RX_BUFF_SZ	    equ    1520            ;* Buffer size for each Rx buffer *TX_BUFF_SZ	    equ    1516            ;* Buffer size for each Tx buffer *align   4txd: times (3 * NUM_TX_DESC) dd 0rxd: times (3 * NUM_RX_DESC) dd 0txb equ eth_data_startrxb equ txb + (NUM_TX_DESC * TX_BUFF_SZ)SIS900_ETH_ALEN	equ	6	;* Size of Ethernet address *SIS900_ETH_HLEN	equ	14	;* Size of ethernet header *SIS900_ETH_ZLEN	equ	60	;* Minimum packet length *SIS900_DSIZE equ 0x00000fffSIS900_CRC_SIZE equ 4SIS900_RFADDR_shift equ 16;SIS900 Symbolic offsets to registers.    SIS900_cr		equ     0x0		  ; Command Register    SIS900_cfg    	equ     0x4       ; Configuration Register    SIS900_mear     equ     0x8       ; EEPROM Access Register    SIS900_ptscr    equ     0xc       ; PCI Test Control Register    SIS900_isr     	equ     0x10      ; Interrupt Status Register    SIS900_imr     	equ     0x14      ; Interrupt Mask Register    SIS900_ier     	equ     0x18      ; Interrupt Enable Register    SIS900_epar    	equ     0x18      ; Enhanced PHY Access Register    SIS900_txdp     equ     0x20      ; Transmit Descriptor Pointer Register    SIS900_txcfg    equ     0x24      ; Transmit Configuration Register    SIS900_rxdp     equ     0x30      ; Receive Descriptor Pointer Register    SIS900_rxcfg    equ     0x34      ; Receive Configuration Register    SIS900_flctrl   equ     0x38      ; Flow Control Register    SIS900_rxlen    equ     0x3c      ; Receive Packet Length Register    SIS900_rfcr     equ     0x48      ; Receive Filter Control Register    SIS900_rfdr     equ     0x4C      ; Receive Filter Data Register    SIS900_pmctrl   equ     0xB0      ; Power Management Control Register    SIS900_pmer    	equ     0xB4      ; Power Management Wake-up Event Register;SIS900 Command Register Bits    SIS900_RELOAD       equ      0x00000400    SIS900_ACCESSMODE   equ      0x00000200    SIS900_RESET        equ      0x00000100    SIS900_SWI          equ      0x00000080    SIS900_RxRESET      equ      0x00000020    SIS900_TxRESET      equ      0x00000010    SIS900_RxDIS        equ      0x00000008    SIS900_RxENA        equ      0x00000004    SIS900_TxDIS        equ      0x00000002    SIS900_TxENA        equ      0x00000001;SIS900 Configuration Register Bits    SIS900_DESCRFMT      equ    0x00000100 ; 7016 specific    SIS900_REQALG        equ    0x00000080    SIS900_SB            equ    0x00000040    SIS900_POW           equ    0x00000020    SIS900_EXD           equ    0x00000010    SIS900_PESEL         equ    0x00000008    SIS900_LPM           equ    0x00000004    SIS900_BEM           equ    0x00000001    SIS900_RND_CNT       equ    0x00000400    SIS900_FAIR_BACKOFF  equ    0x00000200    SIS900_EDB_MASTER_EN equ    0x00002000;SIS900 Eeprom Access Reigster Bits    SIS900_MDC        equ      0x00000040    SIS900_MDDIR      equ      0x00000020    SIS900_MDIO       equ      0x00000010  ; 7016 specific    SIS900_EECS       equ      0x00000008    SIS900_EECLK      equ      0x00000004    SIS900_EEDO       equ      0x00000002    SIS900_EEDI       equ      0x00000001;SIS900 TX Configuration Register Bits    SIS900_ATP        equ      0x10000000 ;Automatic Transmit Padding    SIS900_MLB        equ      0x20000000 ;Mac Loopback Enable    SIS900_HBI        equ      0x40000000 ;HeartBeat Ignore (Req for full-dup)    SIS900_CSI        equ      0x80000000 ;CarrierSenseIgnore (Req for full-du;SIS900 RX Configuration Register Bits    SIS900_AJAB       equ      0x08000000 ;    SIS900_ATX        equ      0x10000000 ;Accept Transmit Packets    SIS900_ARP        equ      0x40000000 ;accept runt packets (<64bytes)    SIS900_AEP        equ      0x80000000 ;accept error packets;SIS900 Interrupt Reigster Bits    SIS900_WKEVT           equ      0x10000000    SIS900_TxPAUSEEND      equ      0x08000000    SIS900_TxPAUSE         equ      0x04000000    SIS900_TxRCMP          equ      0x02000000    SIS900_RxRCMP          equ      0x01000000    SIS900_DPERR           equ      0x00800000    SIS900_SSERR           equ      0x00400000    SIS900_RMABT           equ      0x00200000    SIS900_RTABT           equ      0x00100000    SIS900_RxSOVR          equ      0x00010000    SIS900_HIBERR          equ      0x00008000    SIS900_SWINT           equ      0x00001000    SIS900_MIBINT          equ      0x00000800    SIS900_TxURN           equ      0x00000400    SIS900_TxIDLE          equ      0x00000200    SIS900_TxERR           equ      0x00000100    SIS900_TxDESC          equ      0x00000080    SIS900_TxOK            equ      0x00000040    SIS900_RxORN           equ      0x00000020    SIS900_RxIDLE          equ      0x00000010    SIS900_RxEARLY         equ      0x00000008    SIS900_RxERR           equ      0x00000004    SIS900_RxDESC          equ      0x00000002    SIS900_RxOK            equ      0x00000001;SIS900 Interrupt Enable Reigster Bits    SIS900_IE      equ      0x00000001;SIS900 Revision ID	SIS900B_900_REV       equ      0x03	SIS630A_900_REV       equ      0x80	SIS630E_900_REV       equ      0x81	SIS630S_900_REV       equ      0x82	SIS630EA1_900_REV     equ      0x83	SIS630ET_900_REV      equ      0x84	SIS635A_900_REV       equ      0x90	SIS900_960_REV        equ      0x91;SIS900 Receive Filter Control Register Bits    SIS900_RFEN          equ 0x80000000    SIS900_RFAAB         equ 0x40000000    SIS900_RFAAM         equ 0x20000000    SIS900_RFAAP         equ 0x10000000    SIS900_RFPromiscuous equ 0x70000000;SIS900 Reveive Filter Data Mask    SIS900_RFDAT equ  0x0000FFFF;SIS900 Eeprom Address    SIS900_EEPROMSignature equ 0x00    SIS900_EEPROMVendorID  equ 0x02    SIS900_EEPROMDeviceID  equ 0x03    SIS900_EEPROMMACAddr   equ 0x08    SIS900_EEPROMChecksum  equ 0x0b;The EEPROM commands include the alway-set leading bit.;SIS900 Eeprom Command    SIS900_EEread          equ 0x0180    SIS900_EEwrite         equ 0x0140    SIS900_EEerase         equ 0x01C0    SIS900_EEwriteEnable   equ 0x0130    SIS900_EEwriteDisable  equ 0x0100    SIS900_EEeraseAll      equ 0x0120    SIS900_EEwriteAll      equ 0x0110    SIS900_EEaddrMask      equ 0x013F    SIS900_EEcmdShift 	   equ 16;For SiS962 or SiS963, request the eeprom software access	SIS900_EEREQ 	equ 0x00000400	SIS900_EEDONE 	equ 0x00000200	SIS900_EEGNT 	equ 0x00000100;General Varibles	SIS900_pci_revision:     db	  0	SIS900_Status		     dd   0x03000000sis900_specific_table:;    dd SIS630A_900_REV,Get_Mac_SIS630A_900_REV,0;    dd SIS630E_900_REV,Get_Mac_SIS630E_900_REV,0    dd SIS630S_900_REV,Get_Mac_SIS635_900_REV,0    dd SIS630EA1_900_REV,Get_Mac_SIS635_900_REV,0    dd SIS630ET_900_REV,Get_Mac_SIS635_900_REV,0;SIS630ET_900_REV_SpecialFN    dd SIS635A_900_REV,Get_Mac_SIS635_900_REV,0    dd SIS900_960_REV,SIS960_get_mac_addr,0    dd SIS900B_900_REV,SIS900_get_mac_addr,0    dd 0,0,0,0 ; end of listsis900_get_mac_func:	dd 0sis900_special_func:	dd 0sis900_table_entries:	db 8;***************************************************************************;   Function;      SIS900_probe;   Description;      Searches for an ethernet card, enables it and clears the rx buffer;      If a card was found, it enables the ethernet -> TCPIP link;not done  - still need to probe mii transcievers;***************************************************************************if defined SIS900_DEBUGSIS900_Debug_Str_Unsupported db 'Sorry your card is unsupported ',13,10,0end ifSIS900_probe:;******Wake Up Chip*******   mov     al, 4   mov     bh, [pci_dev]   mov     ecx, 0   mov     ah, [pci_bus]   mov     bl, 0x40   call    pci_write_reg;*******Set some PCI Settings*********   call    SIS900_adjust_pci_device;*****Get Card Revision******   mov     al, 1					;one byte to read   mov     bh, [pci_dev]   mov     ah, [pci_bus]   mov     bl, 0x08				    ;Revision Register   call    pci_read_reg   mov [SIS900_pci_revision], al	;save the revision for later use;****** Look up through the sis900_specific_table   mov     esi,sis900_specific_table.probe_loop:   cmp     dword [esi],0 		; Check if we reached end of the list   je      .probe_loop_failed   cmp     al,[esi]			; Check if revision is OK   je      .probe_loop_ok   add     esi,12 			; Advance to next entry   jmp     .probe_loop.probe_loop_failed:   jmp     SIS900_Probe_Unsupported;*********Find Get Mac Function*********.probe_loop_ok:   mov      eax,[esi+4]		; Get pointer to "get MAC" function   mov      [sis900_get_mac_func],eax   mov      eax,[esi+8]		; Get pointer to special initialization fn   mov      [sis900_special_func],eax;******** Get MAC ********   call     dword [sis900_get_mac_func];******** Call special initialization fn if requested ********   cmp      dword [sis900_special_func],0   je       .no_special_init   call     dword [sis900_special_func].no_special_init:;******** Set table entries ********   mov      al,[SIS900_pci_revision]   cmp      al,SIS635A_900_REV   jae      .ent16   cmp      al,SIS900B_900_REV   je       .ent16   jmp      .ent8.ent16:   mov      byte [sis900_table_entries],16.ent8:;*******Probe for mii transceiver*******;TODO!!*********************;*******Initialize Device*******   call sis900_init   ret   SIS900_Probe_Unsupported:if defined SIS900_DEBUG   mov     esi, SIS900_Debug_Str_Unsupported   call    sys_msg_board_strend if   ret;***************************************************************************; Function: sis900_init;; Description: resets the ethernet controller chip and various;    data structures required for sending and receiving packets.;; Arguments:;; returns:   none;not done;***************************************************************************sis900_init:   call SIS900_reset		   ;Done   call SIS900_init_rxfilter   ;Done   call SIS900_init_txd        ;Done   call SIS900_init_rxd		   ;Done   call SIS900_set_rx_mode     ;done   call SIS900_set_tx_mode   ;call SIS900_check_mode   ret   ;***************************************************************************;   Function;      SIS900_reset;   Description;      disables interrupts and soft resets the controller chip;;done+;***************************************************************************if defined SIS900_DEBUG   SIS900_Debug_Reset_Failed db 'Reset Failed ',0end ifSIS900_reset:   ;******Disable Interrupts and reset Receive Filter*******   mov      ebp, [io_addr]	; base address   xor      eax, eax    	; 0 to initialize   lea      edx,[ebp+SIS900_ier]   out      dx, eax			; Write 0 to location   lea      edx,[ebp+SIS900_imr]   out      dx, eax			; Write 0 to location   lea      edx,[ebp+SIS900_rfcr]   out      dx, eax			; Write 0 to location   ;*******Reset Card***********************************************   lea      edx,[ebp+SIS900_cr]   in 	    eax, dx			        ; Get current Command Register   or       eax, SIS900_RESET		; set flags   or 	    eax, SIS900_RxRESET	    ;   or		eax, SIS900_TxRESET	    ;   out	    dx, eax			        ; Write new Command Register   ;*******Wait Loop************************************************   lea      edx,[ebp+SIS900_isr]   mov      ecx, [SIS900_Status]    ; Status we would like to see from card   mov      ebx, 2001               ; only loop 1000 timesSIS900_Wait:   dec      ebx					    ; 1 less loop   jz       SIS900_DoneWait_e		; 1000 times yet?   in       eax, dx				    ; move interrup status to eax   and      eax, ecx   xor      ecx, eax   jz       SIS900_DoneWait   jmp      SIS900_WaitSIS900_DoneWait_e:if defined SIS900_DEBUG   mov esi, SIS900_Debug_Reset_Failed   call sys_msg_board_strend ifSIS900_DoneWait:   ;*******Set Configuration Register depending on Card Revision********   lea      edx,[ebp+SIS900_cfg]   mov      eax, SIS900_PESEL		    ; Configuration Register Bit   mov      bl, [SIS900_pci_revision]   ; card revision   mov      cl, SIS635A_900_REV	        ; Check card revision   cmp      bl, cl   je       SIS900_RevMatch   mov      cl, SIS900B_900_REV	        ; Check card revision   cmp      bl, cl   je       SIS900_RevMatch   out      dx, eax			            ; no revision match   jmp      SIS900_Reset_CompleteSIS900_RevMatch:				        ; Revision match   or       eax, SIS900_RND_CNT	        ; Configuration Register Bit   out      dx, eaxSIS900_Reset_Complete:

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美电影在线| 色综合久久综合网| 三级成人在线视频| 亚洲自拍偷拍九九九| 亚洲女人的天堂| 亚洲精品欧美综合四区| 亚洲色图视频网| 亚洲欧美电影院| 午夜久久电影网| 青椒成人免费视频| 国产真实精品久久二三区| 国产精品乡下勾搭老头1| 成人性视频免费网站| 99精品热视频| 欧美电影一区二区三区| 欧美一级在线视频| 久久久久一区二区三区四区| 国产亚洲欧美激情| 又紧又大又爽精品一区二区| 一区二区三区国产精华| 肉色丝袜一区二区| 韩国精品一区二区| 91影视在线播放| 欧美久久久久中文字幕| 精品国产免费一区二区三区香蕉| 国产日韩欧美制服另类| 亚洲欧美日韩久久| 秋霞成人午夜伦在线观看| 国产传媒日韩欧美成人| 在线视频欧美区| 久久久一区二区| 亚洲成av人片一区二区梦乃| 国产一二三精品| 欧美日韩亚洲不卡| 国产亚洲人成网站| 亚洲第一狼人社区| www.av精品| 精品国产乱码久久久久久久| 亚洲精品乱码久久久久久黑人| 日韩av电影一区| 一本色道久久综合亚洲91| 日韩视频一区二区| 亚洲综合免费观看高清完整版| 韩国视频一区二区| 777a∨成人精品桃花网| 亚洲丝袜自拍清纯另类| 久久成人精品无人区| 欧美在线视频不卡| 国产精品系列在线| 国内精品久久久久影院一蜜桃| 在线观看免费亚洲| 国产精品不卡一区| 国产精品羞羞答答xxdd| 日韩欧美电影一区| 五月激情综合色| 在线免费观看一区| 中文字幕一区二区在线播放| 韩国一区二区三区| 欧美一区二区三区播放老司机| 夜夜爽夜夜爽精品视频| 成人h动漫精品| 国产精品色噜噜| 国产精品123| 久久综合国产精品| 国内久久婷婷综合| 精品国产免费一区二区三区香蕉| 日本人妖一区二区| 91精品久久久久久久久99蜜臂| 亚洲国产中文字幕| 欧美伦理电影网| 亚洲成在线观看| 777奇米成人网| 日本va欧美va精品发布| 91精品国产一区二区三区蜜臀| 亚洲第一二三四区| 制服丝袜成人动漫| 久久精品国产色蜜蜜麻豆| 欧美一区二区三区四区在线观看| 日本在线不卡视频| 欧美一级免费大片| 99综合电影在线视频| 亚洲欧洲精品一区二区三区| va亚洲va日韩不卡在线观看| 亚洲欧洲色图综合| 色噜噜狠狠色综合欧洲selulu | 久久精品99久久久| 久久综合色一综合色88| 国产成人精品在线看| 日本一区免费视频| 成人av动漫在线| 一区二区三区精品视频| 欧美日韩精品一区二区在线播放| 偷拍与自拍一区| 精品日本一线二线三线不卡| 国产夫妻精品视频| 亚洲丝袜美腿综合| 欧美一区二区在线不卡| 国产一区不卡精品| 一区二区三区中文字幕电影 | 亚洲一区二区三区四区五区黄| 欧美三级韩国三级日本一级| 日韩激情一区二区| 欧美高清在线精品一区| 97久久精品人人澡人人爽| 午夜精品视频在线观看| 26uuu久久天堂性欧美| 91日韩精品一区| www.在线欧美| 欧美日韩在线播放三区| 久久久久国产精品人| 日韩av电影天堂| 欧美一区二区久久| 偷偷要91色婷婷| 欧美精品一区二区三区很污很色的| 国产精品88av| 午夜视频一区在线观看| 国产调教视频一区| 在线不卡的av| 99re热这里只有精品免费视频| 久久99在线观看| 伊人性伊人情综合网| 欧美精品一区二区三区四区| 欧美性色综合网| 成人免费视频一区| 麻豆精品视频在线| 亚洲国产毛片aaaaa无费看| 国产欧美日本一区二区三区| 4438成人网| 欧美午夜电影网| 92国产精品观看| 成人性生交大片免费看中文网站| 午夜精品久久一牛影视| 日本一区二区三区在线观看| 欧美日韩国产影片| 日本韩国精品一区二区在线观看| www.激情成人| 国产不卡视频一区二区三区| 日韩国产欧美在线视频| 亚洲国产人成综合网站| 亚洲人成亚洲人成在线观看图片 | 94色蜜桃网一区二区三区| 狠狠色丁香婷婷综合| 麻豆91小视频| 麻豆精品在线视频| 麻豆国产欧美一区二区三区| 午夜在线成人av| 亚洲电影激情视频网站| 一区二区三区视频在线观看| 亚洲丝袜制服诱惑| 亚洲色欲色欲www| 亚洲免费三区一区二区| 成人欧美一区二区三区视频网页| 亚洲国产精品二十页| 国产日韩成人精品| 国产精品久久久久久久久搜平片| 久久久久综合网| 国产片一区二区| 国产精品久久久久久久裸模| 亚洲欧美在线观看| 一区二区三区四区高清精品免费观看| 亚洲日韩欧美一区二区在线| 一区二区激情视频| 石原莉奈在线亚洲二区| 日本人妖一区二区| 国内精品久久久久影院色 | 成人国产亚洲欧美成人综合网 | 午夜国产精品一区| 亚洲成人免费视频| 蜜臀av性久久久久蜜臀aⅴ流畅| 麻豆精品精品国产自在97香蕉| 国产在线国偷精品产拍免费yy | 一区二区久久久| 天堂成人国产精品一区| 韩国av一区二区| av一区二区不卡| 欧美日韩亚州综合| 精品国产sm最大网站免费看| 中文字幕国产一区| 亚洲高清久久久| 久久www免费人成看片高清| 国产成人午夜电影网| 色综合久久久久久久久| 91精品国产综合久久蜜臀| 中文字幕欧美区| 亚洲成人av免费| 国产成人高清视频| 欧美视频一区二区| 国产日韩成人精品| 日韩精品成人一区二区在线| 国产99久久久精品| 7777精品伊人久久久大香线蕉的| 久久嫩草精品久久久精品一| 亚洲精品乱码久久久久久黑人| 久久疯狂做爰流白浆xx| 在线观看一区不卡| 国产日韩欧美在线一区| 日韩av午夜在线观看| 色婷婷国产精品| 国产欧美一区二区精品秋霞影院 | 久久久精品国产99久久精品芒果 |