summaryrefslogtreecommitdiff
path: root/firmware/stub/vboot_api_stub.c
blob: bc5f2fe99fb1c55da697d6be80ed3cfb05d709cf (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
/* Copyright (c) 2013 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 firmware-provided API functions.
 */

#include <stdint.h>

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

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

__attribute__((weak))
uint32_t VbExKeyboardRead(void)
{
	return 0;
}

__attribute__((weak))
uint32_t VbExKeyboardReadWithFlags(uint32_t *flags_ptr)
{
	return 0;
}

__attribute__((weak))
uint32_t VbExIsShutdownRequested(void)
{
	return 0;
}

__attribute__((weak))
vb2_error_t vb2ex_run_altfw(uint32_t altfw_id)
{
	return VB2_SUCCESS;
}