| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#ifndef _LENOVO_H8_CFR_H_ |
| 8 |
#define _LENOVO_H8_CFR_H_ |
| 9 |
|
| 10 |
#include <drivers/option/cfr_frontend.h> |
| 11 |
#include "h8.h" |
| 12 |
|
| 13 |
|
| 14 |
static const struct sm_object bluetooth = SM_DECLARE_ENUM({ |
| 15 |
.opt_name = "bluetooth", |
| 16 |
.ui_name = "Bluetooth", |
| 17 |
.ui_helptext = "Enable or disable the bluetooth module", |
| 18 |
.default_value = 1, |
| 19 |
.values = (const struct sm_enum_value[]) { |
| 20 |
{ "Disabled", 0 }, |
| 21 |
{ "Enabled", 1 }, |
| 22 |
SM_ENUM_VALUE_END }, |
| 23 |
}); |
| 24 |
|
| 25 |
|
| 26 |
static const struct sm_object backlight = SM_DECLARE_ENUM({ |
| 27 |
.opt_name = "backlight", |
| 28 |
.ui_name = "Keyboard Backlight", |
| 29 |
.ui_helptext = "Enable or disable the keyboard backlight", |
| 30 |
.default_value = 0, |
| 31 |
.values = (const struct sm_enum_value[]) { |
| 32 |
{ "Disabled", 0 }, |
| 33 |
{ "Enabled", 1 }, |
| 34 |
SM_ENUM_VALUE_END }, |
| 35 |
}); |
| 36 |
|
| 37 |
|
| 38 |
static const struct sm_object usb_always_on = SM_DECLARE_ENUM({ |
| 39 |
.opt_name = "usb_always_on", |
| 40 |
.ui_name = "USB Always-on", |
| 41 |
.ui_helptext = "Always keep USB ports powered", |
| 42 |
.default_value = UAO_OFF, |
| 43 |
.values = (const struct sm_enum_value[]) { |
| 44 |
{ "Disabled", UAO_OFF }, |
| 45 |
{ "AC only", UAO_AC_ONLY }, |
| 46 |
{ "AC and Battery", UAO_AC_AND_BATTERY }, |
| 47 |
SM_ENUM_VALUE_END }, |
| 48 |
}); |
| 49 |
|
| 50 |
|
| 51 |
static const struct sm_object uwb = SM_DECLARE_ENUM({ |
| 52 |
.opt_name = "uwb", |
| 53 |
.ui_name = "Ultrawideband", |
| 54 |
.ui_helptext = "TBD", |
| 55 |
.default_value = 1, |
| 56 |
.values = (const struct sm_enum_value[]) { |
| 57 |
{ "Disabled", 0 }, |
| 58 |
{ "Enabled", 1 }, |
| 59 |
SM_ENUM_VALUE_END }, |
| 60 |
}); |
| 61 |
|
| 62 |
|
| 63 |
static const struct sm_object volume = SM_DECLARE_ENUM({ |
| 64 |
.opt_name = "volume", |
| 65 |
.ui_name = "Volume", |
| 66 |
.ui_helptext = "TBD", |
| 67 |
.default_value = 0, |
| 68 |
.values = (const struct sm_enum_value[]) { |
| 69 |
{ "Disabled", 0 }, |
| 70 |
{ "Enabled", 1 }, |
| 71 |
SM_ENUM_VALUE_END }, |
| 72 |
}); |
| 73 |
|
| 74 |
|
| 75 |
static const struct sm_object wlan = SM_DECLARE_ENUM({ |
| 76 |
.opt_name = "wlan", |
| 77 |
.ui_name = "WLAN", |
| 78 |
.ui_helptext = "Enable or disable the WLAN module", |
| 79 |
.default_value = 1, |
| 80 |
.values = (const struct sm_enum_value[]) { |
| 81 |
{ "Disabled", 0 }, |
| 82 |
{ "Enabled", 1 }, |
| 83 |
SM_ENUM_VALUE_END }, |
| 84 |
}); |
| 85 |
|
| 86 |
|
| 87 |
static const struct sm_object wwan = SM_DECLARE_ENUM({ |
| 88 |
.opt_name = "wwan", |
| 89 |
.ui_name = "WWAN", |
| 90 |
.ui_helptext = "Enable or disable the WWAN module", |
| 91 |
.default_value = 1, |
| 92 |
.values = (const struct sm_enum_value[]) { |
| 93 |
{ "Disabled", 0 }, |
| 94 |
{ "Enabled", 1 }, |
| 95 |
SM_ENUM_VALUE_END }, |
| 96 |
}); |
| 97 |
|
| 98 |
|
| 99 |
static const struct sm_object pm_beeps = SM_DECLARE_ENUM({ |
| 100 |
.opt_name = "power_management_beeps", |
| 101 |
.ui_name = "Power Management Beeps", |
| 102 |
.ui_helptext = "Enable or disable power management beeps", |
| 103 |
.default_value = 1, |
| 104 |
.values = (const struct sm_enum_value[]) { |
| 105 |
{ "Disabled", 0 }, |
| 106 |
{ "Enabled", 1 }, |
| 107 |
SM_ENUM_VALUE_END }, |
| 108 |
}); |
| 109 |
|
| 110 |
|
| 111 |
static const struct sm_object battery_beep = SM_DECLARE_ENUM({ |
| 112 |
.opt_name = "low_battery_beep", |
| 113 |
.ui_name = "Low Battery Beep", |
| 114 |
.ui_helptext = "Enable or disable low battery beep", |
| 115 |
.default_value = 1, |
| 116 |
.values = (const struct sm_enum_value[]) { |
| 117 |
{ "Disabled", 0 }, |
| 118 |
{ "Enabled", 1 }, |
| 119 |
SM_ENUM_VALUE_END }, |
| 120 |
}); |
| 121 |
|
| 122 |
|
| 123 |
static const struct sm_object fn_ctrl_swap = SM_DECLARE_ENUM({ |
| 124 |
.opt_name = "fn_ctrl_swap", |
| 125 |
.ui_name = "Swap Fn and CTRL", |
| 126 |
.ui_helptext = "Swap the left Fn and CTRL keys", |
| 127 |
.default_value = CONFIG(H8_FN_CTRL_SWAP), |
| 128 |
.values = (const struct sm_enum_value[]) { |
| 129 |
{ "Disabled", 0 }, |
| 130 |
{ "Enabled", 1 }, |
| 131 |
SM_ENUM_VALUE_END }, |
| 132 |
}); |
| 133 |
|
| 134 |
|
| 135 |
static const struct sm_object sticky_fn = SM_DECLARE_ENUM({ |
| 136 |
.opt_name = "sticky_fn", |
| 137 |
.ui_name = "Sticky Fn key", |
| 138 |
.ui_helptext = "Function key acts as a toggle", |
| 139 |
.default_value = 0, |
| 140 |
.values = (const struct sm_enum_value[]) { |
| 141 |
{ "Disabled", 0 }, |
| 142 |
{ "Enabled", 1 }, |
| 143 |
SM_ENUM_VALUE_END }, |
| 144 |
}); |
| 145 |
|
| 146 |
|
| 147 |
static const struct sm_object f1_to_f12_as_primary = SM_DECLARE_ENUM({ |
| 148 |
.opt_name = "f1_to_f12_as_primary", |
| 149 |
.ui_name = "Primary Function keys", |
| 150 |
.ui_helptext = "F1-F12 default act as function keys", |
| 151 |
.default_value = 1, |
| 152 |
.values = (const struct sm_enum_value[]) { |
| 153 |
{ "Disabled", 0 }, |
| 154 |
{ "Enabled", 1 }, |
| 155 |
SM_ENUM_VALUE_END }, |
| 156 |
}); |
| 157 |
|
| 158 |
#endif |