summaryrefslogtreecommitdiff
path: root/firmware/bdb/stub.c
blob: 58a00967c76c53011f180335dde74f117b0680ac (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
/* Copyright 2016 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.
 */

#include "bdb_api.h"
#include "bdb.h"

__attribute__((weak))
uint32_t vbe_get_vboot_register(enum vboot_register type)
{
	return 0;
}

__attribute__((weak))
void vbe_set_vboot_register(enum vboot_register type, uint32_t val)
{
	return;
}

__attribute__((weak))
void vbe_reset(void)
{
	return;
}

__attribute__((weak))
int vbe_read_nvm(enum nvm_type type, uint8_t *buf, uint32_t size)
{
	return BDB_ERROR_NOT_IMPLEMENTED;
}

__attribute__((weak))
int vbe_write_nvm(enum nvm_type type, void *buf, uint32_t size)
{
	return BDB_ERROR_NOT_IMPLEMENTED;
}