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

diag_sand_mbist.h (1068B)


      1 /**
      2  * \file diag_sand_mbist.h
      3  *
      4  * Misc. utilities for shell commands
      5  */
      6 /*
      7  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      8  * 
      9  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
     10  */
     11 
     12 #ifndef DIAG_SAND_MBIST_H_INCLUDED
     13 #define DIAG_SAND_MBIST_H_INCLUDED
     14 
     15 #include <soc/sand/sand_mbist.h>
     16 
     17 extern const char cmd_sand_mbist_usage[];
     18 extern const char cmd_sand_mbist_desc[];
     19 
     20 extern sh_sand_man_t sh_sand_mbist_man;
     21 extern sh_sand_cmd_t sh_sand_mbist_cmds[];
     22 
     23 cmd_result_t cmd_sand_mbist(
     24     int unit,
     25     args_t * a);
     26 
     27 typedef struct diag_sand_mbist_info_s
     28 {
     29     sand_mbist_device_t mbist_device;
     30     sand_mbist_script_t *script;
     31     uint8 *file_buf;
     32     uint8 skip_errors;
     33 } diag_sand_mbist_info_t;
     34 int diag_sand_mbist_file_load(
     35     int unit,
     36     char *fname);
     37 int diag_sand_mbist_run(
     38     const int unit);
     39 int diag_sand_mbist_write_command(
     40     int unit,
     41     uint32 write_command);
     42 int diag_sand_mbist_stop_on_error(
     43     int unit,
     44     int stop_on_error);
     45 
     46 #endif /* */