coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
cpu/x86/smm.h
>
4
#include <
device/device.h
>
5
#include <
drivers/intel/gma/int15.h
>
6
#include <
acpi/acpi.h
>
7
#include <
southbridge/intel/lynxpoint/pch.h
>
8
9
void
mainboard_suspend_resume
(
void
)
10
{
11
/* Call SMM finalize() handlers before resume */
12
apm_control
(
APM_CNT_FINALIZE
);
13
}
14
15
// mainboard_enable is executed as first thing after
16
// enumerate_buses().
17
18
static
void
mainboard_enable
(
struct
device
*dev)
19
{
20
install_intel_vga_int15_handler
(
GMA_INT15_ACTIVE_LFP_EDP
,
GMA_INT15_PANEL_FIT_CENTERING
,
GMA_INT15_BOOT_DISPLAY_DEFAULT
, 0);
21
}
22
23
struct
chip_operations
mainboard_ops
= {
24
.
enable_dev
=
mainboard_enable
,
25
};
mainboard_ops
struct chip_operations mainboard_ops
Definition:
mainboard.c:19
install_intel_vga_int15_handler
void install_intel_vga_int15_handler(int active_lfp_, int pfit_, int display_, int panel_type_)
Definition:
int15.c:101
int15.h
GMA_INT15_BOOT_DISPLAY_DEFAULT
@ GMA_INT15_BOOT_DISPLAY_DEFAULT
Definition:
int15.h:6
GMA_INT15_ACTIVE_LFP_EDP
@ GMA_INT15_ACTIVE_LFP_EDP
Definition:
int15.h:27
GMA_INT15_PANEL_FIT_CENTERING
@ GMA_INT15_PANEL_FIT_CENTERING
Definition:
int15.h:18
mainboard_suspend_resume
void mainboard_suspend_resume(void)
Definition:
mainboard.c:10
acpi.h
smm.h
APM_CNT_FINALIZE
#define APM_CNT_FINALIZE
Definition:
smm.h:24
device.h
mainboard_enable
static void mainboard_enable(struct device *dev)
Definition:
mainboard.c:18
apm_control
int apm_control(u8 cmd)
Definition:
smi_trigger.c:31
pch.h
chip_operations
Definition:
device.h:23
chip_operations::enable_dev
void(* enable_dev)(struct device *dev)
Definition:
device.h:24
device
Definition:
device.h:107
src
mainboard
intel
baskingridge
mainboard.c
Generated by
1.9.1