Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

tme.h File Reference

#include <windows.h>
#include "memory_t.h"
#include "time_calls.h"

Go to the source code of this file.

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 __RECORDPRECORD
typedef __TME_DATA TME_DATA
typedef __TME_DATAPTME_DATA
typedef __TME_CORE TME_CORE
typedef __TME_COREPTME_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)


Define Documentation

#define DEFAULT_MEM_EX_SIZE   65536
 

Definition at line 53 of file tme.h.

#define DELTA_READ   2
 

Definition at line 56 of file tme.h.

Referenced by IS_DELETABLE().

#define FORCE_NO_DELETION timestamp   )     (struct timeval*)(timestamp)->tv_sec=0x7fffffff;
 

Definition at line 91 of file tme.h.

#define IS_VALIDATED src,
index   )     (src&(1<<index))
 

Definition at line 86 of file tme.h.

#define MAX_TME_DATA_BLOCKS   4
 

Definition at line 54 of file tme.h.

#define TME_BLOCK_SIZE   0x00000006
 

Definition at line 64 of file tme.h.

#define TME_BLOCK_SIZE_DEFAULT   64
 

Definition at line 79 of file tme.h.

#define TME_DEFAULT_EXEC   0x0000000b
 

Definition at line 69 of file tme.h.

#define TME_DEFAULT_EXEC_DEFAULT   0
 

Definition at line 83 of file tme.h.

#define TME_ERROR   0
 

Definition at line 47 of file tme.h.

#define TME_EXTRA_SEGMENT_BASE_ADDRESS   0x0000000e
 

Definition at line 72 of file tme.h.

#define TME_EXTRA_SEGMENT_SIZE   0x00000007
 

Definition at line 65 of file tme.h.

#define TME_EXTRA_SEGMENT_SIZE_DEFAULT   0
 

Definition at line 80 of file tme.h.

#define TME_FALSE   3
 

Definition at line 50 of file tme.h.

#define TME_FILLED_BLOCKS   0x0000000a
 

Definition at line 68 of file tme.h.

#define TME_FILLED_ENTRIES   0x00000005
 

Definition at line 63 of file tme.h.

#define TME_KEY_LEN   0x00000003
 

Definition at line 61 of file tme.h.

#define TME_LAST_FOUND   0x0000000f
 

Definition at line 73 of file tme.h.

#define TME_LAST_FOUND_BLOCK   0x00000010
 

Definition at line 74 of file tme.h.

#define TME_LOOKUP_CODE   0x00000008
 

Definition at line 66 of file tme.h.

#define TME_LOOKUP_CODE_DEFAULT   0
 

Definition at line 81 of file tme.h.

#define TME_LUT_BASE_ADDRESS   0x0000000c
 

Definition at line 70 of file tme.h.

#define TME_LUT_ENTRIES   0x00000000
 

Definition at line 58 of file tme.h.

#define TME_LUT_ENTRIES_DEFAULT   32007
 

Definition at line 76 of file tme.h.

#define TME_MAX_FILL_STATE   0x00000001
 

Definition at line 59 of file tme.h.

#define TME_MAX_FILL_STATE_DEFAULT   15000
 

Definition at line 84 of file tme.h.

#define TME_NONE_ACTIVE   0xffffffff
 

Definition at line 55 of file tme.h.

#define TME_OUT_LUT_EXEC   0x00000009
 

Definition at line 67 of file tme.h.

#define TME_OUT_LUT_EXEC_DEFAULT   0
 

Definition at line 82 of file tme.h.

#define TME_REHASHING_VALUE   0x00000002
 

Definition at line 60 of file tme.h.

#define TME_REHASHING_VALUE_DEFAULT   1
 

Definition at line 77 of file tme.h.

#define TME_SHARED_MEMORY_BASE_ADDRESS   0x0000000d
 

Definition at line 71 of file tme.h.

#define TME_SHARED_MEMORY_BLOCKS   0x00000004
 

Definition at line 62 of file tme.h.

#define TME_SHARED_MEMORY_BLOCKS_DEFAULT   16000
 

Definition at line 78 of file tme.h.

#define TME_SUCCESS   1
 

Definition at line 48 of file tme.h.

#define TME_TRUE   2
 

Definition at line 49 of file tme.h.

#define VALIDATE src,
index   )     src|=(1<<index);
 

Definition at line 88 of file tme.h.


Typedef Documentation

typedef uint32(* exec_fcn)(uint8 *block, uint32 pkt_size, struct __TME_DATA *data, MEM_TYPE *mem_ex, uint8 *mem_data)
 

Definition at line 95 of file tme.h.

typedef uint32(* lut_fcn)(uint8 *key, struct __TME_DATA *data, MEM_TYPE *mem_ex, struct time_conv *time_ref)
 

Definition at line 94 of file tme.h.

typedef struct __RECORD * PRECORD
 

typedef struct __TME_CORE * PTME_CORE
 

typedef struct __TME_DATA * PTME_DATA
 

Definition at line 129 of file tme.h.

typedef struct __RECORD RECORD
 

typedef struct __TME_CORE TME_CORE
 

typedef struct __TME_DATA TME_DATA
 

Definition at line 129 of file tme.h.


Function Documentation

exec_fcn exec_fcn_mapper uint32  index  ) 
 

uint32 execute_frontend MEM_TYPE mem_ex,
TME_CORE tme,
uint32  pkt_size,
uint32  offset
 

uint32 get_tme_block_register TME_DATA data,
MEM_TYPE mem_ex,
uint32  rgstr,
uint32 *  rval
 

uint32 init_extended_memory uint32  size,
MEM_TYPE mem_ex
 

uint32 init_tme_block TME_CORE tme,
uint32  block
 

static __inline int32 IS_DELETABLE void *  timestamp,
TME_DATA data
[static]
 

Definition at line 144 of file tme.h.

References DELTA_READ, __TME_DATA::enable_deletion, FALSE, __TME_DATA::filled_entries, __TME_DATA::last_read, __TME_DATA::max_fill_state, and TRUE.

uint32 lookup_frontend MEM_TYPE mem_ex,
TME_CORE tme,
uint32  mem_ex_offset,
struct time_conv time_ref
 

lut_fcn lut_fcn_mapper uint32  index  ) 
 

uint32 reset_tme TME_CORE tme  ) 
 

uint32 set_active_read_tme_block TME_CORE tme,
uint32  block
 

uint32 set_active_tme_block TME_CORE tme,
uint32  block
 

uint32 set_autodeletion TME_DATA data,
uint32  value
 

uint32 set_tme_block_register TME_DATA data,
MEM_TYPE mem_ex,
uint32  rgstr,
uint32  value,
int32  init
 

uint32 validate_tme_block MEM_TYPE mem_ex,
TME_CORE tme,
uint32  block,
uint32  mem_ex_offset
 


Generated on Sun May 14 14:51:30 2006 by  doxygen 1.4.2