diff options
Diffstat (limited to 'gpxe/src/interface/smbios/smbios_settings.c')
-rw-r--r-- | gpxe/src/interface/smbios/smbios_settings.c | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/gpxe/src/interface/smbios/smbios_settings.c b/gpxe/src/interface/smbios/smbios_settings.c index 61c2d919..1c965646 100644 --- a/gpxe/src/interface/smbios/smbios_settings.c +++ b/gpxe/src/interface/smbios/smbios_settings.c @@ -16,6 +16,8 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +FILE_LICENCE ( GPL2_OR_LATER ); + #include <stdint.h> #include <string.h> #include <errno.h> @@ -62,22 +64,6 @@ ( offsetof ( _structure, _field ) << 8 ) ) /** - * Store value of SMBIOS setting - * - * @v settings Settings block - * @v setting Setting to store - * @v data Setting data, or NULL to clear setting - * @v len Length of setting data - * @ret rc Return status code - */ -static int smbios_store ( struct settings *settings __unused, - struct setting *setting __unused, - const void *data __unused, size_t len __unused ) { - /* Cannot write data into SMBIOS */ - return -ENOTSUP; -} - -/** * Fetch value of SMBIOS setting * * @v settings Settings block, or NULL to search all blocks @@ -133,7 +119,6 @@ static int smbios_fetch ( struct settings *settings __unused, /** SMBIOS settings operations */ static struct settings_operations smbios_settings_operations = { - .store = smbios_store, .fetch = smbios_fetch, }; @@ -198,4 +183,12 @@ struct setting smbios_named_settings[] __setting = { serial ), .type = &setting_type_string, }, + { + .name = "asset", + .description = "Asset tag", + .tag = SMBIOS_STRING_TAG ( SMBIOS_TYPE_ENCLOSURE_INFORMATION, + struct smbios_enclosure_information, + asset_tag ), + .type = &setting_type_string, + }, }; |