1 | /*! |
2 | * @header |
3 | * Categorized AP chip environments. These are now defunct. |
4 | */ |
5 | #ifndef __IMG4_CHIP_AP_CATEGORY_H |
6 | #define __IMG4_CHIP_AP_CATEGORY_H |
7 | |
8 | #ifndef __IMG4_INDIRECT |
9 | #error "Please #include <img4/firmware.h> instead of this file directly" |
10 | #endif // __IMG4_INDIRECT |
11 | |
12 | __BEGIN_DECLS |
13 | OS_ASSUME_NONNULL_BEGIN |
14 | OS_ASSUME_PTR_ABI_SINGLE_BEGIN |
15 | |
16 | /*! |
17 | * @const IMG4_CHIP_AP_CATEGORY_FF02 |
18 | * The Application Processor on an Intel Mac product. |
19 | * |
20 | * This chip environment represents one unique instance of such a chip, though |
21 | * the uniqueness is not enforced by a secure boot chain with anti-replay |
22 | * properties, and therefore this chip environment should be considered as |
23 | * equivalent to a global signing environment. |
24 | */ |
25 | #if !XNU_KERNEL_PRIVATE |
26 | IMG4_API_AVAILABLE_20210305 |
27 | OS_EXPORT |
28 | const img4_chip_t _img4_chip_ap_category_ff02; |
29 | #define IMG4_CHIP_AP_CATEGORY_FF02 (&_img4_chip_ap_category_ff02) |
30 | #else |
31 | #define IMG4_CHIP_AP_CATEGORY_FF02 (img4if->i4if_v12.chip_ap_category_ff02) |
32 | #endif |
33 | |
34 | /*! |
35 | * @const IMG4_CHIP_AP_CATEGORY_FF03 |
36 | * An Intel x86 processor whose chain of trust is rooted in an instance of a |
37 | * {@link IMG4_CHIP_AP_SHA2_384} chip. |
38 | * |
39 | * This chip environment represents one unique instance of such a chip pair. |
40 | */ |
41 | #if !XNU_KERNEL_PRIVATE |
42 | IMG4_API_AVAILABLE_20210305 |
43 | OS_EXPORT |
44 | const img4_chip_t _img4_chip_ap_category_ff03; |
45 | #define IMG4_CHIP_AP_CATEGORY_FF03 (&_img4_chip_ap_category_ff03) |
46 | #else |
47 | #define IMG4_CHIP_AP_CATEGORY_FF03 (img4if->i4if_v12.chip_ap_category_ff03) |
48 | #endif |
49 | |
50 | /*! |
51 | * @const IMG4_CHIP_AP_CATEGORY_FF04_F0 |
52 | * The Application Processor of an Apple ARM SoC in an Apple Silicon Mac |
53 | * product. |
54 | * |
55 | * This chip environment represents one unique instance of such a chip. |
56 | */ |
57 | #if !XNU_KERNEL_PRIVATE |
58 | IMG4_API_AVAILABLE_20210305 |
59 | OS_EXPORT |
60 | const img4_chip_t _img4_chip_ap_category_ff04_f0; |
61 | #define IMG4_CHIP_AP_CATEGORY_FF04_F0 (&_img4_chip_ap_category_ff04_f0) |
62 | #else |
63 | #define IMG4_CHIP_AP_CATEGORY_FF04_F0 \ |
64 | (img4if->i4if_v12.chip_ap_category_ff04_f0) |
65 | #endif |
66 | |
67 | /*! |
68 | * @const IMG4_CHIP_AP_CATEGORY_FF04_F1 |
69 | * The Application Processor of an Apple ARM SoC in an iPhone, iPad, or iPod |
70 | * touch product. |
71 | * |
72 | * This chip environment represents one unique instance of such a chip. |
73 | */ |
74 | #if !XNU_KERNEL_PRIVATE |
75 | IMG4_API_AVAILABLE_20210305 |
76 | OS_EXPORT |
77 | const img4_chip_t _img4_chip_ap_category_ff04_f1; |
78 | #define IMG4_CHIP_AP_CATEGORY_FF04_F1 (&_img4_chip_ap_category_ff04_f1) |
79 | #else |
80 | #define IMG4_CHIP_AP_CATEGORY_FF04_F1 \ |
81 | (img4if->i4if_v12.chip_ap_category_ff04_f1) |
82 | #endif |
83 | |
84 | /*! |
85 | * @const IMG4_CHIP_AP_CATEGORY_FF04_F2 |
86 | * The Application Processor of an Apple ARM SoC in an watch product. |
87 | * |
88 | * This chip environment represents one unique instance of such a chip. |
89 | */ |
90 | #if !XNU_KERNEL_PRIVATE |
91 | IMG4_API_AVAILABLE_20210305 |
92 | OS_EXPORT |
93 | const img4_chip_t _img4_chip_ap_category_ff04_f2; |
94 | #define IMG4_CHIP_AP_CATEGORY_FF04_F2 (&_img4_chip_ap_category_ff04_f2) |
95 | #else |
96 | #define IMG4_CHIP_AP_CATEGORY_FF04_F2 \ |
97 | (img4if->i4if_v12.chip_ap_category_ff04_f2) |
98 | #endif |
99 | |
100 | /*! |
101 | * @const IMG4_CHIP_AP_CATEGORY_FF04_F3 |
102 | * The Application Processor of an Apple ARM SoC in an tv or HomePod product. |
103 | * |
104 | * This chip environment represents one unique instance of such a chip. |
105 | */ |
106 | #if !XNU_KERNEL_PRIVATE |
107 | IMG4_API_AVAILABLE_20210305 |
108 | OS_EXPORT |
109 | const img4_chip_t _img4_chip_ap_category_ff04_f3; |
110 | #define IMG4_CHIP_AP_CATEGORY_FF04_F3 (&_img4_chip_ap_category_ff04_f3) |
111 | #else |
112 | #define IMG4_CHIP_AP_CATEGORY_FF04_F3 \ |
113 | (img4if->i4if_v12.chip_ap_category_ff04_f3) |
114 | #endif |
115 | |
116 | OS_ASSUME_PTR_ABI_SINGLE_END |
117 | OS_ASSUME_NONNULL_END |
118 | __END_DECLS |
119 | |
120 | #endif // __IMG4_CHIP_AP_CATEGORY_H |
121 | |