xref: /titanic_50/usr/src/uts/common/io/tpm/tpm_duration.h (revision 0a1278f26ea4b7c8c0285d4f2d6c5b680904aa01)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef _TPM_DURATION_H_
27 #define	_TPM_DURATION_H_
28 
29 typedef enum {
30 	TPM_SHORT,		/* 0 */
31 	TPM_MEDIUM,		/* 1 */
32 	TPM_LONG,		/* 2 */
33 	TPM_UNDEFINED,		/* 3 */
34 } TPM_DURATION_T;
35 
36 /* TSC Ordinals */
37 static const TPM_DURATION_T tpm_ords_duration[TPM_ORDINAL_MAX] = {
38 	TPM_UNDEFINED,		/* 0 */
39 	TPM_UNDEFINED,
40 	TPM_UNDEFINED,
41 	TPM_UNDEFINED,
42 	TPM_UNDEFINED,
43 	TPM_UNDEFINED,		/* 5 */
44 	TPM_UNDEFINED,
45 	TPM_UNDEFINED,
46 	TPM_UNDEFINED,
47 	TPM_UNDEFINED,
48 	TPM_SHORT,		/* 10 */
49 	TPM_SHORT,
50 	TPM_MEDIUM,
51 	TPM_LONG,
52 	TPM_LONG,
53 	TPM_MEDIUM,
54 	TPM_SHORT,
55 	TPM_SHORT,
56 	TPM_MEDIUM,
57 	TPM_LONG,
58 	TPM_SHORT,		/* 20 */
59 	TPM_SHORT,
60 	TPM_MEDIUM,
61 	TPM_MEDIUM,
62 	TPM_MEDIUM,
63 	TPM_SHORT,		/* 25 */
64 	TPM_SHORT,
65 	TPM_MEDIUM,
66 	TPM_SHORT,
67 	TPM_SHORT,
68 	TPM_MEDIUM,		/* 30 */
69 	TPM_LONG,
70 	TPM_MEDIUM,
71 	TPM_SHORT,
72 	TPM_SHORT,
73 	TPM_SHORT,		/* 35 */
74 	TPM_MEDIUM,
75 	TPM_MEDIUM,
76 	TPM_UNDEFINED,
77 	TPM_UNDEFINED,
78 	TPM_MEDIUM,		/* 40 */
79 	TPM_LONG,
80 	TPM_MEDIUM,
81 	TPM_SHORT,
82 	TPM_SHORT,
83 	TPM_SHORT,		/* 45 */
84 	TPM_SHORT,
85 	TPM_SHORT,
86 	TPM_SHORT,
87 	TPM_LONG,
88 	TPM_MEDIUM,		/* 50 */
89 	TPM_MEDIUM,
90 	TPM_UNDEFINED,
91 	TPM_UNDEFINED,
92 	TPM_UNDEFINED,
93 	TPM_UNDEFINED,		/* 55 */
94 	TPM_UNDEFINED,
95 	TPM_UNDEFINED,
96 	TPM_UNDEFINED,
97 	TPM_UNDEFINED,
98 	TPM_MEDIUM,		/* 60 */
99 	TPM_MEDIUM,
100 	TPM_MEDIUM,
101 	TPM_SHORT,
102 	TPM_SHORT,
103 	TPM_MEDIUM,		/* 65 */
104 	TPM_UNDEFINED,
105 	TPM_UNDEFINED,
106 	TPM_UNDEFINED,
107 	TPM_UNDEFINED,
108 	TPM_SHORT,		/* 70 */
109 	TPM_SHORT,
110 	TPM_UNDEFINED,
111 	TPM_UNDEFINED,
112 	TPM_UNDEFINED,
113 	TPM_UNDEFINED,		/* 75 */
114 	TPM_UNDEFINED,
115 	TPM_UNDEFINED,
116 	TPM_UNDEFINED,
117 	TPM_UNDEFINED,
118 	TPM_LONG,		/* 80 */
119 	TPM_UNDEFINED,
120 	TPM_MEDIUM,
121 	TPM_LONG,
122 	TPM_SHORT,
123 	TPM_UNDEFINED,		/* 85 */
124 	TPM_UNDEFINED,
125 	TPM_UNDEFINED,
126 	TPM_UNDEFINED,
127 	TPM_UNDEFINED,
128 	TPM_SHORT,		/* 90 */
129 	TPM_LONG,
130 	TPM_SHORT,
131 	TPM_SHORT,
132 	TPM_SHORT,
133 	TPM_UNDEFINED,		/* 95 */
134 	TPM_UNDEFINED,
135 	TPM_UNDEFINED,
136 	TPM_UNDEFINED,
137 	TPM_UNDEFINED,
138 	TPM_MEDIUM,		/* 100 */
139 	TPM_SHORT,
140 	TPM_SHORT,
141 	TPM_UNDEFINED,
142 	TPM_UNDEFINED,
143 	TPM_UNDEFINED,		/* 105 */
144 	TPM_UNDEFINED,
145 	TPM_UNDEFINED,
146 	TPM_UNDEFINED,
147 	TPM_UNDEFINED,
148 	TPM_SHORT,		/* 110 */
149 	TPM_SHORT,
150 	TPM_SHORT,
151 	TPM_SHORT,
152 	TPM_SHORT,
153 	TPM_SHORT,		/* 115 */
154 	TPM_SHORT,
155 	TPM_SHORT,
156 	TPM_UNDEFINED,
157 	TPM_UNDEFINED,
158 	TPM_LONG,		/* 120 */
159 	TPM_LONG,
160 	TPM_MEDIUM,
161 	TPM_UNDEFINED,
162 	TPM_SHORT,
163 	TPM_SHORT,		/* 125 */
164 	TPM_SHORT,
165 	TPM_LONG,
166 	TPM_SHORT,
167 	TPM_SHORT,
168 	TPM_SHORT,		/* 130 */
169 	TPM_MEDIUM,
170 	TPM_UNDEFINED,
171 	TPM_SHORT,
172 	TPM_MEDIUM,
173 	TPM_UNDEFINED,		/* 135 */
174 	TPM_UNDEFINED,
175 	TPM_UNDEFINED,
176 	TPM_UNDEFINED,
177 	TPM_UNDEFINED,
178 	TPM_SHORT,		/* 140 */
179 	TPM_SHORT,
180 	TPM_UNDEFINED,
181 	TPM_UNDEFINED,
182 	TPM_UNDEFINED,
183 	TPM_UNDEFINED,		/* 145 */
184 	TPM_UNDEFINED,
185 	TPM_UNDEFINED,
186 	TPM_UNDEFINED,
187 	TPM_UNDEFINED,
188 	TPM_SHORT,		/* 150 */
189 	TPM_MEDIUM,
190 	TPM_MEDIUM,
191 	TPM_SHORT,
192 	TPM_SHORT,
193 	TPM_UNDEFINED,		/* 155 */
194 	TPM_UNDEFINED,
195 	TPM_UNDEFINED,
196 	TPM_UNDEFINED,
197 	TPM_UNDEFINED,
198 	TPM_SHORT,		/* 160 */
199 	TPM_SHORT,
200 	TPM_SHORT,
201 	TPM_SHORT,
202 	TPM_UNDEFINED,
203 	TPM_UNDEFINED,		/* 165 */
204 	TPM_UNDEFINED,
205 	TPM_UNDEFINED,
206 	TPM_UNDEFINED,
207 	TPM_UNDEFINED,
208 	TPM_LONG,		/* 170 */
209 	TPM_UNDEFINED,
210 	TPM_UNDEFINED,
211 	TPM_UNDEFINED,
212 	TPM_UNDEFINED,
213 	TPM_UNDEFINED,		/* 175 */
214 	TPM_UNDEFINED,
215 	TPM_UNDEFINED,
216 	TPM_UNDEFINED,
217 	TPM_UNDEFINED,
218 	TPM_MEDIUM,		/* 180 */
219 	TPM_SHORT,
220 	TPM_MEDIUM,
221 	TPM_MEDIUM,
222 	TPM_MEDIUM,
223 	TPM_MEDIUM,		/* 185 */
224 	TPM_SHORT,
225 	TPM_UNDEFINED,
226 	TPM_UNDEFINED,
227 	TPM_UNDEFINED,
228 	TPM_UNDEFINED,		/* 190 */
229 	TPM_UNDEFINED,
230 	TPM_UNDEFINED,
231 	TPM_UNDEFINED,
232 	TPM_UNDEFINED,
233 	TPM_UNDEFINED,		/* 195 */
234 	TPM_UNDEFINED,
235 	TPM_UNDEFINED,
236 	TPM_UNDEFINED,
237 	TPM_UNDEFINED,
238 	TPM_SHORT,		/* 200 */
239 	TPM_UNDEFINED,
240 	TPM_UNDEFINED,
241 	TPM_UNDEFINED,
242 	TPM_SHORT,
243 	TPM_SHORT,		/* 205 */
244 	TPM_SHORT,
245 	TPM_SHORT,
246 	TPM_SHORT,
247 	TPM_SHORT,
248 	TPM_MEDIUM,		/* 210 */
249 	TPM_UNDEFINED,
250 	TPM_MEDIUM,
251 	TPM_MEDIUM,
252 	TPM_MEDIUM,
253 	TPM_UNDEFINED,		/* 215 */
254 	TPM_MEDIUM,
255 	TPM_UNDEFINED,
256 	TPM_UNDEFINED,
257 	TPM_SHORT,
258 	TPM_SHORT,		/* 220 */
259 	TPM_SHORT,
260 	TPM_SHORT,
261 	TPM_SHORT,
262 	TPM_SHORT,
263 	TPM_UNDEFINED,		/* 225 */
264 	TPM_UNDEFINED,
265 	TPM_UNDEFINED,
266 	TPM_UNDEFINED,
267 	TPM_UNDEFINED,
268 	TPM_SHORT,		/* 230 */
269 	TPM_LONG,
270 	TPM_MEDIUM,
271 	TPM_UNDEFINED,
272 	TPM_UNDEFINED,
273 	TPM_UNDEFINED,		/* 235 */
274 	TPM_UNDEFINED,
275 	TPM_UNDEFINED,
276 	TPM_UNDEFINED,
277 	TPM_UNDEFINED,
278 	TPM_SHORT,		/* 240 */
279 	TPM_UNDEFINED,
280 	TPM_MEDIUM,
281 };
282 
283 /* TPM connection ordinals */
284 static const uint8_t tsc_ords_duration[TSC_ORDINAL_MAX] = {
285 	TPM_UNDEFINED,		/* 0 */
286 	TPM_UNDEFINED,
287 	TPM_UNDEFINED,
288 	TPM_UNDEFINED,
289 	TPM_UNDEFINED,
290 	TPM_UNDEFINED,		/* 5 */
291 	TPM_UNDEFINED,
292 	TPM_UNDEFINED,
293 	TPM_UNDEFINED,
294 	TPM_UNDEFINED,
295 	TPM_SHORT,		/* 10 */
296 	TPM_SHORT,
297 };
298 
299 #endif /* _TPM_DURATION_H_ */
300