Line | Count | Source (jump to first uncovered line) |
1 | | // This file was extracted from the TCG Published |
2 | | // Trusted Platform Module Library |
3 | | // Part 4: Supporting Routines |
4 | | // Family "2.0" |
5 | | // Level 00 Revision 01.16 |
6 | | // October 30, 2014 |
7 | | |
8 | | #include "PlatformData.h" |
9 | | // |
10 | | // |
11 | | // Functions |
12 | | // |
13 | | // _plat__PhysicalPresenceAsserted() |
14 | | // |
15 | | // Check if physical presence is signaled |
16 | | // |
17 | | // Return Value Meaning |
18 | | // |
19 | | // TRUE if physical presence is signaled |
20 | | // FALSE if physical presence is not signaled |
21 | | // |
22 | | LIB_EXPORT BOOL |
23 | | _plat__PhysicalPresenceAsserted( |
24 | | void |
25 | | ) |
26 | 0 | { |
27 | | // Do not know how to check physical presence without real hardware. |
28 | | // so always return TRUE; |
29 | 0 | return s_physicalPresence; |
30 | 0 | } |
31 | | // |
32 | | // |
33 | | // _plat__Signal_PhysicalPresenceOn() |
34 | | // |
35 | | // Signal physical presence on |
36 | | // |
37 | | LIB_EXPORT void |
38 | | _plat__Signal_PhysicalPresenceOn( |
39 | | void |
40 | | ) |
41 | 253 | { |
42 | 253 | s_physicalPresence = TRUE; |
43 | 253 | return; |
44 | 253 | } |
45 | | // |
46 | | // |
47 | | // _plat__Signal_PhysicalPresenceOff() |
48 | | // |
49 | | // Signal physical presence off |
50 | | // |
51 | | LIB_EXPORT void |
52 | | _plat__Signal_PhysicalPresenceOff( |
53 | | void |
54 | | ) |
55 | 0 | { |
56 | 0 | s_physicalPresence = FALSE; |
57 | 0 | return; |
58 | 0 | } |