blob: ee5bd1ff884bbf21c3d89bdfb28894e51279d456 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*
* This file is part of the coreboot project.
*
* Copyright 2019 Google LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __DRIVERS_GENERIC_GFX_CHIP_H__
#define __DRIVERS_GENERIC_GFX_CHIP_H__
/* Config for electronic privacy screen */
struct drivers_generic_gfx_privacy_screen_config {
/* Is privacy screen available on this graphics device */
int enabled;
/* ACPI namespace path to privacy screen detection function */
const char *detect_function;
/* ACPI namespace path to privacy screen status function */
const char *status_function;
/* ACPI namespace path to privacy screen enable function */
const char *enable_function;
/* ACPI namespace path to privacy screen disable function */
const char *disable_function;
};
/* Config for an output device as defined in section A.5 of the ACPI spec */
struct drivers_generic_gfx_device_config {
/* ACPI device name of the output device */
const char *name;
/* The address of the output device. See section A.3.2 */
unsigned int addr;
/* Electronic privacy screen specific config */
struct drivers_generic_gfx_privacy_screen_config privacy;
};
/* Config for an ACPI video device defined in Appendix A of the ACPI spec */
struct drivers_generic_gfx_config {
/*
* ACPI device name of the graphics card, "GFX0" will be used if name is
* not set
*/
const char *name;
/* The number of output devices defined */
int device_count;
/* Config for output devices */
struct drivers_generic_gfx_device_config device[5];
};
#endif /* __DRIVERS_GENERIC_GFX_CHIP_H__ */
|