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_nvram_configuration.h (2884B)


      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 #ifndef _UTILS_NVRAM_CONFIGURATION_
      7 #define _UTILS_NVRAM_CONFIGURATION_
      8 
      9 
     10 #if !DUNE_BCM
     11 #include "eeprom.h"
     12 #endif
     13 
     14 /********************************************************
     15 * Documentation at utils_nvram_configuration.c
     16  */
     17 STATUS
     18   nvRamGet(
     19     char *string,    /* where to copy non-volatile RAM    */
     20     int strLen,      /* maximum number of bytes to copy   */
     21     int offset       /* byte offset into non-volatile RAM */
     22     );
     23 /********************************************************
     24 * Documentation at utils_nvram_configuration.c
     25  */
     26 STATUS
     27   nvRamSet(
     28     char *string,     /* string to be copied into non-volatile RAM */
     29     int strLen,       /* maximum number of bytes to copy           */
     30     int offset        /* byte offset into non-volatile RAM         */
     31     );
     32 
     33 /********************************************************
     34 * Documentation at utils_nvram_configuration.c
     35  */
     36 int
     37   host_eeprom_front_card_type_from_nv(
     38     HOST_EEPROM_FRONT_CARD_TYPE  *host_eeprom_front_card_type_en_ptr
     39   );
     40 /********************************************************
     41 * Documentation at utils_nvram_configuration.c
     42  */
     43 int
     44   host_eeprom_front_card_type_to_nv(
     45     HOST_EEPROM_FRONT_CARD_TYPE  host_eeprom_front_card_type_en
     46   );
     47 /********************************************************
     48 * Documentation at utils_nvram_configuration.c
     49  */
     50 int
     51   host_run_val_of_front_card_type(
     52     HOST_EEPROM_FRONT_CARD_TYPE  *host_eeprom_front_card_type_en_ptr
     53   );
     54 /********************************************************
     55 * Documentation at utils_nvram_configuration.c
     56  */
     57 const char *
     58   get_front_card_type_name(
     59     HOST_EEPROM_FRONT_CARD_TYPE  host_eeprom_front_card_type_en
     60   );
     61 /********************************************************
     62 * Documentation at utils_nvram_configuration.c
     63  */
     64 unsigned int
     65   is_front_end_ixp2800_connected(
     66     void
     67   );
     68 /********************************************************
     69 * Documentation at utils_nvram_configuration.c
     70  */
     71 unsigned int
     72   is_front_end_x10_connected(
     73     void
     74   );
     75 
     76 /*
     77  * HOST_DB board related procedures.
     78  * {
     79  */
     80 int
     81   host_db_board_cat_number_from_nv(
     82     char  *board_serial_num_ptr
     83     ) ;
     84 int
     85   host_db_board_description_from_nv(
     86     char  *board_description_ptr
     87     ) ;
     88 int
     89   host_db_board_version_from_nv(
     90     char  *board_version_ptr
     91     ) ;
     92 int
     93   host_db_board_sn_from_nv(
     94     unsigned short  *board_sn_ptr
     95     ) ;
     96 int
     97   host_db_board_param_i_from_nv(
     98     unsigned int i,
     99     char  *board_param_i_ptr
    100     ) ;
    101 int
    102   host_db_board_type_from_nv(
    103     unsigned short  *board_board_type_ptr
    104     ) ;
    105 /*
    106  * }
    107  */
    108 
    109 int
    110   host_front_end_type_from_nv(
    111     SOC_BSP_CARDS_DEFINES  *board_type_ptr
    112     );
    113 
    114 #endif /* _UTILS_NVRAM_CONFIGURATION_ */