coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
graphics.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_INTEL_COMMON_BLOCK_GRAPHICS_H
4 #define SOC_INTEL_COMMON_BLOCK_GRAPHICS_H
5 
6 #include <device/device.h>
7 
8 /*
9  * SoC overrides
10  *
11  * All new SoC must implement below functionality.
12  */
13 
14 /*
15  * Perform Graphics/Panel Initialization in ramstage
16  * Input:
17  * struct device *dev: device structure
18  */
19 void graphics_soc_panel_init(struct device *dev);
20 
21 /* i915 controller info for ACPI backlight controls */
22 const struct i915_gpu_controller_info *
24 
25 /* Graphics MMIO register read/write APIs */
26 uint32_t graphics_gtt_read(unsigned long reg);
27 void graphics_gtt_write(unsigned long reg, uint32_t data);
28 void graphics_gtt_rmw(unsigned long reg, uint32_t andmask, uint32_t ormask);
30 
31 #endif /* SOC_INTEL_COMMON_BLOCK_GRAPHICS_H */
uint32_t graphics_gtt_read(unsigned long reg)
Definition: graphics.c:149
uintptr_t graphics_get_framebuffer_address(void)
Definition: graphics.c:110
const struct i915_gpu_controller_info * intel_igd_get_controller_info(const struct device *device)
Definition: graphics.c:79
void graphics_gtt_write(unsigned long reg, uint32_t data)
Definition: graphics.c:154
void graphics_gtt_rmw(unsigned long reg, uint32_t andmask, uint32_t ormask)
Definition: graphics.c:159
void graphics_soc_panel_init(struct device *dev)
Definition: graphics.c:54
unsigned int uint32_t
Definition: stdint.h:14
unsigned long uintptr_t
Definition: stdint.h:21
Definition: device.h:107