📄 nicmemory.h
字号:
/*******************************************************************************
*** Note: Copy rights resevered to Beijing Pacific Linkair Communications Co.
***
*** File Name: NICMemory.h
*** Purpose : NIC Net Driver Memory Allocation Definetions
***
*** Author : Guangzhao Tian
*** Modified : By Guangzhao Tian at 2000/9/14
***
**/
/* 3Com 3C905B-Tx NIC Card: Vendor ID and Device ID Definition */
#define VENDOR_ID_3COM 0x10B7
#define DEVICE_ID_3C905B 0x9055
/** Host Resources Registered and Reserved Bits definitions**/
#define NIC_IO_PORT_REGISTERED 0x00000001
#define NIC_INTERRUPT_REGISTERED 0x00000002 /*indication the Interrupt has been registerd*/
#define NIC_SHARED_MEMORY_ALLOCATED 0x00000004 /*indication the shared memory has been allocated*/
#define WAIT_TIMER_REGISTERED 0x00000008
#define NIC_TIMER_REGISTERED 0x00000010
/** Default Values for some things*/
#define NIC_DEFAULT_CACHELINESIZE 0x20
/**DPD Frame Start Header bits definition **/
#define FSH_CRC_APPEND_DISABLE BIT_13
#define FSH_TX_INDICATE BIT_15
#define FSH_DOWN_COMPLETE BIT_16
#define FSH_LAST_KEEP_ALIVE_PACKET BIT_24
#define FSH_ADD_IP_CHECKSUM BIT_25
#define FSH_ADD_TCP_CHECKSUM BIT_26
#define FSH_ADD_UDP_CHECKSUM BIT_27
#define FSH_ROUND_UP_DEFEAT BIT_28
#define FSH_DPD_EMPTY BIT_29
#define FSH_DOWN_INDICATE BIT_31
/**** DPD Fragment Address and Length Bit Definition ****/
#define DPD_FRAGLENGTH_MASK 0x00001FFF
#define DPD_FRAGLENGTH_LASTFRAG BIT_31
/** Above are definitions of the NIC Memory Manupilation
*** End of NICMemory.c
***********************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -