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

int.h (1368B)


      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:    int.h
     11  * Purpose: INT Turnaround definitions common to SDK and uKernel
     12  */
     13 
     14 #ifndef _SOC_SHARED_INT_H
     15 #define _SOC_SHARED_INT_H
     16 
     17 #ifdef BCM_UKERNEL
     18 #include "sdk_typedefs.h"
     19 #else
     20 #include <sal/types.h>
     21 #endif
     22 
     23 /*
     24  * INT uC Error codes
     25  */
     26 typedef enum shr_int_uc_error_e {
     27     SHR_INT_UC_E_NONE      = 0,
     28     SHR_INT_UC_E_INTERNAL  = 1,
     29     SHR_INT_UC_E_MEMORY    = 2,
     30     SHR_INT_UC_E_UNIT      = 3,
     31     SHR_INT_UC_E_PARAM     = 4,
     32     SHR_INT_UC_E_EMPTY     = 5,
     33     SHR_INT_UC_E_FULL      = 6,
     34     SHR_INT_UC_E_NOT_FOUND = 7,
     35     SHR_INT_UC_E_EXISTS    = 8,
     36     SHR_INT_UC_E_TIMEOUT   = 9,
     37     SHR_INT_UC_E_BUSY      = 10,
     38     SHR_INT_UC_E_FAIL      = 11,
     39     SHR_INT_UC_E_DISABLED  = 12,
     40     SHR_INT_UC_E_BADID     = 13,
     41     SHR_INT_UC_E_RESOURCE  = 14,
     42     SHR_INT_UC_E_CONFIG    = 15,
     43     SHR_INT_UC_E_UNAVAIL   = 16,
     44     SHR_INT_UC_E_INIT      = 17,
     45     SHR_INT_UC_E_PORT      = 18
     46 } shr_int_uc_error_t;
     47 
     48 /* Max timeout for msging between SDK and UKERNEL */
     49 #define SHR_INT_MAX_UC_MSG_TIMEOUT              5000000 /* 5 secs */
     50 
     51 #endif /* _SOC_SHARED_INT_H */