]>
Commit | Line | Data |
---|---|---|
051dfbd6 AS |
1 | /* |
2 | * Copyright (C) 2011 Sansar Choinyambuu | |
19ef2aec TB |
3 | * |
4 | * Copyright (C) secunet Security Networks AG | |
051dfbd6 AS |
5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License as published by the | |
8 | * Free Software Foundation; either version 2 of the License, or (at your | |
9 | * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | * for more details. | |
15 | */ | |
16 | ||
17 | /** | |
18 | * @defgroup pts_tcg_comp_func_name pts_tcg_comp_func_name | |
19 | * @{ @ingroup pts | |
20 | */ | |
21 | ||
22 | #ifndef PTS_TCG_COMP_FUNC_NAME_H_ | |
23 | #define PTS_TCG_COMP_FUNC_NAME_H_ | |
24 | ||
25 | typedef enum pts_tcg_qualifier_type_t pts_tcg_qualifier_type_t; | |
26 | typedef enum pts_tcg_comp_func_name_t pts_tcp_comp_func_name_t; | |
27 | ||
28 | #include <library.h> | |
29 | ||
30 | /** | |
31 | * PTS Component Functional Name Qualifier Flags for the TCG namespace | |
32 | * see section 5.2 of PTS Protocol: Binding to TNC IF-M Specification | |
b9949e98 | 33 | * |
051dfbd6 AS |
34 | * 0 1 2 3 4 5 |
35 | * +-+-+-+-+-+-+ | |
36 | * |K|S| Type | | |
37 | * +-+-+-+-+-+-+ | |
38 | */ | |
39 | #define PTS_TCG_QUALIFIER_FLAG_KERNEL (1<<5) | |
40 | #define PTS_TCG_QUALIFIER_FLAG_SUB (1<<4) | |
41 | ||
42 | extern char pts_tcg_qualifier_flag_names[]; | |
43 | ||
44 | /** | |
45 | * Size of the PTS Component Functional Name Qualifier Type field | |
46 | */ | |
47 | #define PTS_TCG_QUALIFIER_TYPE_SIZE 4 | |
48 | ||
49 | /** | |
50 | * PTS Component Functional Name Qualifier Types for the TCG namespace | |
51 | * see section 5.2 of PTS Protocol: Binding to TNC IF-M Specification | |
52 | */ | |
53 | enum pts_tcg_qualifier_type_t { | |
54 | /** Unknown */ | |
55 | PTS_TCG_QUALIFIER_TYPE_UNKNOWN = 0x0, | |
56 | /** Trusted Platform */ | |
57 | PTS_TCG_QUALIFIER_TYPE_TRUSTED = 0x1, | |
58 | /** Operating System */ | |
59 | PTS_TCG_QUALIFIER_TYPE_OS = 0x2, | |
60 | /** Graphical User Interface */ | |
61 | PTS_TCG_QUALIFIER_TYPE_GUI = 0x3, | |
62 | /** Application */ | |
63 | PTS_TCG_QUALIFIER_TYPE_APP = 0x4, | |
64 | /** Networking */ | |
65 | PTS_TCG_QUALIFIER_TYPE_NET = 0x5, | |
66 | /** Library */ | |
67 | PTS_TCG_QUALIFIER_TYPE_LIB = 0x6, | |
68 | /** TNC Defined Component */ | |
69 | PTS_TCG_QUALIFIER_TYPE_TNC = 0x7, | |
70 | /** All matching Components */ | |
71 | PTS_TCG_QUALIFIER_TYPE_ALL = 0xF, | |
72 | }; | |
73 | ||
74 | extern enum_name_t *pts_tcg_qualifier_type_names; | |
75 | ||
76 | /** | |
77 | * PTS Component Functional Name Binary Enumeration for the TCG namespace | |
78 | * see section 5.3 of PTS Protocol: Binding to TNC IF-M Specification | |
79 | */ | |
80 | enum pts_tcg_comp_func_name_t { | |
81 | /** Ignore */ | |
82 | PTS_TCG_COMP_FUNC_NAME_IGNORE = 0x0000, | |
83 | /** CRTM */ | |
84 | PTS_TCG_COMP_FUNC_NAME_CRTM = 0x0001, | |
85 | /** BIOS */ | |
86 | PTS_TCG_COMP_FUNC_NAME_BIOS = 0x0002, | |
87 | /** Platform Extensions */ | |
88 | PTS_TCG_COMP_FUNC_NAME_PLATFORM_EXT = 0x0003, | |
89 | /** Motherboard Firmware */ | |
90 | PTS_TCG_COMP_FUNC_NAME_BOARD = 0x0004, | |
91 | /** Initial Program Loader */ | |
92 | PTS_TCG_COMP_FUNC_NAME_INIT_LOADER = 0x0005, | |
93 | /** Option ROMs */ | |
94 | PTS_TCG_COMP_FUNC_NAME_OPT_ROMS = 0x0006, | |
95 | }; | |
96 | ||
97 | extern enum_name_t *pts_tcg_comp_func_names; | |
98 | ||
99 | #endif /** PTS_TCG_COMP_FUNC_NAME_H_ @}*/ |