xref: /aosp_15_r20/external/vboot_reference/firmware/include/vb2_internals_please_do_not_use.h (revision 8617a60d3594060b7ecbd21bc622a7c14f3cf2bc)
1 /* Copyright 2020 The ChromiumOS Authors
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  *
5  * Allows the caller to peek into vboot2 data structures, by including a
6  * specific set of internal header files.  Including this header means the
7  * caller is broken and should be fixed.
8  *
9  * TODO(chromium:957880): The existence of this header is a bug, and it should
10  * be removed when it is no longer used.
11  */
12 
13 #ifndef VBOOT_REFERENCE_VB2_INTERNALS_PLEASE_DO_NOT_USE_H_
14 #define VBOOT_REFERENCE_VB2_INTERNALS_PLEASE_DO_NOT_USE_H_
15 
16 /*
17  * Coreboot should not need access to vboot2 internals.  But right now it does.
18  * At least this forces it to do so through a relatively narrow hole so vboot2
19  * refactoring can continue.
20  *
21  * Please do not rip this into a wider hole, or expect this hole to continue.
22  */
23 #include "../2lib/include/2misc.h"  /* for vb2_get_sd() */
24 #include "../2lib/include/2struct.h"  /* for vb2_shared_data struct */
25 
26 #endif  /* VBOOT_REFERENCE_VB2_INTERNALS_PLEASE_DO_NOT_USE_H_ */
27