coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vbt.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
acpi/acpi.h
>
4
#include <
bootmode.h
>
5
6
#include "
vbt.h
"
7
#include <
drivers/intel/gma/opregion.h
>
8
9
void
*
vbt_get
(
void
)
10
{
11
if
(!
CONFIG
(RUN_FSP_GOP))
12
return
NULL
;
13
14
/* Normal mode and S3 resume path PEIM GFX init is not needed.
15
* Passing NULL as VBT will not make PEIM GFX to execute. */
16
if
(
acpi_is_wakeup_s3
())
17
return
NULL
;
18
if
(!
display_init_required
())
19
return
NULL
;
20
return
locate_vbt
(
NULL
);
21
}
acpi_is_wakeup_s3
static int acpi_is_wakeup_s3(void)
Definition:
acpi.h:9
bootmode.h
display_init_required
int display_init_required(void)
Definition:
bootmode.c:22
CONFIG
@ CONFIG
Definition:
dsi_common.h:201
acpi.h
locate_vbt
void * locate_vbt(size_t *vbt_size)
Definition:
opregion.c:25
opregion.h
vbt_get
void * vbt_get(void)
Definition:
vbt.c:9
NULL
#define NULL
Definition:
stddef.h:19
vbt.h
src
soc
intel
common
vbt.c
Generated by
1.9.1