coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef __DRIVERS_GFX_GENERIC_CHIP_H__
4
#define __DRIVERS_GFX_GENERIC_CHIP_H__
5
6
#include <
acpi/acpi_device.h
>
7
8
/* Config for electronic privacy screen */
9
struct
drivers_gfx_generic_privacy_screen_config
{
10
/* Is privacy screen available on this graphics device */
11
int
enabled
;
12
/* ACPI namespace path to privacy screen detection function */
13
const
char
*
detect_function
;
14
/* ACPI namespace path to privacy screen status function */
15
const
char
*
status_function
;
16
/* ACPI namespace path to privacy screen enable function */
17
const
char
*
enable_function
;
18
/* ACPI namespace path to privacy screen disable function */
19
const
char
*
disable_function
;
20
/*
21
* GPIO used for controlling the privacy screen. If provided,
22
* the gpio mechanism takes preference over the functions ptrs
23
* above, if any (GPIO functions override the function ptrs).
24
*/
25
struct
acpi_gpio
gpio
;
26
};
27
28
/* Config for an output device as defined in section A.5 of the ACPI spec */
29
struct
drivers_gfx_generic_device_config
{
30
/* ACPI device name of the output device */
31
const
char
*
name
;
32
/* Value to use for _HID Name, will take precedence over _ADR */
33
const
char
*
hid
;
34
/* The address of the output device. See section A.3.2 */
35
unsigned
int
addr
;
36
/* Electronic privacy screen specific config */
37
struct
drivers_gfx_generic_privacy_screen_config
privacy
;
38
};
39
40
/* Config for an ACPI video device defined in Appendix A of the ACPI spec */
41
struct
drivers_gfx_generic_config
{
42
/*
43
* ACPI device name of the graphics card, "GFX0" will be used if name is
44
* not set
45
*/
46
const
char
*
name
;
47
/* The number of output devices defined */
48
int
device_count
;
49
/* Config for output devices */
50
struct
drivers_gfx_generic_device_config
device
[5];
51
};
52
53
#endif
/* __DRIVERS_GFX_GENERIC_CHIP_H__ */
acpi_device.h
acpi_gpio
Definition:
acpi_device.h:164
device
Definition:
device.h:107
drivers_gfx_generic_config
Definition:
chip.h:41
drivers_gfx_generic_config::name
const char * name
Definition:
chip.h:46
drivers_gfx_generic_config::device_count
int device_count
Definition:
chip.h:48
drivers_gfx_generic_device_config
Definition:
chip.h:29
drivers_gfx_generic_device_config::addr
unsigned int addr
Definition:
chip.h:35
drivers_gfx_generic_device_config::hid
const char * hid
Definition:
chip.h:33
drivers_gfx_generic_device_config::privacy
struct drivers_gfx_generic_privacy_screen_config privacy
Definition:
chip.h:37
drivers_gfx_generic_device_config::name
const char * name
Definition:
chip.h:31
drivers_gfx_generic_privacy_screen_config
Definition:
chip.h:9
drivers_gfx_generic_privacy_screen_config::enabled
int enabled
Definition:
chip.h:11
drivers_gfx_generic_privacy_screen_config::disable_function
const char * disable_function
Definition:
chip.h:19
drivers_gfx_generic_privacy_screen_config::detect_function
const char * detect_function
Definition:
chip.h:13
drivers_gfx_generic_privacy_screen_config::enable_function
const char * enable_function
Definition:
chip.h:17
drivers_gfx_generic_privacy_screen_config::status_function
const char * status_function
Definition:
chip.h:15
gpio
Definition:
pinmux.c:36
src
drivers
gfx
generic
chip.h
Generated by
1.9.1