Debian Codegraph @

3rdparty/vboot/firmware/stub/vboot_api_stub_disk.c

raw symbols SCIP
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))
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))
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 }