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

📄 bsp.h

📁 这是ARM在Vxworks的驱动源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/*   * BSP_LAN1_RX_LOW_WATERMARK      - When remaining receive packet  */
/*   * BSP_LAN1_RX_LOW_WATERMARK_ROM    buffers reach to this mark,    */
/*                                      indicate to pNA+ that the LAN  */
/*                                      driver is low on rcv buffers.  */
/*                                      Applies to RAM and ROM         */
/*                                      respectively.                  */
/*   * BSP_MAX_ENET - maximum number of LAN channels supported */
/*                                                                     */
/*   Note: All the LAN channels share the same following parameters.   */
/*         If you want to setup channels with different parameters,    */
/*         change SetupLanParams() in  bspcfg.c file.                  */
/*=====================================================================*/
#define BSP_LAN1                      YES
#define BSP_LAN1_ENTRY                mtTsecEntry
#define BSP_LAN1_MTU                  1500
#define BSP_LAN1_HWALEN               6
#define BSP_LAN1_FLAGS                0xA001
#define BSP_LAN1_PKB                  256
#define BSP_LAN1_PKB_ROM              64
#define BSP_LAN1_RX_LOW_WATERMARK     5
#define BSP_LAN1_RX_LOW_WATERMARK_ROM 2

/*=====================================================================*/
/*                                                                     */
/*            3COM509 L A N   D R I V E R   F E A T U R E S            */
/*                                                                     */
/*   * BSP_LAN1_INTLEV - Interrupt level for the 3com509 card          */
/*   * BSP_LAN1_IO_BASE - I/O base for the 3com509 card                */
/*   * BSP_LAN1_NMCAST - number of multicast addresses                 */
/*   * BSP_LAN1_MODEL  - model of the 3com509 card                     */
/*                                                                     */
/*=====================================================================*/
#define BSP_LAN1_INTLEV        0x0d
#define BSP_LAN1_IO_BASE       0xFE000300
#define BSP_LAN1_NMCAST        50
#define BSP_LAN1_MODEL         E3C509

/*=====================================================================*/
/*                                                                     */
/*            M I S C E L L A N E O U S   F E A T U R E S              */
/*                                                                     */
/*   * BSP_PARMS     - size in bytes of board-specific parameters      */
/*                     which should be stored in non-volatile RAM and  */
/*                     modified via the optional startup dialog.       */
/*                     0 = none.                                       */
/*                                                                     */
/*=====================================================================*/
#define BSP_MAX_ENET    		5
#define BSP_MAX_SYNC			4
#define BSP_PARMS               0x80 /* (16*BSP_MAX_ENET+8*BSP_MAX_SYNC)*/


/*=====================================================================*/
/*                                                                     */
/*    S H A R E D   M E M O R Y   C O M M U N I C A T I O N            */
/*                                                                     */
/*   * BSP_SMEM            - Yes if shared memory communication is     */
/*                           supported                                 */
/*                                                                     */
/*=====================================================================*/
#define BSP_SMEM               NO

/*---------------------------------------------------------------------*/
/* Define BSP_INT_MODE to 1 to use the interrupt method for signaling  */
/* the arrival of packets to a destination node. Otherwise Polling is  */
/* (in tm_tick() of decrementer timer driver) used.                    */
/*---------------------------------------------------------------------*/
#define BSP_INT_MODE      0         /*  0 = Polling, 1 = Interrupt     */


/*=====================================================================*/
/*                                                                     */
/*                         S C S I                                     */
/*                                                                     */
/* Note: BSP_SCSI_DRV_LEVEL indicates if the low level scsi drivers    */
/* support the new SCSI driver interface of pSOSystem 2.5, which       */
/* support the miltiple drivers/adaptors via SCSI MUX.                 */
/*                                                                     */
/* If your drivers can only work with pSOSystem 2.2 or pSOSystem 2.1   */
/* set the BSP_SCSI_DRV_LEVEL to  220 or 210.                          */
/*=====================================================================*/
#define BSP_SCSI               NO
#define BSP_SCSI_TAPE          NO
#define BSP_SCSI_DRV_LEVEL    250

/*=====================================================================*/
/*                                                                     */
/*                           I D E                                     */
/*                                                                     */
/*=====================================================================*/
#define BSP_IDE               NO

/*=====================================================================*/
/*                                                                     */
/*              2 N D   T I M E R    F O R    p M O N T                */
/*                                                                     */
/*=====================================================================*/

#define BSP_TIMER2             YES

/*=====================================================================*/
/*                                                                     */
/*                         I R D A                                     */
/*                                                                     */
/*=====================================================================*/
#define BSP_IRDA               NO

#define PAGE_SIZE              0x1000   /* 4K byte */
 
#define BSP_STOP_BOARD_ACTIVITY                                 \
        {                                                       \
        SysDcacheInhibit();                                     \
        SysIcacheInhibit();                                     \
        }
 
/*---------------------------------------------------------------------*/
/* Board specific parameters structure definition                      */
/* BSP_PARMS         - size in bytes of board-specific parameters      */
/*                     which should be stored in non-volatile RAM and  */
/*                     modified via the optional startup dialog.       */
/*                     0 = none.                                       */
/*---------------------------------------------------------------------*/
struct BspParms            /* Board-specific parameters */
    {
    unsigned char Eth03;   /* Byte 3 of Ethernet address */
    unsigned char Eth04;   /* Byte 4 of Ethernet address */
    unsigned char Eth05;   /* Byte 5 of Ethernet address */
/*consist with src/flash.c*/
	unsigned char FlashType;
#define FLASH_DATA_32BIT	0
#define FLASH_DATA_64BIT	1
	unsigned char FlashDataWide;
/* consist with BD_MY_SDRAM0_SIZE	 in board.h*/
#define RAM_SIZE_16M		0	
#define RAM_SIZE_32M		1	
	unsigned char ram_size;	
	unsigned char	rom_version;/*the high 4 bit,and the low 4 bit*/
	unsigned char 	hw_version;
	unsigned long	serialnum;
/**since the #define BSP_PARMS 12,if add more,
	must change this macro,so rom_dl must recompile,since it only
	caculate the old BSP_PARMS bytes bsp_chksum*/
    };
#endif /* _BSP_H */
#ifdef __cplusplus
}
#endif

⌨️ 快捷键说明

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