openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

mem_table_test.h (1305B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  *
      7  * Generic Hash Memory Test definitions.
      8  */
      9 
     10 #ifndef __TEST_TABLE_GENERIC__H
     11 #define __TEST_TABLE_GENERIC__H
     12 
     13 #ifdef BCM_XGS_SWITCH_SUPPORT
     14 
     15 #ifdef BCM_ISM_SUPPORT
     16 #define TEST_HASH_MAX_BANKS _SOC_ISM_MAX_BANKS
     17 #else
     18 #define TEST_HASH_MAX_BANKS 20
     19 #endif
     20 
     21 /*
     22  * Generic Hashing Test Data Structure
     23  */
     24 typedef struct test_generic_hash_testdata_s {
     25     int unit;
     26     char *mem_str;
     27     soc_mem_t mem;
     28     int copyno;
     29     
     30     int opt_count; /* entries for hash, buckets for overflow */
     31     int opt_verbose;
     32     int opt_reset;
     33     
     34     char *opt_key_base;
     35     int opt_key_incr;    
     36     int32 opt_banks;
     37     char *opt_hash_offsets;
     38     uint8 offset_count;
     39     uint8 offsets[TEST_HASH_MAX_BANKS];
     40     uint32 restore;
     41     uint8 config_banks[TEST_HASH_MAX_BANKS];
     42     uint8 cur_offset[TEST_HASH_MAX_BANKS];
     43 } test_generic_hash_testdata_t;
     44 
     45 typedef struct test_generic_hash_test_s {
     46     uint8 setup_done;
     47     test_generic_hash_testdata_t testdata;
     48     test_generic_hash_testdata_t *ctp;
     49     int unit;
     50 } test_generic_hash_test_t;
     51 
     52 #endif /* BCM_XGS_SWITCH_SUPPORT */
     53 
     54 #endif /*!__TEST_TABLE_GENERIC__H */