Debian Codegraph @

src/northbridge/intel/sandybridge/cfr.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /*
4 * CFR enums and structs for nb/sandybridge
5 */
6
7 #ifndef NB_SANDYBRIDGE_CFR_H
8 #define NB_SANDYBRIDGE_CFR_H
9
10 #include <drivers/option/cfr_frontend.h>
11
12 /* Values must match nb/sandybridge/Kconfig */
13 enum {
14 IGD_UMA_SIZE_32MB,
15 IGD_UMA_SIZE_64MB,
16 IGD_UMA_SIZE_96MB,
17 IGD_UMA_SIZE_128MB,
18 };
19
20 /* IGD UMA Size */
21 static const struct sm_object gfx_uma_size = SM_DECLARE_ENUM({
22 .opt_name = "gfx_uma_size",
23 .ui_name = "IGD UMA Size",
24 .ui_helptext = "Size of memory preallocated for internal graphics.",
25 .default_value = CONFIG_IGD_DEFAULT_UMA_INDEX,
26 .values = (const struct sm_enum_value[]) {
27 { " 32MB", IGD_UMA_SIZE_32MB },
28 { " 64MB", IGD_UMA_SIZE_64MB },
29 { " 96MB", IGD_UMA_SIZE_96MB },
30 { "128MB", IGD_UMA_SIZE_128MB },
31 SM_ENUM_VALUE_END },
32 });
33
34 #endif /* NB_SANDYBRIDGE_CFR_H */