|
Defines |
#define | TME_ERROR 0 |
#define | TME_SUCCESS 1 |
#define | TME_TRUE 2 |
#define | TME_FALSE 3 |
#define | DEFAULT_MEM_EX_SIZE 65536 |
#define | MAX_TME_DATA_BLOCKS 4 |
#define | TME_NONE_ACTIVE 0xffffffff |
#define | DELTA_READ 2 |
#define | TME_LUT_ENTRIES 0x00000000 |
#define | TME_MAX_FILL_STATE 0x00000001 |
#define | TME_REHASHING_VALUE 0x00000002 |
#define | TME_KEY_LEN 0x00000003 |
#define | TME_SHARED_MEMORY_BLOCKS 0x00000004 |
#define | TME_FILLED_ENTRIES 0x00000005 |
#define | TME_BLOCK_SIZE 0x00000006 |
#define | TME_EXTRA_SEGMENT_SIZE 0x00000007 |
#define | TME_LOOKUP_CODE 0x00000008 |
#define | TME_OUT_LUT_EXEC 0x00000009 |
#define | TME_FILLED_BLOCKS 0x0000000a |
#define | TME_DEFAULT_EXEC 0x0000000b |
#define | TME_LUT_BASE_ADDRESS 0x0000000c |
#define | TME_SHARED_MEMORY_BASE_ADDRESS 0x0000000d |
#define | TME_EXTRA_SEGMENT_BASE_ADDRESS 0x0000000e |
#define | TME_LAST_FOUND 0x0000000f |
#define | TME_LAST_FOUND_BLOCK 0x00000010 |
#define | TME_LUT_ENTRIES_DEFAULT 32007 |
#define | TME_REHASHING_VALUE_DEFAULT 1 |
#define | TME_SHARED_MEMORY_BLOCKS_DEFAULT 16000 |
#define | TME_BLOCK_SIZE_DEFAULT 64 |
#define | TME_EXTRA_SEGMENT_SIZE_DEFAULT 0 |
#define | TME_LOOKUP_CODE_DEFAULT 0 |
#define | TME_OUT_LUT_EXEC_DEFAULT 0 |
#define | TME_DEFAULT_EXEC_DEFAULT 0 |
#define | TME_MAX_FILL_STATE_DEFAULT 15000 |
#define | IS_VALIDATED(src, index) (src&(1<<index)) |
#define | VALIDATE(src, index) src|=(1<<index); |
#define | FORCE_NO_DELETION(timestamp) (struct timeval*)(timestamp)->tv_sec=0x7fffffff; |
Typedefs |
typedef uint32(* | lut_fcn )(uint8 *key, struct __TME_DATA *data, MEM_TYPE *mem_ex, struct time_conv *time_ref) |
typedef uint32(* | exec_fcn )(uint8 *block, uint32 pkt_size, struct __TME_DATA *data, MEM_TYPE *mem_ex, uint8 *mem_data) |
typedef __RECORD | RECORD |
typedef __RECORD * | PRECORD |
typedef __TME_DATA | TME_DATA |
typedef __TME_DATA * | PTME_DATA |
typedef __TME_CORE | TME_CORE |
typedef __TME_CORE * | PTME_CORE |
Functions |
static __inline int32 | IS_DELETABLE (void *timestamp, TME_DATA *data) |
uint32 | init_tme_block (TME_CORE *tme, uint32 block) |
uint32 | validate_tme_block (MEM_TYPE *mem_ex, TME_CORE *tme, uint32 block, uint32 mem_ex_offset) |
uint32 | lookup_frontend (MEM_TYPE *mem_ex, TME_CORE *tme, uint32 mem_ex_offset, struct time_conv *time_ref) |
uint32 | execute_frontend (MEM_TYPE *mem_ex, TME_CORE *tme, uint32 pkt_size, uint32 offset) |
uint32 | set_active_tme_block (TME_CORE *tme, uint32 block) |
uint32 | init_extended_memory (uint32 size, MEM_TYPE *mem_ex) |
uint32 | reset_tme (TME_CORE *tme) |
uint32 | get_tme_block_register (TME_DATA *data, MEM_TYPE *mem_ex, uint32 rgstr, uint32 *rval) |
uint32 | set_tme_block_register (TME_DATA *data, MEM_TYPE *mem_ex, uint32 rgstr, uint32 value, int32 init) |
uint32 | set_active_read_tme_block (TME_CORE *tme, uint32 block) |
uint32 | set_autodeletion (TME_DATA *data, uint32 value) |
lut_fcn | lut_fcn_mapper (uint32 index) |
exec_fcn | exec_fcn_mapper (uint32 index) |