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

buser_config.h (2946B)


      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 #ifndef __BMF_CONFIG_H__
      9 #define __BMF_CONFIG_H__
     10 
     11 #ifndef __PEDANTIC__
     12 #ifndef COMPILER_OVERRIDE_NO_LONGLONG
     13 #ifndef COMPILER_HAS_LONGLONG
     14 #define COMPILER_HAS_LONGLONG
     15 #endif /* !COMPILER_HAS_LONGLONG */
     16 #endif /* !COMPILER_OVERRIDE_NO_LONGLONG */
     17 #endif /* !__PEDANTIC__ */
     18 
     19 #include <bcompiler.h>
     20 
     21 /* Maximum number of ports per chip supported */
     22 #ifndef BMF_MAX_PORTS_PER_MT_DEV
     23 #define BMF_MAX_PORTS_PER_MT_DEV         8
     24 #endif
     25 
     26 /*
     27  * We are allowing Max 16 FCMAP ports for BCM84756 device.
     28  * For BCM8806x, it is the Max FCMAP ports which is the closest
     29  * multiple of 8 to switch platform allowed max ports.
     30  */
     31 #ifndef BMF_MAX_MT_PORTS
     32 #if defined(BCM84756_A0)
     33 #define BMF_MAX_MT_PORTS			 16
     34 #else
     35 #define BMF_MAX_MT_PORTS    (SOC_MAX_NUM_PORTS - (SOC_MAX_NUM_PORTS % BMF_MAX_PORTS_PER_MT_DEV))
     36 #endif
     37 #endif
     38 
     39 #ifndef BMF_CONFIG_DEFINE_UINT8_T
     40 #define BMF_CONFIG_DEFINE_UINT8_T               1         
     41 #endif
     42 
     43 /* Default type definition for uint8 */
     44 #ifndef BMF_CONFIG_TYPE_UINT8_T
     45 #define BMF_CONFIG_TYPE_UINT8_T                 unsigned char
     46 #endif
     47 
     48 #ifndef BMF_CONFIG_DEFINE_INT8_T
     49 #define BMF_CONFIG_DEFINE_INT8_T               1         
     50 #endif
     51 
     52 #ifndef BMF_CONFIG_TYPE_INT8_T
     53 #define BMF_CONFIG_TYPE_INT8_T                 char
     54 #endif
     55 
     56 /* Type buint16_t is not provided by the system */
     57 #ifndef BMF_CONFIG_DEFINE_UINT16_T
     58 #define BMF_CONFIG_DEFINE_UINT16_T              1         
     59 #endif
     60 
     61 /* Default type definition for uint16 */
     62 #ifndef BMF_CONFIG_TYPE_UINT16_T
     63 #define BMF_CONFIG_TYPE_UINT16_T                unsigned short
     64 #endif
     65 
     66 #ifndef BMF_CONFIG_DEFINE_INT16_T
     67 #define BMF_CONFIG_DEFINE_INT16_T              1         
     68 #endif
     69 
     70 #ifndef BMF_CONFIG_TYPE_INT16_T
     71 #define BMF_CONFIG_TYPE_INT16_T                short int
     72 #endif
     73 
     74 /* Type buint32_t is not provided by the system */
     75 #ifndef BMF_CONFIG_DEFINE_UINT32_T
     76 #define BMF_CONFIG_DEFINE_UINT32_T              1         
     77 #endif
     78 
     79 /* Default type definition for uint32 */
     80 #ifndef BMF_CONFIG_TYPE_UINT32_T
     81 #define BMF_CONFIG_TYPE_UINT32_T                unsigned int
     82 #endif
     83 
     84 #ifndef BMF_CONFIG_DEFINE_INT32_T
     85 #define BMF_CONFIG_DEFINE_INT32_T              1         
     86 #endif
     87 
     88 #ifndef BMF_CONFIG_TYPE_INT32_T
     89 #define BMF_CONFIG_TYPE_INT32_T                int
     90 #endif
     91 
     92 #ifndef BMF_CONFIG_DEFINE_UINT64_T
     93 #define BMF_CONFIG_DEFINE_UINT64_T              1         
     94 #endif
     95 
     96 /* Default type definition for uint64 */
     97 #ifndef BMF_CONFIG_TYPE_UINT64_T
     98 #define BMF_CONFIG_TYPE_UINT64_T                BCOMPILER_COMPILER_UINT64
     99 #endif
    100 
    101 #ifndef BMF_CONFIG_DEFINE_INT64_T
    102 #define BMF_CONFIG_DEFINE_INT64_T              1         
    103 #endif
    104 
    105 #ifndef BMF_CONFIG_TYPE_INT64_T
    106 #define BMF_CONFIG_TYPE_INT64_T                BCOMPILER_COMPILER_INT64
    107 #endif
    108 
    109 
    110 #endif /* __BMF_CONFIG_H__ */
    111 
    112