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 */
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 */
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 */
38 };
39 
40 /* Config for an ACPI video device defined in Appendix A of the ACPI spec */
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 */
49  /* Config for output devices */
51 };
52 
53 #endif /* __DRIVERS_GFX_GENERIC_CHIP_H__ */
Definition: device.h:107
const char * name
Definition: chip.h:46
struct drivers_gfx_generic_privacy_screen_config privacy
Definition: chip.h:37
Definition: pinmux.c:36