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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sis900.inc

?? MenuetOS是一個用匯編開發的32/64位PC操作系統
?? INC
?? 第 1 頁 / 共 3 頁
字號:
   mov      eax, [pci_data]   mov      [eth_status], eax   ret   ;***************************************************************************; Function: sis_init_rxfilter;; Description: sets receive filter address to our MAC address;; Arguments:;; returns:;done+;***************************************************************************SIS900_init_rxfilter:   ;****Get Receive Filter Control Register ********   mov      ebp, [io_addr]	    ; base address   lea      edx,[ebp+SIS900_rfcr]   in       eax, dx			    ; get register   push     eax   ;****disable packet filtering before setting filter*******   mov      eax, SIS900_RFEN    ;move receive filter enable flag   not      eax			        ;1s complement   pop      ebx			        ;and with our saved register   and      eax, ebx			;disable receiver   push     ebx                 ;save filter for another use   out      dx, eax		        ;set receive disabled   ;********load MAC addr to filter data register*********   xor      ecx, ecxSIS900_RXINT_Mac_Write:   ;high word of eax tells card which mac byte to write   mov      eax, ecx					   lea      edx,[ebp+SIS900_rfcr]   shl      eax, 16						;   out      dx, eax						;   lea      edx,[ebp+SIS900_rfdr]   mov      ax,  word [node_addr+ecx*2] ; Get Mac ID word   out      dx, ax						; Send Mac ID   inc      cl							; send next word   cmp      cl, 3						; more to send?   jne      SIS900_RXINT_Mac_Write   ;********enable packet filitering *****   pop      eax				    ;old register value   lea      edx,[ebp+SIS900_rfcr]   or       eax, SIS900_RFEN    ;enable filtering   out      dx, eax             ;set register   ret;***************************************************************************;*;* Function: sis_init_txd;*;* Description: initializes the Tx descriptor;*;* Arguments:;*;* returns:;*done;***************************************************************************SIS900_init_txd:   ;********** initialize TX descriptor **************   mov     [txd], dword 0       ;put link to next descriptor in link field   mov     [txd+4],dword 0      ;clear status field   mov     [txd+8], dword txb	;save address to buffer ptr field   ;*************** load Transmit Descriptor Register ***************   mov     dx, [io_addr]	    ; base address   add     dx, SIS900_txdp      ; TX Descriptor Pointer   mov     eax, txd			    ; First Descriptor   out     dx, eax				; move the pointer   ret;***************************************************************************;* Function: sis_init_rxd;*;* Description: initializes the Rx descriptor ring;*;* Arguments:;*;* Returns:;*done;***************************************************************************SIS900_init_rxd:   xor      ecx,ecx   mov      [cur_rx], cl					;Set cuurent rx discriptor to 0   ;******** init RX descriptors ********SIS900_init_rxd_Loop:    mov     eax, ecx					    ;current descriptor    imul    eax, 12                         ;    mov     ebx, ecx					    ;determine next link descriptor    inc     ebx                             ;    cmp     ebx, NUM_RX_DESC                ;    jne     SIS900_init_rxd_Loop_0          ;    xor     ebx, ebx                        ;SIS900_init_rxd_Loop_0:                    ;    imul    ebx, 12                         ;    add     ebx, rxd                        ;    mov     [rxd+eax], ebx					;save link to next descriptor    mov     [rxd+eax+4],dword RX_BUFF_SZ	;status bits init to buf size    mov     ebx, ecx						;find where the buf is located    imul    ebx,RX_BUFF_SZ                  ;    add     ebx, rxb                        ;    mov     [rxd+eax+8], ebx				;save buffer pointer    inc     ecx							    ;next descriptor    cmp     ecx, NUM_RX_DESC                ;    jne     SIS900_init_rxd_Loop            ;    ;********* load Receive Descriptor Register with address of first     ; descriptor*********    mov     dx, [io_addr]    add     dx, SIS900_rxdp    mov     eax, rxd    out     dx, eax    ret;***************************************************************************;* Function: sis900_set_tx_mode;*;* Description:;*    sets the transmit mode to allow for full duplex;*;*;* Arguments:;*;* Returns:;*;* Comments:;*     If you are having problems transmitting packet try changing the;*     Max DMA Burst, Possible settings are as follows:;*         0x00000000 = 512 bytes;*         0x00100000 = 4 bytes;*         0x00200000 = 8 bytes;*         0x00300000 = 16 bytes;*         0x00400000 = 32 bytes;*         0x00500000 = 64 bytes;*         0x00600000 = 128 bytes;*         0x00700000 = 256 bytes;***************************************************************************SIS900_set_tx_mode:   mov      ebp,[io_addr]   lea      edx,[ebp+SIS900_cr]   in 	    eax, dx			    ; Get current Command Register   or 	    eax, SIS900_TxENA   ;Enable Receive   out 	    dx, eax   lea      edx,[ebp+SIS900_txcfg]; Transmit config Register offset   mov      eax, SIS900_ATP		;allow automatic padding   or       eax, SIS900_HBI		;allow heartbeat ignore   or       eax, SIS900_CSI		;allow carrier sense ignore   or       eax, 0x00600000     ;Max DMA Burst   or       eax, 0x00000100     ;TX Fill Threshold   or       eax, 0x00000020     ;TX Drain Threshold   out      dx, eax   ret;***************************************************************************;* Function: sis900_set_rx_mode;*;* Description:;*    sets the receive mode to accept all broadcast packets and packets;*    with our MAC address, and reject all multicast packets.  Also allows ;*    full-duplex;*;* Arguments:;*;* Returns:;*;* Comments:;*     If you are having problems receiving packet try changing the;*     Max DMA Burst, Possible settings are as follows:;*         0x00000000 = 512 bytes;*         0x00100000 = 4 bytes;*         0x00200000 = 8 bytes;*         0x00300000 = 16 bytes;*         0x00400000 = 32 bytes;*         0x00500000 = 64 bytes;*         0x00600000 = 128 bytes;*         0x00700000 = 256 bytes;***************************************************************************SIS900_mc_filter: times 16 dw 0SIS900_set_rx_mode:   mov      ebp,[io_addr]    ;**************update Multicast Hash Table in Receive Filter    mov      ebx, 0xffff   xor      cl, clSIS900_set_rx_mode_Loop:   mov      eax, ecx   shl      eax, 1   mov      [SIS900_mc_filter+eax], ebx   lea      edx,[ebp+SIS900_rfcr]	    ; Receive Filter Control Reg offset   mov      eax, 4					    ;determine table entry   add      al, cl   shl      eax, 16   out      dx, eax					    ;tell card which entry to modify   lea      edx,[ebp+SIS900_rfdr]	    ; Receive Filter Control Reg offset   mov      eax, ebx				    ;entry value   out      dx, ax					    ;write value to table in card   inc      cl						    ;next entry   cmp      cl,[sis900_table_entries]   ;   jl       SIS900_set_rx_mode_Loop   ;*******Set Receive Filter Control Register*************   lea      edx,[ebp+SIS900_rfcr]	; Receive Filter Control Register offset   mov      eax, SIS900_RFAAB		;accecpt all broadcast packets   or       eax, SIS900_RFAAM		;accept all multicast packets   or       eax, SIS900_RFAAP		;Accept all packets   or       eax, SIS900_RFEN		;enable receiver filter   out      dx, eax   ;******Enable Receiver************   lea      edx,[ebp+SIS900_cr] ; Command Register offset   in 	    eax, dx			    ; Get current Command Register   or 	    eax, SIS900_RxENA   ;Enable Receive   out 	    dx, eax   ;*********Set   lea      edx,[ebp+SIS900_rxcfg]	; Receive Config Register offset   mov      eax, SIS900_ATX			;Accept Transmit Packets                                     ; (Req for full-duplex and PMD Loopback)   or       eax, 0x00600000			;Max DMA Burst   or       eax, 0x00000002			;RX Drain Threshold, 8X8 bytes or 64bytes   out      dx, eax					;   ret;***************************************************************************; *	SIS960_get_mac_addr: - Get MAC address for SiS962 or SiS963 model; *	@pci_dev: the sis900 pci device; *	@net_dev: the net device to get address for; *; *	SiS962 or SiS963 model, use EEPROM to store MAC address. And EEPROM; *	is shared by; *	LAN and 1394. When access EEPROM, send EEREQ signal to hardware first; *	and wait for EEGNT. If EEGNT is ON, EEPROM is permitted to be access; *	by LAN, otherwise is not. After MAC address is read from EEPROM, send; *	EEDONE signal to refuse EEPROM access by LAN.; *	The EEPROM map of SiS962 or SiS963 is different to SiS900.; *	The signature field in SiS962 or SiS963 spec is meaningless.; *	MAC address is read into @net_dev->dev_addr.; *done;*;* Return 0 is EAX = failure;*Done+;***************************************************************************if defined SIS900_DEBUGSIS900_Debug_Str_GetMac_Start db 'Attempting to get SIS900 Mac ID: ',13,10,0SIS900_Debug_Str_GetMac_Failed db 'Access to EEprom Failed',13,10,0SIS900_Debug_Str_GetMac_Address db 'Your Mac ID is: ',0SIS900_Debug_Str_GetMac_Address2 db 'Your SIS96x Mac ID is: ',0end ifSIS960_get_mac_addr:   mov      ebp,[io_addr]   ;**********Send Request for eeprom access*********************   lea      edx,[ebp+SIS900_mear]		; Eeprom access register   mov      eax, SIS900_EEREQ			; Request access to eeprom   out      dx, eax						; Send request   xor      ebx,ebx						;   ;******Loop 4000 times and if access not granted error out*****SIS96X_Get_Mac_Wait:   in       eax, dx					;get eeprom status   and      eax, SIS900_EEGNT       ;see if eeprom access granted flag is set   jnz      SIS900_Got_EEP_Access	;if it is, go access the eeprom   inc      ebx						;else keep waiting   cmp      ebx, 4000				;have we tried 4000 times yet?   jl       SIS96X_Get_Mac_Wait	    ;if not ask again   xor      eax, eax                ;return zero in eax indicating failure   ;*******Debug **********************if defined SIS900_DEBUG   mov esi,SIS900_Debug_Str_GetMac_Failed   call sys_msg_board_strend if   jmp SIS960_get_mac_addr_done   ;**********EEprom access granted, read MAC from card*************SIS900_Got_EEP_Access:    ; zero based so 3-16 bit reads will take place   mov      ecx, 2						 SIS96x_mac_read_loop:   mov      eax, SIS900_EEPROMMACAddr    ;Base Mac Address   add      eax, ecx				     ;Current Mac Byte Offset   push     ecx   call     sis900_read_eeprom           ;try to read 16 bits   pop      ecx   mov      [node_addr+ecx*2], ax        ;save 16 bits to the MAC ID varible   dec      ecx                          ;one less word to read   jns      SIS96x_mac_read_loop         ;if more read more   mov      eax, 1                       ;return non-zero indicating success   ;*******Debug Print MAC ID to debug window**********************if defined SIS900_DEBUG   mov esi,SIS900_Debug_Str_GetMac_Address2   call sys_msg_board_str   mov edx, node_addr   call Create_Mac_Stringend if   ;**********Tell EEPROM We are Done Accessing It*********************SIS960_get_mac_addr_done:   lea      edx,[ebp+SIS900_mear]		; Eeprom access register   mov      eax, SIS900_EEDONE           ;tell eeprom we are done   out 	    dx,eax   ret;***************************************************************************;*	sis900_get_mac_addr: - Get MAC address for stand alone SiS900 model;*	@pci_dev: the sis900 pci device;*	@net_dev: the net device to get address for;*;*	Older SiS900 and friends, use EEPROM to store MAC address.;*	MAC address is read from read_eeprom() into @net_dev->dev_addr.;* done/untested;***************************************************************************SIS900_get_mac_addr:   ;*******Debug **********************if defined SIS900_DEBUG   mov esi,SIS900_Debug_Str_GetMac_Start   call sys_msg_board_strend if   ;******** check to see if we have sane EEPROM *******   mov      eax, SIS900_EEPROMSignature  ;Base Eeprom Signature   call     sis900_read_eeprom           ;try to read 16 bits   cmp ax, 0xffff   je SIS900_Bad_Eeprom   cmp ax, 0   je SIS900_Bad_Eeprom   ;**************Read MacID**************   ; zero based so 3-16 bit reads will take place   mov      ecx, 2						 SIS900_mac_read_loop:   mov      eax, SIS900_EEPROMMACAddr    ;Base Mac Address   add      eax, ecx				     ;Current Mac Byte Offset   push     ecx   call     sis900_read_eeprom           ;try to read 16 bits   pop      ecx   mov      [node_addr+ecx*2], ax        ;save 16 bits to the MAC ID storage   dec      ecx                          ;one less word to read   jns      SIS900_mac_read_loop         ;if more read more   mov      eax, 1                       ;return non-zero indicating success   ;*******Debug Print MAC ID to debug window**********************if defined SIS900_DEBUG   mov esi,SIS900_Debug_Str_GetMac_Address   call sys_msg_board_str   mov edx, node_addr   call Create_Mac_Stringend if   ret   SIS900_Bad_Eeprom:   xor eax, eax   ;*******Debug **********************if defined SIS900_DEBUG   mov esi,SIS900_Debug_Str_GetMac_Failed   call sys_msg_board_strend if   ret;***************************************************************************;*	Get_Mac_SIS635_900_REV: - Get MAC address for model 635;*;*;***************************************************************************Get_Mac_SIS635_900_REV:if defined SIS900_DEBUG    mov     esi,SIS900_Debug_Str_GetMac_Start    call    sys_msg_board_strend if    mov     ebp,[io_addr]    lea     edx,[ebp+SIS900_rfcr]    in      eax,dx    mov     edi,eax ; EDI=rfcrSave    lea     edx,[ebp+SIS900_cr]    or      eax,SIS900_RELOAD    out     dx,eax    xor     eax,eax    out     dx,eax    ; Disable packet filtering before setting filter    lea     edx,[ebp+SIS900_rfcr]    mov     eax,edi    and     edi,not SIS900_RFEN    out     dx,eax    ; Load MAC to filter data register    xor     ecx,ecx    mov     esi,node_addr.get_mac_loop:    lea     edx,[ebp+SIS900_rfcr]    mov     eax,ecx    shl     eax,SIS900_RFADDR_shift    out     dx,eax    lea     edx,[ebp+SIS900_rfdr]    in      eax,dx    mov     [esi],ax    add     esi,2    inc     ecx    cmp     ecx,3

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品视频在线观看网站| 久久久一区二区三区捆绑**| 夜夜精品视频一区二区| a在线欧美一区| 一区在线中文字幕| 日本福利一区二区| 图片区小说区区亚洲影院| 911精品产国品一二三产区| 麻豆一区二区三| 国产日产亚洲精品系列| 97se亚洲国产综合在线| 亚洲国产毛片aaaaa无费看| 91精品欧美综合在线观看最新| 蜜桃久久久久久久| 国产日产欧产精品推荐色| 成人av免费在线播放| 午夜精品福利一区二区三区av| 欧美成人精品福利| 99在线精品免费| 亚洲国产精品一区二区久久| 欧美成人免费网站| 91同城在线观看| 轻轻草成人在线| 久久精品男人天堂av| 色综合天天在线| 久久99蜜桃精品| 国产精品福利一区二区三区| 欧美三区在线观看| 国产成人8x视频一区二区| 亚洲一区二区三区影院| 久久久亚洲国产美女国产盗摄 | 久久99精品久久久久久| 国产精品美女久久久久久久久久久 | 三级久久三级久久久| 国产欧美中文在线| 欧美日韩国产综合一区二区| 丁香五精品蜜臀久久久久99网站| 午夜欧美2019年伦理| 国产精品久99| 欧美v国产在线一区二区三区| 91在线免费播放| 久久91精品久久久久久秒播| 亚洲自拍偷拍网站| 国产欧美日韩亚州综合| 91精品国产丝袜白色高跟鞋| 91亚洲精品乱码久久久久久蜜桃| 蜜臂av日日欢夜夜爽一区| 亚洲影院在线观看| 亚洲国产高清在线| 2欧美一区二区三区在线观看视频| 在线欧美小视频| 成人av在线影院| 久久草av在线| 亚洲123区在线观看| 中文字幕一区二区视频| 久久精品一区四区| 欧美一区二区免费| 欧美女孩性生活视频| 一本大道久久a久久综合婷婷| 国产一区二区三区四区五区美女| 视频一区二区三区入口| 亚洲一区二区欧美| 一区二区视频在线| 亚洲欧美综合网| 欧美国产激情二区三区| 久久精品人人做人人爽97| 久久综合色综合88| 精品国产乱码久久久久久夜甘婷婷| 欧美日韩精品久久久| 欧美日韩亚洲综合一区| 欧美亚洲综合一区| 欧美视频一区二区三区在线观看| 色哟哟国产精品免费观看| 99国产精品久久久久久久久久久| 成人av电影观看| av男人天堂一区| hitomi一区二区三区精品| 成人午夜精品在线| 日韩欧美一级二级三级| 欧美一区二区黄| 日韩精品一区二区三区在线观看| 日韩一区二区三区在线观看| 精品盗摄一区二区三区| 国产亚洲短视频| 国产精品国产三级国产三级人妇| 国产精品国产自产拍高清av | 4438x成人网最大色成网站| 欧美日韩国产首页| 91精品国产欧美一区二区| 欧美成人video| 欧美国产禁国产网站cc| 亚洲青青青在线视频| 亚洲一区二区三区四区不卡| 丝袜脚交一区二区| 久久99久久99| 国产精品一区在线观看乱码| 成人午夜视频福利| 91看片淫黄大片一级| 欧美三级日韩三级国产三级| 日韩一级精品视频在线观看| 国产喂奶挤奶一区二区三区| 亚洲精品成a人| 日韩专区一卡二卡| 国产一区二区三区免费观看| 成人av片在线观看| 日韩美女视频19| 日本不卡一区二区三区| 国产精品一区在线观看乱码| 色天使色偷偷av一区二区| 777xxx欧美| 国产亚洲午夜高清国产拍精品| 自拍偷拍亚洲综合| 麻豆极品一区二区三区| 91亚洲午夜精品久久久久久| 欧美一区二区播放| 国产精品护士白丝一区av| 日韩高清不卡一区| 99热国产精品| 欧美不卡一二三| 亚洲欧美色一区| 精品亚洲国产成人av制服丝袜 | 欧美视频一区二区三区在线观看| 精品不卡在线视频| 亚洲精品国产视频| 极品美女销魂一区二区三区免费 | 亚洲午夜成aⅴ人片| 美女爽到高潮91| 色综合婷婷久久| 国产婷婷色一区二区三区在线| 亚洲电影第三页| 成人蜜臀av电影| 精品久久久久99| 亚洲一区在线播放| 大胆欧美人体老妇| 日韩精品一区二区三区在线播放| 一区二区三区在线看| 国产精品羞羞答答xxdd| 日韩一区二区高清| 夜夜嗨av一区二区三区| 国产精品自在在线| 欧美精选午夜久久久乱码6080| 亚洲色图视频网| 国产成人在线影院| 亚洲精品一区二区三区精华液| 午夜精品福利一区二区蜜股av| 成人国产亚洲欧美成人综合网 | 成人h动漫精品| 久久久久久久久久久久久女国产乱| 婷婷丁香激情综合| 欧美午夜片在线观看| 亚洲三级在线免费| 成人av集中营| 国产人成一区二区三区影院| 久久国产精品露脸对白| 在线成人午夜影院| 五月天欧美精品| 欧美日韩成人在线| 午夜av电影一区| 欧美日韩激情在线| 午夜精品福利久久久| 欧美日韩久久久久久| 亚洲制服丝袜一区| 在线观看日产精品| 亚洲最大色网站| 91麻豆免费视频| 亚洲女同女同女同女同女同69| www..com久久爱| 中文字幕一区二区三区四区不卡| 国产精品66部| 中文字幕免费在线观看视频一区| 国产在线精品不卡| 久久久精品tv| 不卡一卡二卡三乱码免费网站| 国产精品久久久久久久第一福利| 成人福利在线看| 99精品国产99久久久久久白柏| 1区2区3区国产精品| 日本丶国产丶欧美色综合| 一区二区三区久久| 777久久久精品| 狠狠色丁香婷婷综合| 国产亚洲精品7777| 9l国产精品久久久久麻豆| 亚洲精品视频观看| 欧美色网一区二区| 久久精品国内一区二区三区| 久久久www成人免费无遮挡大片| 国产精品2024| 亚洲少妇中出一区| 欧美一区二区三区在线视频| 精品一区二区三区在线播放视频| 国产清纯美女被跳蛋高潮一区二区久久w| 高清国产一区二区| 一区二区三区四区中文字幕| 欧美精品一级二级| 国产精品一区二区免费不卡 | 亚洲综合免费观看高清完整版 | 亚洲久草在线视频| 日韩一区二区高清| 成人av电影观看|