xref: /aosp_15_r20/external/vboot_reference/firmware/stub/vboot_api_stub_disk.c (revision 8617a60d3594060b7ecbd21bc622a7c14f3cf2bc)
1 /* Copyright 2011 The ChromiumOS Authors
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 
8 #include <stdarg.h>
9 #include <stdint.h>
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <string.h>
13 #include <sys/time.h>
14 
15 #include "2common.h"
16 #include "vboot_api.h"
17 
18 __attribute__((weak))
VbExDiskRead(vb2ex_disk_handle_t handle,uint64_t lba_start,uint64_t lba_count,void * buffer)19 vb2_error_t VbExDiskRead(vb2ex_disk_handle_t handle, uint64_t lba_start,
20 			 uint64_t lba_count, void* buffer)
21 {
22 	return VB2_SUCCESS;
23 }
24 
25 __attribute__((weak))
VbExDiskWrite(vb2ex_disk_handle_t handle,uint64_t lba_start,uint64_t lba_count,const void * buffer)26 vb2_error_t VbExDiskWrite(vb2ex_disk_handle_t handle, uint64_t lba_start,
27 			  uint64_t lba_count, const void* buffer)
28 {
29 	return VB2_SUCCESS;
30 }
31