Skip to content

Commit

Permalink
Update sram_model.h
Browse files Browse the repository at this point in the history
  • Loading branch information
wqlxx committed Apr 19, 2013
1 parent 3251083 commit de884d0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions sram_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,40 @@ extern int32 sram_model_reset(uint8 chip_id);
extern cmodel_reg_info_t cmodel_regs_info[MAX_LOCAL_CHIP_NUM][MAX_REG_NUM];
extern cmodel_tbl_info_t cmodel_tbls_info[MAC_LOCAL_CHIP_NUM][MAX_REG_NUM];

struct fields_s
{
uint32 len;
uint8 word_offset;
uint8 bit_offset;
char* field_nam;
};
typedef struct fields_s fields_t;

/*table data structure*/
struct tables_s
{
uint32 hw_mask_base;
uint32 hw_data_base;
uint32 max_index_num;

uint8 key_size;
uint8 entry_size;
uint8 num_fields;
fields_t *ptr_fields;
};
typedef struct tables_s tables_t;

struct registers_s
{
uint32 hw_data_base;
uint32 max_index_num;
uint16 entry_size;
uint8 num_fields;
fields_t *ptr_fields;
};
typedef struct registers_s registers_t;

registers_t drv_regs_list[MAX_REG_NUM];
tables_t drv_tbls_list[MAX_TBL_NUM];

#endif

0 comments on commit de884d0

Please sign in to comment.