efivars.h 600 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2015 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. #define EFIVARS_NON_VOLATILE 0x00000001
  11. #define EFIVARS_BOOTSERVICE_ACCESS 0x00000002
  12. #define EFIVARS_RUNTIME_ACCESS 0x00000004
  13. #define EFIVARS_HARDWARE_ERROR_RECORD 0x00000008
  14. #define EFIVARS_AUTHENTICATED_WRITE_ACCESS 0x00000010
  15. int efivars_read(const char *name, uint32_t *attributes,
  16. void *data, size_t size);
  17. int efivars_write(const char *name, uint32_t attributes,
  18. const void *data, size_t size);