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

📄 rtl8019as_m128.s

📁 网卡驱动程序
💻 S
字号:
	.module Rtl8019as_M128.c
	.area text(rom, con, rel)
	.dbfile E:\__test\_RTL8019_M128_struct_Test\Rtl8019as_M128.c
	.dbfunc e Rtl8019as_Init _Rtl8019as_Init fV
	.even
_Rtl8019as_Init::
	.dbline -1
	.dbline 5
; #include "Rtl8019as_M128.h"
; 
; //*	Initialize the RTL8019AS
; void Rtl8019as_Init(void)
; {
	.dbline -2
L1:
	.dbline 0 ; func end
	ret
	.dbend
; /*   fromrtl;                           // PORTA data lines = input
;    PORTA = 0xFF; 
;    DDRB = 0xFF;
;    rtladdr = 0x00;                    // clear address lines
;    DDRC = 0xFF;
;    DDRD = 0xFA;		 				   // setup IOW, IOR, EEPROM,RXD,TXD,CTS,LE						
;    PORTD = 0x05;					   // enable pullups on input pins
; 
;    clr_le_pin;						   //initialize latch enable for HCT573
;    //clr_EEDO;
;    set_iow_pin;                   	   // disable IOW
;    set_ior_pin;                   	   // disable IOR
;    
;    set_rst_pin;                   	   // put NIC in reset
;    delay_ms(2);                        // delay at least 1.6ms
;    clr_rst_pin;						   // disable reset line
;  
;    read_rtl(RSTPORT);                 // read contents of reset port
;    write_rtl(RSTPORT,byte_read);      // do soft reset
;    delay_ms(10);                      // give it time
;    read_rtl(ISR);                     // check for good soft reset
;    if(!(byte_read & RST))
;    {
;     while(1){
;     //printf("RTL8019AS INIT FAILED!\r\n");
; 	delay_ms(1000);
; 	}
;    }
;    write_rtl(CR,0x21);       // stop the NIC, abort DMA, page 0
;    delay_ms(2);               // make sure nothing is coming in or going out
;    write_rtl(DCR,dcrval);    // 0x58
;    write_rtl(RBCR0,0x00);
;    write_rtl(RBCR1,0x00);
;    write_rtl(RCR,0x04);
;    write_rtl(TPSR,txstart);
;    write_rtl(TCR,0x02);
;    write_rtl(PSTART,rxstart);
;    write_rtl(BNRY,rxstart);
;    write_rtl(PSTOP,rxstop);
;    write_rtl(CR,0x61);
;    write_rtl(CURR,rxstart);
;    for(i=0;i<6;++i)
;       write_rtl(PAR0+i, MY_MAC[i]);
;       
;    write_rtl(CR,0x22);
;    write_rtl(ISR,0xFF);
;    //write_rtl(IMR,imrval);
;    write_rtl(IMR,0x35);
;    write_rtl(TCR,tcrval);
;    */
; }

⌨️ 快捷键说明

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