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

utils_board_general.h (1397B)


      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-2020 Broadcom Inc. All rights reserved.
      5 */
      6 
      7 
      8 #ifndef __UTILS_BOARD_GEN_H_INCLUDED__
      9 /* { */
     10 #define __UTILS_BOARD_GEN_H_INCLUDED__
     11 
     12 #include <appl/diag/dcmn/bsp_cards_consts.h> 
     13 
     14 #ifdef  __cplusplus
     15 extern "C" {
     16 #endif
     17 
     18 /*
     19  * Sometimes, the application need to know the device type,
     20  * before the driver is initialized.
     21  * D_BOARD_CHIP_TYPE holds the expected device type, according
     22  * to the board information,
     23  */
     24 typedef enum
     25 {
     26   D_BOARD_CHIP_TYPE_FE200,
     27   D_BOARD_CHIP_TYPE_FAP10M_A,
     28   D_BOARD_CHIP_TYPE_FAP10M_B,
     29   D_BOARD_CHIP_TYPE_FAP20V_A,
     30   D_BOARD_CHIP_TYPE_FAP20V_B,
     31   D_BOARD_CHIP_TYPE_FAP20M,
     32   D_BOARD_CHIP_TYPE_FAP21V,
     33   D_BOARD_CHIP_TYPE_PETRA,
     34   D_BOARD_CHIP_TYPE_FE600,
     35   D_BOARD_CHIP_TYPE_T20E,
     36   D_BOARD_CHIP_TYPE_PB,
     37   D_BOARD_CHIP_TYPE_LAST
     38 
     39 } D_BOARD_CHIP_TYPE;
     40 
     41 void
     42   board_set_device_type(
     43     D_BOARD_CHIP_TYPE board_chip_type
     44   );
     45 void
     46   board_get_device_type(
     47     D_BOARD_CHIP_TYPE *board_chip_type
     48   );
     49 const char*
     50   utils_D_BOARD_CHIP_TYPE_to_string(
     51     D_BOARD_CHIP_TYPE board_chip_type
     52   );
     53 int
     54   utils_print_board_info(
     55     void
     56   );
     57 
     58 int
     59   host_board_type_from_nv(
     60     SOC_BSP_CARDS_DEFINES  *board_board_type_ptr
     61     ) ;
     62 
     63 #ifdef  __cplusplus
     64 }
     65 #endif
     66 
     67 
     68 /* } __UTILS_BOARD_GEN_H_INCLUDED__*/
     69 #endif
     70