summaryrefslogtreecommitdiff
path: root/firmware/stub/vboot_api_stub_disk.c
blob: f377b3ae99e758d90c930a626aa6cbedb910a8ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * Stub implementations of disk APIs.
 */

#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>

#include "2common.h"
#include "vboot_api.h"


vb2_error_t VbExDiskGetInfo(VbDiskInfo** infos_ptr, uint32_t* count,
			    uint32_t disk_flags)
{
	*infos_ptr = NULL;
	*count = 0;
	return VBERROR_SUCCESS;
}


vb2_error_t VbExDiskFreeInfo(VbDiskInfo* infos_ptr,
			     VbExDiskHandle_t preserve_handle)
{
	return VBERROR_SUCCESS;
}


vb2_error_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start,
			 uint64_t lba_count, void* buffer)
{
	return VBERROR_SUCCESS;
}


vb2_error_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start,
			  uint64_t lba_count, const void* buffer)
{
	return VBERROR_SUCCESS;
}