Debian Codegraph @

src/soc/intel/common/block/include/intelblocks/graphics.h

raw symbols SCIP
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 #include <stdint.h>
8
9 /*
10 * SoC overrides
11 *
12 * All new SoC must implement below functionality.
13 */
14
15 /*
16 * Perform Graphics/Panel Initialization in ramstage
17 * Input:
18 * struct device *dev: device structure
19 */
20 void graphics_soc_panel_init(struct device *dev);
21
22 /* i915 controller info for ACPI backlight controls */
23 const struct i915_gpu_controller_info *
24 intel_igd_get_controller_info(const struct device *device);
25
26 /* Graphics MMIO register read/write APIs */
27 uint32_t graphics_gtt_read(unsigned long reg);
28 void graphics_gtt_write(unsigned long reg, uint32_t data);
29 void graphics_gtt_rmw(unsigned long reg, uint32_t andmask, uint32_t ormask);
30 uintptr_t graphics_get_framebuffer_address(void);
31
32 #endif /* SOC_INTEL_COMMON_BLOCK_GRAPHICS_H */