qcm.h (1836B)
1 /* 2 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 * 4 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 5 */ 6 7 /* 8 * File: qcm.h 9 * Purpose: QCM definitions common to SDK and uKernel 10 * 11 * Notes: Definition changes should be avoided in order to 12 * maintain compatibility between SDK and uKernel since 13 * both images are built and loaded separately. 14 */ 15 16 #ifndef _SOC_SHARED_QCM_H 17 #define _SOC_SHARED_QCM_H 18 19 #ifdef BCM_UKERNEL 20 /* Build for uKernel not SDK */ 21 #include "sdk_typedefs.h" 22 #else 23 #include <sal/types.h> 24 #endif 25 26 #define SHR_QCM_CONFIG_STATUS_BIT 0x1 27 #define SHR_QCM_INIT_STATUS_BIT 0x2 28 #define SHR_QCM_CCMDMA_STATUS_BIT 0x4 29 #define SHR_QCM_APP_STATUS_1 0x51434D5F 30 #define SHR_QCM_APP_STATUS_2 0x5F415050 31 #define SHR_QCM_TIME_USEC 0x100000 32 #define SHR_QCM_MAX_GPORT_MONITOR 0x40 33 #define SHR_QCM_ERR_OFFSET 3 34 #define SHR_QCM_MEM_MIN_SIZE 0x4000 35 36 /* 37 * QCM uC Error codes 38 */ 39 typedef enum shr_qcm_uc_error_e { 40 SHR_QCM_UC_E_NONE = 0, 41 SHR_QCM_UC_E_INTERNAL = 1, 42 SHR_QCM_UC_E_MEMORY = 2, 43 SHR_QCM_UC_E_UNIT = 3, 44 SHR_QCM_UC_E_PARAM = 4, 45 SHR_QCM_UC_E_EMPTY = 5, 46 SHR_QCM_UC_E_FULL = 6, 47 SHR_QCM_UC_E_NOT_FOUND = 7, 48 SHR_QCM_UC_E_EXISTS = 8, 49 SHR_QCM_UC_E_TIMEOUT = 9, 50 SHR_QCM_UC_E_BUSY = 10, 51 SHR_QCM_UC_E_FAIL = 11, 52 SHR_QCM_UC_E_DISABLED = 12, 53 SHR_QCM_UC_E_BADID = 13, 54 SHR_QCM_UC_E_RESOURCE = 14, 55 SHR_QCM_UC_E_CONFIG = 15, 56 SHR_QCM_UC_E_UNAVAIL = 16, 57 SHR_QCM_UC_E_INIT = 17, 58 SHR_QCM_UC_E_PORT = 18 59 } shr_qcm_uc_error_t; 60 61 #endif /* _SOC_SHARED_QCM_H */ 62 63