appl_ref_intr.h (1256B)
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 8 #ifndef _APPL_REF_INTR_H_ 9 #define _APPL_REF_INTR_H_ 10 11 /************* 12 * INCLUDES * 13 */ 14 #include <soc/defs.h> 15 #include <soc/types.h> 16 #include <bcm/error.h> 17 18 /************* 19 * TYPE DEFS * 20 */ 21 22 /************* 23 * STRUCTURES * 24 */ 25 26 /* 27 * static data strucure which holds the info about: 28 * the function suppose to run for each interrupt 29 * info about storm threshold 30 */ 31 typedef struct interrupt_common_params_s { 32 uint32* int_disable_on_init; 33 uint32* int_active_on_init; 34 uint32* int_disable_print_on_init; 35 soc_mem_t* cached_mem; 36 } intr_common_params_t; 37 38 /************* 39 * FUNCTIONS * 40 */ 41 int appl_dnxc_interrupt_init(int unit); 42 int appl_dnxc_interrupt_deinit(int unit); 43 int interrupt_appl_nocache_deinit(int unit); 44 45 #ifdef BCM_DNX_SUPPORT 46 int dnx_interrupt_appl_log_defaults_set(int unit); 47 int dnx_interrupt_appl_mask_defaults_set(int unit); 48 #endif 49 #ifdef BCM_DNXF_SUPPORT 50 int dnxf_interrupt_appl_log_defaults_set(int unit); 51 int dnxf_interrupt_appl_mask_defaults_set(int unit); 52 #endif 53 #endif /*_DCMN_INTR_H_ */