vb2_api.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
  2. * Use of this source code is governed by a BSD-style license that can be
  3. * found in the LICENSE file.
  4. */
  5. /* APIs between calling firmware and vboot_reference
  6. *
  7. * DO NOT INCLUDE THE HEADERS BELOW DIRECTLY! ONLY INCLUDE THIS FILE!
  8. *
  9. * Using vb2api.h as the single point of contact between calling firmware and
  10. * vboot allows subsequent refactoring of vboot (renaming of headers, etc.)
  11. * without churning other projects' source code.
  12. */
  13. #ifndef VBOOT_VB2_API_H_
  14. #define VBOOT_VB2_API_H_
  15. /* Standard APIs */
  16. #include "../2lib/include/2api.h"
  17. /* SHA library */
  18. #ifdef NEED_VB2_SHA_LIBRARY
  19. #include "../2lib/include/2sha.h"
  20. #endif
  21. /*
  22. * Coreboot should not need access to vboot2 internals. But right now it does.
  23. * At least this forces it to do so through a relatively narrow hole so vboot2
  24. * refactoring can continue.
  25. *
  26. * Please do not rip this into a wider hole, or expect this hole to continue.
  27. *
  28. * TODO: Make cleaner APIs to this stuff.
  29. */
  30. #ifdef NEED_VB20_INTERNALS
  31. #include "../2lib/include/2nvstorage_fields.h"
  32. #include "../2lib/include/2struct.h"
  33. #include "../lib20/include/vb2_struct.h"
  34. #endif
  35. #endif /* VBOOT_VB2_API_H_ */