vboot_api_stub_disk.c 1003 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Copyright (c) 2011 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. * Stub implementations of disk APIs.
  6. */
  7. #include <stdarg.h>
  8. #include <stdint.h>
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <string.h>
  12. #include <sys/time.h>
  13. #include "vboot_api.h"
  14. VbError_t VbExDiskGetInfo(VbDiskInfo** infos_ptr, uint32_t* count,
  15. uint32_t disk_flags)
  16. {
  17. *infos_ptr = NULL;
  18. *count = 0;
  19. return VBERROR_SUCCESS;
  20. }
  21. VbError_t VbExDiskFreeInfo(VbDiskInfo* infos_ptr,
  22. VbExDiskHandle_t preserve_handle)
  23. {
  24. return VBERROR_SUCCESS;
  25. }
  26. VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start,
  27. uint64_t lba_count, void* buffer)
  28. {
  29. return VBERROR_SUCCESS;
  30. }
  31. VbError_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start,
  32. uint64_t lba_count, const void* buffer)
  33. {
  34. return VBERROR_SUCCESS;
  35. }