📄 bspdefs.h
字号:
/* bspDef.h - BSP definitions */
/* Copyright 2006 ZTE Corporation */
/*
modification history
--------------------
01a,23dec05,lyf written.
*/
#ifndef __INCbspDefsh
#define __INCbspDefsh
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* includes */
#include "bspStdLib.h"
#include "bspPrj.h"
/* defines */
#include "lib/5906Type.h"
/* defines */
#define RAM_DISK_SIZE (0x02000000) /* 32M ramdisk */
#define BSP_MEM_SIZE (0x06000000) /* 64M+32M for vxworks */
#define TRACE_BUF_SIZE (0x00100000)
#define BOOT_RESERVED_MEM 0x02000000 /* 32M space reserved for BOOTROM */
/* 只有BSP使用 */
#define MEC_OAM_FILE_NAME "oam.dat"
#define TFFS_VOLUME_NAME "/flash"
#define NIC_DEVNAME "mottsec"
/* 启动网口 */
#define BOOT_DEV "mottsec"
#define BOOT_DEV_UNIT 0
#define BOOT_NET_DEV BOOT_DEV"0"
/* 带外网口 */
#define OUTBAND_DEV "mottsec"
#define OUTBAND_DEV_UNIT 0
#define OUTBAND_NET_DEV OUTBAND_DEV"0"
/* 定义主控板与线卡板间通讯网口信息 */
#define BBC_DEV "motfcc"
#define BBC_DEV_UNIT 0
#define BBC_NET_DEV BBC_DEV"0"
/* 定义主备主控板之间板间通讯网口信息 */
#define MBC_DEV "motfcc"
#define MBC_DEV_UNIT 1
#define MBC_NET_DEV "motfcc1"
#define INBAND_DEV "zxAg"
#define INBAND_DEV_UNIT 0
#define INBAND_NET_DEV INBAND_DEV"0"
#define BOOT_ENABLE_PASSWORD_LEN 33
#define ENABLE_PASSWORD_MIN_LEN 3
#define ENABLE_PASSWORD_MAX_LEN 16
/* for BOOTSHELL MODULE */
/* 必须同 RAM_LOW_ADRS 一致! */
#define VERSION_DEST_ADDR 0x10000
#ifdef INSTALL_GCSA
#define MAIN_VER_NAME "GCSA.MVR"
#elif defined(INSTALL_GCSD)
#define MAIN_VER_NAME "GCSD.MVR"
#endif
/* 活动版本头放在内存的固定位置, 如果是ARM,此值需要更改 */
#define RUN_VER_RECORD_LEN 0x300
#define RUN_VER_RECORD_ADDR 0x4400
#define MACHINE_MAX_SERIAL_NO 16325
/* typedefs */
#if 0
typedef struct
{
unsigned char verTag[16]; /* 版本号 */
unsigned char fnctVerName[8]; /* 功能版本类型 */
unsigned char verType[4]; /* 就是"BT" */
unsigned char verCreateTime[20]; /* 创建时间 */
unsigned int verLen; /* boot的长度 */
} BOOTVER;
#endif /* INCLUDE_BSPLIB */
/* function declarations */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __INCbspDefsh */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -