blob: e23b54a8f801e8bc67cfc3536a6005dc462128dd [file] [log] [blame]
Randall Spangler32a65262011-06-27 10:49:11 -07001/* 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
Randall Spangler32a65262011-06-27 10:49:11 -07008#include <stdarg.h>
Randall Spangler559a1102016-10-18 14:41:22 -07009#include <stdint.h>
Randall Spangler32a65262011-06-27 10:49:11 -070010#include <stdio.h>
11#include <stdlib.h>
12#include <string.h>
13#include <sys/time.h>
14
15#include "vboot_api.h"
16
Randall Spangler32a65262011-06-27 10:49:11 -070017
18VbError_t VbExDiskGetInfo(VbDiskInfo** infos_ptr, uint32_t* count,
Randall Spanglerfb267152016-10-11 15:28:16 -070019 uint32_t disk_flags)
20{
21 *infos_ptr = NULL;
22 *count = 0;
23 return VBERROR_SUCCESS;
Randall Spangler32a65262011-06-27 10:49:11 -070024}
25
26
27VbError_t VbExDiskFreeInfo(VbDiskInfo* infos_ptr,
Randall Spanglerfb267152016-10-11 15:28:16 -070028 VbExDiskHandle_t preserve_handle)
29{
30 return VBERROR_SUCCESS;
Randall Spangler32a65262011-06-27 10:49:11 -070031}
32
33
34VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start,
Randall Spanglerfb267152016-10-11 15:28:16 -070035 uint64_t lba_count, void* buffer)
36{
37 return VBERROR_SUCCESS;
Randall Spangler32a65262011-06-27 10:49:11 -070038}
39
40
41VbError_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start,
Randall Spanglerfb267152016-10-11 15:28:16 -070042 uint64_t lba_count, const void* buffer)
43{
44 return VBERROR_SUCCESS;
Randall Spangler32a65262011-06-27 10:49:11 -070045}