📄 sf_typedef.h
字号:
/************************************************************************ * * * SF.H * * * * Project Code: SD592DRIVER * * Create Date: 2005/01/03 * * Author: TANGBENBING * * Modify Date: * * Document: * * Function: * * Others: * *----------------------------------------------------------------------* * * * Copyright 2004-2005 SD592 Team Shenzhen HuaWei Tech, Inc. * * ALL RIGHTS RESERVED * * * *----------------------------------------------------------------------* ************************************************************************//*Define the static data*/#ifndef __DRIVERS_NET_HISILICON_SF_TYPEDEF_H#define __DRIVERS_NET_HISILICON_SF_TYPEDEF_H#define Success 0x00000001#define Failure 0x00000000#define BuildPKTLen 64#define PKTLength 1536#define SCPUDivFormDepth 16#define DivFrameDepth 42#define ARPFrameDepth 42#define In#define Out#define IO//#define SfTest#define Linux#define SoftAvoidTCPError/*#undef SoftAvoidTCPError*/#ifdef SoftAvoidTCPError#define TCPDivFormDepth 64#endif#ifdef Vxworks#define SF_Print printf#define SF_Free free#define SF_Malloc malloc#define HIGH_PRI_DIV_AGE 70#define HIGH_PRI_ARP_AGE 75#endif#ifdef WinCE#undef SfTest#endif#ifdef Linux//#define SF_Print printf#define SF_Print(...)#endif#define SF_EndianMode/*Big or little endian mode change define*/#ifdef SF_EndianMode#undef BYTE_SWAP_32#define BYTE_SWAP_32(data) \((((data) & 0x000000ff) << 24) | (((data) & 0x0000ff00) << 8) | (((data) & 0x00ff0000) >> 8) | (((data) & 0xff000000) >> 24))#undef BYTE_SWAP_16#define BYTE_SWAP_16(data) \ ((((data) & 0x00FF) << 8) | (((data) & 0xFF00) >> 8))#else#undef BYTE_SWAP_32#define BYTE_SWAP_32(data) (data)#undef BYTE_SWAP_16#define BYTE_SWAP_16(data) (data)#endif/*=========================================================*//* typedef unsigned char UCHAR ;*/ /*8 bits*//* typedef unsigned short USHORT ;*/ /*16 bits*//* typedef unsigned int UINT ; *//*16 bits*//* typedef unsigned long ULONG ;*/ /*32 bits*//*=========================================================*/#ifndef UINT32#define UINT32 unsigned long#endif#ifndef UINT16#define UINT16 unsigned short#endif#ifndef UINT8#define UINT8 unsigned char#endif/*=========================================================*/#endif /* __DRIVERS_NET_HISILICON_SF_TYPEDEF_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -