nvram_test.h 1.05 KB

/*************************************************************************
 *
 *  File: nvram_test.h
 *
 *  This file contains definitions for all nvram tests
 *
 */
#ifndef _NVRAM_TEST_H_
#define _NVRAM_TEST_H_

#include "mi_test.h"

/*
 * Tests take no parameters and return 0 for PASS, -1 for FAIL
 */
/*
int nms_ready(int ctrl_reg);
*/
int nms_store_test(int sysclk_scale, int ctrl_reg, int size, int test_num);
int nms_store_test_interrupt(int sysclk_scale, int ctrl_reg, int size);
int nms_keep_mode_test(int sysclk_scale, int ctrl_reg, int size);
int nms_compare_test(int sysclk_scale, int ctrl_reg);
int nms_compare_test_negative(int sysclk_scale, int ctrl_reg, int size);

int nms_recall_auto_margin_test(int sysclk_scale, int ctrl_reg, int size);

int nv_store_recall_test(int sysclk_scale, int ctrl_reg, int size);
int nv_v2_reset_test(int *array);
int nv_recall_test(int sysclk_scale, int ctrl_reg);
int nv_compare_test(int sysclk_scale, int ctrl_reg, int mrcl, int tecc, int bias);

/*
 * Support routines
 */
void print_ctrl(FILE *f, int ctrl_reg);


#endif