Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / env / common / vera / include / ZeroInDefines.vri
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: ZeroInDefines.vri
4// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
5// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
6//
7// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8//
9// This program is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; version 2 of the License.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21//
22// For the avoidance of doubt, and except that if any non-GPL license
23// choice is available it will apply instead, Sun elects to use only
24// the General Public License version 2 (GPLv2) at this time for any
25// software where a choice of GPL license versions is made
26// available with the language indicating that GPLv2 or any later version
27// may be used, or where a choice of which version of the GPL is applied is
28// otherwise unspecified.
29//
30// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
31// CA 95054 USA or visit www.sun.com if you need additional information or
32// have any questions.
33//
34// ========== Copyright Header End ============================================
35#ifndef ZERO_IN_DEFINES_VRI
36#define ZERO_IN_DEFINES_VRI
37
38enum zin_status =
39 ZIN_STATUS_SUCCESS = 0,
40 ZIN_STATUS_INCORRECT_CHECKER_IDENTIFIER = 1,
41 ZIN_STATUS_NOT_READY_FOR_ZIN_CALLS = 2,
42 ZIN_STATUS_ILLEGAL_NULL_PARAMS = 3,
43 ZIN_STATUS_NO_CHECKERS_OF_GIVEN_TYPE = 4,
44 ZIN_STATUS_NO_CHECKER_OF_GIVEN_NAME = 5,
45 ZIN_STATUS_NO_INFO_PORT_WITH_GIVEN_NAME = 6,
46 ZIN_STATUS_UNSUPPORTED_INFO_TYPE = 7,
47 ZIN_STATUS_INCORRECT_DB_NAME = 8,
48 ZIN_STATUS_CORRUPTED_DB = 9,
49 ZIN_STATUS_INCORRECT_DB_HANDLE = 10,
50 ZIN_STATUS_ILLEGAL_VALUES_FOR_CACTION = 11,
51 ZIN_STATUS_UNKNOWN;
52
53enum zin_checker_action =
54 ZIN_CHECKER_ACTION_NONE = 0,
55 ZIN_CHECKER_ACTION_STOP = 1,
56 ZIN_CHECKER_ACTION_FINISH = 2;
57
58#define ZIN_NO_SEVERITY (-1)
59
60//typedef unsigned long zin_db_handle;
61// Will handle unsigned long as bit[63:0]
62
63extern "C" function string
64 zin_get_status_str(integer zstat);
65
66extern "C" function integer
67 zin_checker_info(string checker_type,
68 string checker_name,
69 string port_name,
70 var integer low_val,
71 var integer high_val);
72
73extern "C" function integer
74 zin_checker_turn_on(string checker_type,
75 string checker_name,
76 string module_name,
77 integer severity);
78
79extern "C" function integer
80 zin_checker_turn_off(string checker_type,
81 string checker_name,
82 string module_name,
83 integer severity);
84
85extern "C" function integer
86 zin_checker_firing_count(string checker_type,
87 string checker_name,
88 string checker_check,
89 string module_name,
90 integer severity,
91 var integer firing_count);
92
93extern "C" function integer
94 zin_checker_firing_modifier(string firing_modifier);
95
96extern "C" function integer
97 zin_checker_firing_action(integer severity,
98 integer caction,
99 integer firing_limit);
100// Will handle unsigned long as bit[63:0]
101extern "C" function integer
102 zin_database_open(string db_name,
103 var bit [63:0] db_handle);
104
105// Will handle unsigned long as bit[63:0]
106extern "C" function integer
107 zin_database_close(bit [63:0] db_handle);
108
109// Will handle unsigned long as bit[63:0]
110extern "C" function integer
111 zin_database_checker_info(bit[63:0] db_handle,
112 string checker_type,
113 string checker_name,
114 string port_name,
115 var integer low_value,
116 var integer high_value);
117
118// Will handle unsigned long as bit[63:0]
119extern "C" function integer
120 zin_database_checker_firings(bit[63:0] db_handle,
121 string checker_type,
122 string checker_name,
123 string check_name,
124 string module_name,
125 integer severity,
126 var integer firing_count);
127
128
129#endif