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

📄 mac_au1000_ini.h

📁 MIPS下的boottloader yamon 的源代码
💻 H
字号:

/************************************************************************
*
*      MAC_AU1000_INI.h
*
*      The 'MAC_AU1000_INI' module asserts the required install function
*      of the AU1000 MAC device driver.
*
*
*
************************************************************************/



/* START OF INI section: INIT_DECLARATIONS */
#ifdef INIT_DECLARATIONS

#include <sysdefs.h>
#include <syserror.h>
#include <sysdev.h>
#include <io_api.h>
#include <syscon_api.h>
#include <sys_api.h>
#include <product.h>
#include <pb1000.h>
#include <MAC_AU1000_api.h>

#endif
/* END   OF INI section: INIT_DECLARATIONS */




/* START OF INI section: INIT_INSTALL */
#ifdef INIT_INSTALL
{
    INT32  rcode;
    UINT32 product;
	UINT32 minor;
	
    /* get product ID */
    rcode = SYSCON_read( SYSCON_BOARD_PRODUCTID_ID,
		&product,
		sizeof(product) );
    if (rcode == OK)
    {
        if (product == PRODUCT_PB1000_ID)
        {
            /* PB1000 */
			
            /* go and install the AU1000 MAC device driver */	 
            MAC_AU1000_install();

            SYSCON_read( SYSCON_COM_EN0_MINOR_DEVICE_ID, &(minor), sizeof(minor));
			
            /* initialize MAC AU1000 device driver */
            if( IO_init( SYS_MAJOR_MAC_AU1000, minor, NULL ) != OK )
			{
				/* Should not happen unless board is defective */
				DISP_STR( "E:LAN" );
			}
        }
    }
}
#endif 
/* END   OF INI section: INIT_INSTALL */

⌨️ 快捷键说明

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