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"
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 }
static int acpi_is_wakeup_s3(void)
Definition: acpi.h:9
int display_init_required(void)
Definition: bootmode.c:22
@ CONFIG
Definition: dsi_common.h:201
void * locate_vbt(size_t *vbt_size)
Definition: opregion.c:25
void * vbt_get(void)
Definition: vbt.c:9
#define NULL
Definition: stddef.h:19