nvram_test.h
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*************************************************************************
*
* 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