summaryrefslogtreecommitdiff
path: root/firmware/bdb/stub.c
blob: 4af9126ceaa9b391fe620ff70f1b7c3b5d420d4d (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
47
48
49
50
51
/* 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;
}

__attribute__((weak))
int vbe_aes256_encrypt(const uint8_t *msg, uint32_t len, const uint8_t *key,
		       uint8_t *out)
{
	return BDB_ERROR_NOT_IMPLEMENTED;
}

__attribute__((weak))
int vbe_aes256_decrypt(const uint8_t *msg, uint32_t len, const uint8_t *key,
		       uint8_t *out)
{
	return BDB_ERROR_NOT_IMPLEMENTED;
}