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

ui_general_utils.h (1059B)


      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 ___UI_GENERAL_UTILS_H___
      7 #define ___UI_GENERAL_UTILS_H___
      8 
      9 #ifndef SAND_LOW_LEVEL_SIMULATION
     10 
     11 int
     12   download_boot_block_to_flash(
     13     char *ip_address
     14   );
     15 
     16 #endif
     17 
     18 int
     19   download_application_block_to_flash(
     20     unsigned int app_i,
     21     char *ip_address
     22   );
     23 int
     24   get_application_version(
     25     const char* mem_file_base,
     26     const int data_size,
     27     const int zipped,
     28     unsigned int *version  );
     29 int
     30   get_application_version_from_zipped_file(
     31     const char* mem_file_name,
     32     const int data_size,
     33     unsigned int *version
     34   );
     35 int
     36   print_flash_descriptor_info(
     37     void
     38   );
     39 unsigned
     40   int
     41     get_num_bits_set(
     42       unsigned long *array_of_longs,
     43       unsigned int  num_longs_in_array
     44     );
     45 unsigned
     46   int
     47     is_bit_set(
     48       unsigned long *array_of_longs,
     49       unsigned int  bit_to_check
     50     );
     51 #endif /* ___UI_GENERAL_UTILS_H___ */