rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | #ifndef SBP_FEATURE_DEF_BEGIN |
| 2 | #define SBP_FEATURE_DEF_BEGIN(X) |
| 3 | #endif |
| 4 | #ifndef SBP_FEATURE_DEF |
| 5 | #define SBP_FEATURE_DEF(FEATURE, ATTR, DESC, DESC_V0,DESC_V1, DEFAULT_VAL) |
| 6 | #endif |
| 7 | #ifndef SBP_FEATURE_DEF_END |
| 8 | #define SBP_FEATURE_DEF_END(X) |
| 9 | #endif |
| 10 | |
| 11 | /* |
| 12 | * #define SBP_FEATURE_DEF(FEATURE, ATTR, DESC, DESC_V0,DESC_V1, DEFAULT_VAL) |
| 13 | * |
| 14 | * - FEATURE: the sbp feature enum |
| 15 | * - ATTR: |
| 16 | * SBP_ATTR_NONE = 0, |
| 17 | * SBP_ATTR_NOT_RESET_NVRAM_WHEN_DYNAMIC_SBP_BIT = 0x01, // bit 1 is for current SBP NV will keep when Dynamic SBP change |
| 18 | * SBP_ATTR_ALL = 0xff, |
| 19 | * |
| 20 | * - DESC: the field description in sbp_nvram_editor.h |
| 21 | * - DESC_V0: the description for value 0 of field in sbp_nvram_editor.h |
| 22 | * - DESC_V1: the descriptino for value 1 of field in sbp_nvram_editor.h |
| 23 | * - DEFAULT_VAL: the default value defined in sbp_nvram_editor.h (the value may be replaced by sbp_nvram_config.c) |
| 24 | * |
| 25 | * Note: ifdef/ifndef is supported but only suggest to add option if necessary for readability |
| 26 | */ |
| 27 | |
| 28 | /******* SBP Doc Info Begin ******* |
| 29 | <SBP_DOC_INFO> |
| 30 | <HISTORY> |
| 31 | <RECORD Revision="V1" Date="2017-10-11">First Release for M21</RECORD> |
| 32 | </HISTORY> |
| 33 | </SBP_DOC_INFO> |
| 34 | ******* SBP Doc End ********/ |
| 35 | |
| 36 | /* 1st byte */ |
| 37 | SBP_FEATURE_DEF_BEGIN(0) |
| 38 | /****** SBP Document BEGIN ************************************************************************ |
| 39 | <SBP title="SBP_CUST_MAX"> |
| 40 | <DESCRIPTION> |
| 41 | |
| 42 | </DESCRIPTION> |
| 43 | <CATEGORY> |
| 44 | |
| 45 | </CATEGORY> |
| 46 | <CONFIG> |
| 47 | <VALUE value="0">Turn off. </VALUE> |
| 48 | <VALUE value="1">Turn on. </VALUE> |
| 49 | </CONFIG> |
| 50 | <DEFAULT>0</DEFAULT> |
| 51 | <OP> </OP> |
| 52 | <DEPENDENCY>N/A</DEPENDENCY> |
| 53 | <NOTE>N/A</NOTE> |
| 54 | <AUTHOR> </AUTHOR> |
| 55 | </SBP> |
| 56 | ******* SBP Document END **************************************************************************/ |
| 57 | SBP_FEATURE_DEF(SBP_CUST_MAX, SBP_ATTR_NONE, "Example for customer SBP", "Disabled", "Enabled", 0) |
| 58 | |
| 59 | SBP_FEATURE_DEF_END(0) |
| 60 | |
| 61 | #undef SBP_FEATURE_DEF_BEGIN |
| 62 | #undef SBP_FEATURE_DEF |
| 63 | #undef SBP_FEATURE_DEF_END |