代码拉取完成,页面将自动刷新
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2009-2016 CompuLab, Ltd.
*
* Authors: Nikita Kiryanov <nikita@compulab.co.il>
* Igor Grinberg <grinberg@compulab.co.il>
*/
#ifndef _FIELD_
#define _FIELD_
#define PRINT_FIELD_SEGMENT "%-30s"
struct eeprom_field {
char *name;
int size;
unsigned char *buf;
void (*print)(const struct eeprom_field *eeprom_field);
int (*update)(struct eeprom_field *eeprom_field, char *value);
};
void eeprom_field_print_bin(const struct eeprom_field *field);
int eeprom_field_update_bin(struct eeprom_field *field, char *value);
void eeprom_field_print_bin_rev(const struct eeprom_field *field);
int eeprom_field_update_bin_rev(struct eeprom_field *field, char *value);
void eeprom_field_print_mac(const struct eeprom_field *field);
int eeprom_field_update_mac(struct eeprom_field *field, char *value);
void eeprom_field_print_ascii(const struct eeprom_field *field);
int eeprom_field_update_ascii(struct eeprom_field *field, char *value);
void eeprom_field_print_reserved(const struct eeprom_field *field);
int eeprom_field_update_reserved(struct eeprom_field *field, char *value);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。