sum.h (1534B)
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 */ 8 9 /* 10 * File: sum.h 11 * Purpose: SUM definitions common to SDK and uKernel 12 */ 13 14 #ifndef _SOC_SHARED_SUM_H 15 #define _SOC_SHARED_SUM_H 16 17 #ifdef BCM_UKERNEL 18 #include "sdk_typedefs.h" 19 #else 20 #include <sal/types.h> 21 #endif 22 23 /* 24 * SUM uC Error codes 25 */ 26 typedef enum shr_sum_uc_error_e { 27 SHR_SUM_UC_E_NONE = 0, 28 SHR_SUM_UC_E_INTERNAL = 1, 29 SHR_SUM_UC_E_MEMORY = 2, 30 SHR_SUM_UC_E_UNIT = 3, 31 SHR_SUM_UC_E_PARAM = 4, 32 SHR_SUM_UC_E_EMPTY = 5, 33 SHR_SUM_UC_E_FULL = 6, 34 SHR_SUM_UC_E_NOT_FOUND = 7, 35 SHR_SUM_UC_E_EXISTS = 8, 36 SHR_SUM_UC_E_TIMEOUT = 9, 37 SHR_SUM_UC_E_BUSY = 10, 38 SHR_SUM_UC_E_FAIL = 11, 39 SHR_SUM_UC_E_DISABLED = 12, 40 SHR_SUM_UC_E_BADID = 13, 41 SHR_SUM_UC_E_RESOURCE = 14, 42 SHR_SUM_UC_E_CONFIG = 15, 43 SHR_SUM_UC_E_UNAVAIL = 16, 44 SHR_SUM_UC_E_INIT = 17, 45 SHR_SUM_UC_E_PORT = 18 46 } shr_sum_uc_error_t; 47 48 /* Max timeout for msging between SDK and UKERNEL */ 49 #define SHR_SUM_MAX_UC_MSG_TIMEOUT 5000000 /* 5 secs */ 50 51 /* Minimum sample interval */ 52 #define SHR_SUM_MIN_SAMPLE_INTERVAL 2 /* 2 usecs */ 53 54 /* Max number of ports in TH3 SUM supporting */ 55 #define SHR_SUM_MAX_PORTS (256) 56 57 #endif /* _SOC_SHARED_SUM_H */