📄 lan_lan91c111_ini.h
字号:
/************************************************************************
*
* LAN_LAN91C111_INI.h
*
* The 'LAN_LAN91C111_INI' module asserts the required install function
* of the lan LAN91C111 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 <lan_lan91c111_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 LAN91C111 device driver */
LAN_LAN91C111_install();
SYSCON_read( SYSCON_COM_EN0_MINOR_DEVICE_ID, &(minor), sizeof(minor));
/* initialize LAN91C111 LAN device driver */
if( IO_init( SYS_MAJOR_LAN_LAN91C111, 0, 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 + -