Lines Matching full:eeprom
6 * eeprom. It has been adapted from an earlier version of the
19 #include "eeprom.h"
29 * static eeprom: EEPROM layout for NXID formats
33 static struct __attribute__ ((__packed__)) eeprom { struct
34 u8 id[4]; /* 0x00 - 0x03 EEPROM Tag 'NXID' */
50 /* Set to 1 if we've read EEPROM into memory */
53 /* Is this a valid NXID EEPROM? */
57 /** Fixed ID field in EEPROM */
65 * This must be called before any eeprom access. argument
75 * show_eeprom - display the contents of the EEPROM
82 /* EEPROM tag ID, either CCID or NXID */ in show_eeprom()
120 printf("EEPROM dump: (0x%x bytes)\n", sizeof(e)); in show_eeprom()
132 * read_eeprom - read the EEPROM into memory
140 printf("EEPROM not configured\n"); in read_eeprom()
171 * This function should be called after each update to the EEPROM structure,
176 u32 crc, crc_offset = offsetof(struct eeprom, crc); in update_crc()
183 * prog_eeprom - write the EEPROM from memory
193 printf("EEPROM not configured\n"); in prog_eeprom()
219 /* Verify the write by reading back the EEPROM and comparing */ in prog_eeprom()
220 struct eeprom e2; in prog_eeprom()
261 * set_date - stores the build date into the EEPROM
265 * and stores it in the build date field of the EEPROM local copy.
283 * set_mac_address - stores a MAC address into the EEPROM
287 * stores it in one of the MAC address fields of the EEPROM local copy.
332 printf("Please read the EEPROM ('r') and/or set the ID ('i') first.\n"); in do_mac()
423 * mac_read_from_eeprom - read the MAC addresses from EEPROM
425 * This function reads the MAC addresses from EEPROM and sets the
434 * format. In a v0 EEPROM, there are only eight MAC addresses and the CRC is
440 u32 crc, crc_offset = offsetof(struct eeprom, crc); in mac_read_from_eeprom_common()
441 u32 *crcp; /* Pointer to the CRC in the data read from the EEPROM */ in mac_read_from_eeprom_common()
443 puts("EEPROM: "); in mac_read_from_eeprom_common()