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

init_deinit.h (2146B)


      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-2020 Broadcom Inc. All rights reserved.
      6  *
      7  * File:        init_deinit.h
      8  * Purpose:     DCMN initialization sequence header file.
      9  */
     10 
     11 #ifndef _APPL_DCMN_INIT_DEINIT_H
     12 #define _APPL_DCMN_INIT_DEINIT_H
     13 
     14 #ifndef AGGRESSIVE_ALLOC_DEBUG_TESTING
     15   #define AGGRESSIVE_ALLOC_DEBUG_TESTING 0
     16 #endif
     17 
     18 /* appl_traffic_enable_stage options: */
     19 #define TRAFFIC_EN_STAGE_DISABLE     0
     20 #define TRAFFIC_EN_STAGE_AFTER_STK   0x1
     21 
     22 typedef struct appl_dcmn_init_param_s {
     23     uint32 unit;
     24     int32 nof_devices;
     25     int32 repeat;
     26     int32 no_init;
     27     int32 no_deinit;
     28     int32 no_attach;
     29     int32 no_bcm;
     30     int32 no_soc;
     31     int32 no_intr;
     32     int32 no_rx_los;
     33     int32 modid;
     34     int32 base_modid;
     35     int32 flags;   
     36 #if (defined(BCM_PETRA_SUPPORT) || defined(BCM_DFE_SUPPORT)) && defined(BCM_GEN_ERR_MECHANISM)
     37     int32 partial_init;
     38     int32 fake_bcm_start;
     39     int32 fake_bcm_range;
     40     int32 fake_soc_start;
     41     int32 fake_soc_range; 
     42 #endif
     43     int32 no_linkscan;
     44     int32 warmboot;
     45     int32 engine_dump;
     46     int32 no_sync;
     47     int32 no_dump;
     48     int32 no_elk_appl;
     49     int32 no_elk_device;
     50     int32 no_elk_second_device;
     51     uint32 elk_ilkn_rev;
     52     uint32 elk_mdio_id;
     53     uint32 elk_mdio_second_id;
     54 
     55     int32 no_packet_rx;
     56     int32 packet_rx_cosq;
     57 
     58     int32 no_appl;
     59     int32 no_appl_stk;
     60     int32 appl_traffic_enable_stage;
     61     uint32 cosq_disable;
     62     uint32 appl_flags;
     63     int32 no_itmh_prog_mode;
     64     int32 rc_load;
     65 #if AGGRESSIVE_ALLOC_DEBUG_TESTING
     66     uint32 is_resources_check;
     67     uint32 aggressive_num_to_test;
     68     uint32 aggressive_alloc_debug_testing_keep_order;
     69     uint32 aggressive_long_free_search;
     70 #endif
     71     uint32 error_on_leak;
     72     uint32 l2_mode;
     73 } appl_dcmn_init_param_t;
     74 
     75 
     76 
     77 cmd_result_t appl_dcmn_init_usage_parse(int unit, args_t *a, appl_dcmn_init_param_t *init_param);
     78 
     79 int appl_dcmn_init(int unit, appl_dcmn_init_param_t* init_param);
     80 
     81 int appl_dcmn_deinit(int unit, appl_dcmn_init_param_t* init_param);
     82 
     83 #endif /* _APPL_DCMN_INIT_DEINIT_H */