| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#ifndef _STARBOOK_CFR_H_ |
| 5 |
#define _STARBOOK_CFR_H_ |
| 6 |
|
| 7 |
#include <drivers/option/cfr_frontend.h> |
| 8 |
#include <variants.h> |
| 9 |
|
| 10 |
static const struct sm_object card_reader = SM_DECLARE_BOOL({ |
| 11 |
.opt_name = "card_reader", |
| 12 |
.ui_name = "Card Reader", |
| 13 |
.ui_helptext = "Enable or disable the built-in card reader", |
| 14 |
.default_value = true, |
| 15 |
}); |
| 16 |
|
| 17 |
static const struct sm_object fingerprint_reader = SM_DECLARE_BOOL({ |
| 18 |
.opt_name = "fingerprint_reader", |
| 19 |
.ui_name = "Fingerprint Reader", |
| 20 |
.ui_helptext = "Enable or disable the built-in fingerprint reader", |
| 21 |
.default_value = true, |
| 22 |
}); |
| 23 |
|
| 24 |
static const struct sm_object gna = SM_DECLARE_BOOL({ |
| 25 |
.opt_name = "gna", |
| 26 |
.ui_name = "Gaussian & Neural Accelerator", |
| 27 |
.ui_helptext = "Enable or Disable the Gaussian & Neural Accelerator", |
| 28 |
.default_value = false, |
| 29 |
}); |
| 30 |
|
| 31 |
static const struct sm_object hyper_threading = SM_DECLARE_BOOL({ |
| 32 |
.opt_name = "hyper_threading", |
| 33 |
.ui_name = "Hyper-Threading", |
| 34 |
.ui_helptext = "Enable or disable Hyper-Threading", |
| 35 |
.default_value = true, |
| 36 |
}); |
| 37 |
|
| 38 |
static const struct sm_object power_profile = SM_DECLARE_ENUM({ |
| 39 |
.opt_name = "power_profile", |
| 40 |
.ui_name = "Power Profile", |
| 41 |
.ui_helptext = "Select whether to maximize performance, battery life or both.", |
| 42 |
.default_value = 1, |
| 43 |
.values = (const struct sm_enum_value[]) { |
| 44 |
{ "Power Saver", PP_POWER_SAVER }, |
| 45 |
{ "Balanced", PP_BALANCED }, |
| 46 |
{ "Performance", PP_PERFORMANCE }, |
| 47 |
SM_ENUM_VALUE_END }, |
| 48 |
}); |
| 49 |
|
| 50 |
static const struct sm_object microphone = SM_DECLARE_BOOL({ |
| 51 |
.opt_name = "microphone", |
| 52 |
.ui_name = "Microphone", |
| 53 |
.ui_helptext = "Enable or disable the built-in microphone", |
| 54 |
.default_value = true, |
| 55 |
}); |
| 56 |
|
| 57 |
static const struct sm_object pci_hot_plug = SM_DECLARE_BOOL({ |
| 58 |
.opt_name = "pci_hot_plug", |
| 59 |
.ui_name = "Third-Party SSD Support", |
| 60 |
.ui_helptext = "Enables PCI Hot Plug, which slows down the SSD initialization. It" |
| 61 |
" is required for certain third-party SSDs to be detected.", |
| 62 |
.default_value = false, |
| 63 |
}); |
| 64 |
|
| 65 |
static const struct sm_object thunderbolt = SM_DECLARE_BOOL({ |
| 66 |
.opt_name = "thunderbolt", |
| 67 |
.ui_name = "Thunderbolt", |
| 68 |
.ui_helptext = "Enable or disable Thunderbolt support", |
| 69 |
.default_value = true, |
| 70 |
}); |
| 71 |
|
| 72 |
static const struct sm_object vpu = SM_DECLARE_BOOL({ |
| 73 |
.opt_name = "vpu", |
| 74 |
.ui_name = "VPU", |
| 75 |
.ui_helptext = "Enable or disable VPU", |
| 76 |
.default_value = true, |
| 77 |
}); |
| 78 |
|
| 79 |
static const struct sm_object webcam = SM_DECLARE_BOOL({ |
| 80 |
.opt_name = "webcam", |
| 81 |
.ui_name = "Webcam", |
| 82 |
.ui_helptext = "Enable or disable the built-in webcam", |
| 83 |
.default_value = true, |
| 84 |
}); |
| 85 |
|
| 86 |
static const struct sm_object wireless = SM_DECLARE_BOOL({ |
| 87 |
.opt_name = "wireless", |
| 88 |
.ui_name = "Wireless", |
| 89 |
.ui_helptext = "Enable or disable the built-in wireless card", |
| 90 |
.default_value = true, |
| 91 |
}); |
| 92 |
|
| 93 |
static const struct sm_object vtd = SM_DECLARE_BOOL({ |
| 94 |
.opt_name = "vtd", |
| 95 |
.ui_name = "VT-d", |
| 96 |
.ui_helptext = "Enable or disable Intel VT-d (virtualization)", |
| 97 |
.default_value = true, |
| 98 |
}); |
| 99 |
|
| 100 |
static const struct sm_object bluetooth_rtd3 = SM_DECLARE_BOOL({ |
| 101 |
.opt_name = "bluetooth_rtd3", |
| 102 |
.ui_name = "Bluetooth Runtime-D3", |
| 103 |
.ui_helptext = "Enable or disable Bluetooth power optimization.\n" |
| 104 |
"Recommended to disable when booting Windows.", |
| 105 |
.default_value = true, |
| 106 |
}); |
| 107 |
|
| 108 |
static const struct sm_object display_native_res = SM_DECLARE_BOOL({ |
| 109 |
.opt_name = "display_native_res", |
| 110 |
.ui_name = "Display: Use Native Resolution", |
| 111 |
.ui_helptext = "Enabled: use the native panel resolution at boot.\n" |
| 112 |
"Disabled: use a fixed/scaled video mode at boot.", |
| 113 |
.default_value = false, |
| 114 |
}); |
| 115 |
|
| 116 |
static const struct sm_object s0ix_enable = SM_DECLARE_BOOL({ |
| 117 |
.opt_name = "s0ix_enable", |
| 118 |
.ui_name = "Modern Standby (S0ix)", |
| 119 |
.ui_helptext = "Enabled: Use S0ix for device sleep.\n" |
| 120 |
"Disabled: Use ACPI S3 for device sleep.\n" |
| 121 |
"Requires Intel ME to be enabled.\n" |
| 122 |
"Recommended: Enabled when booting Windows, disabled otherwise.", |
| 123 |
.default_value = false, |
| 124 |
}); |
| 125 |
|
| 126 |
#endif |