/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/ |
H A D | nvsvpd.h | 13 #include <ipxe/nvs.h> 22 struct nvs_device nvs; member in struct:nvs_vpd_device
|
H A D | nvo.h | 26 struct nvs_device *nvs; member in struct:nvo_block 45 extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
|
H A D | spi.h | 12 #include <ipxe/nvs.h> 88 struct nvs_device nvs; member in struct:spi_device 116 nvs_to_spi ( struct nvs_device *nvs ) { 117 return container_of ( nvs, struct spi_device, nvs ); 201 extern int spi_read ( struct nvs_device *nvs, unsigned int address, 203 extern int spi_write ( struct nvs_device *nvs, unsigned int address, 213 device->nvs.word_len_log2 = 0; 215 device->nvs.read = spi_read; 216 device->nvs [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/nvs/ |
H A D | threewire.c | 36 * @v nvs NVS device 42 int threewire_read ( struct nvs_device *nvs, unsigned int address, argument 44 struct spi_device *device = nvs_to_spi ( nvs ); 66 * @v nvs NVS device 72 int threewire_write ( struct nvs_device *nvs, unsigned int address, argument 74 struct spi_device *device = nvs_to_spi ( nvs ); 115 struct nvs_device *nvs = &device->nvs; local 121 if ( ( rc = threewire_read ( nvs, 0, NULL, 122 ( 1 << nvs [all...] |
H A D | nvs.c | 25 #include <ipxe/nvs.h> 36 * @v nvs NVS device 41 static size_t nvs_frag_len ( struct nvs_device *nvs, unsigned int address, argument 46 if ( ! nvs->block_size ) 50 frag_len = ( ( nvs->block_size - 51 ( address & ( nvs->block_size - 1 ) ) ) 52 << nvs->word_len_log2 ); 64 * @v nvs NVS device 70 int nvs_read ( struct nvs_device *nvs, unsigned int address, argument 78 assert ( ( len & ( ( 1 << nvs 107 nvs_verify( struct nvs_device *nvs, unsigned int address, const void *data, size_t len ) argument 135 nvs_write( struct nvs_device *nvs, unsigned int address, const void *data, size_t len ) argument [all...] |
H A D | spi.c | 78 * @v nvs NVS device 84 int spi_read ( struct nvs_device *nvs, unsigned int address, argument 86 struct spi_device *device = nvs_to_spi ( nvs ); 105 * @v nvs NVS device 111 int spi_write ( struct nvs_device *nvs, unsigned int address, argument 113 struct spi_device *device = nvs_to_spi ( nvs );
|
H A D | nvsvpd.c | 23 #include <ipxe/nvs.h> 38 * @v nvs NVS device 44 static int nvs_vpd_read ( struct nvs_device *nvs, unsigned int field, argument 47 container_of ( nvs, struct nvs_vpd_device, nvs ); 90 * @v nvs NVS device 96 static int nvs_vpd_write ( struct nvs_device *nvs, unsigned int field, argument 99 container_of ( nvs, struct nvs_vpd_device, nvs ); 139 * @v nvs NV 145 nvs_vpd_resize( struct nvs_device *nvs, unsigned int field, size_t len ) argument [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/core/ |
H A D | nvo.c | 26 #include <ipxe/nvs.h> 136 if ( ( rc = nvs_read ( nvo->nvs, nvo->address, nvo->data, 176 if ( ( rc = nvs_write ( nvo->nvs, nvo->address, nvo->data, 261 * @v nvs Underlying non-volatile storage device 267 void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs, argument 271 nvo->nvs = nvs;
|
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/ |
H A D | intel.c | 60 * @v nvs NVS device 66 static int intel_read_eeprom ( struct nvs_device *nvs, unsigned int address, argument 69 container_of ( nvs, struct intel_nic, eeprom ); 105 * @v nvs NVS device 111 static int intel_write_eeprom ( struct nvs_device *nvs, argument 116 container_of ( nvs, struct intel_nic, eeprom );
|
H A D | 3c90x.c | 58 #include <ipxe/nvs.h> 131 * a3c90x_internal_ReadEeprom - nvs routine to read eeprom data 132 * We only support reading one word(2 byte). The nvs subsystem will make sure 135 * @v nvs nvs data. 141 a3c90x_internal_ReadEeprom(struct nvs_device *nvs, unsigned int address, void *data, size_t len) argument 145 container_of(nvs, struct INF_3C90X, nvs); 170 * a3c90x_internal_WriteEeprom - nvs routine to write eeprom data 173 * @v nvs nv [all...] |
H A D | myri10ge.c | 61 * This driver supports NonVolatile Storage (nvs) in the NIC EEPROM. 85 #include <ipxe/nvs.h> 184 struct nvs_device nvs; member in struct:myri10ge_private 532 * @v nvs The NonVolatile Storage device to be read. 538 static int myri10ge_nvs_read ( struct nvs_device *nvs, argument 544 container_of (nvs, struct myri10ge_private, nvs); 610 * @v nvs The NonVolatile Storage device to be written. 616 static int myri10ge_nvs_write ( struct nvs_device *nvs, argument 622 container_of (nvs, struc [all...] |
H A D | 3c90x.h | 305 struct nvs_device nvs; member in struct:INF_3C90X
|
H A D | etherfabric.c | 3205 * Reduce the nvs block size down to satisfy this - which means callers 3207 if ( spi->nvs.block_size > FALCON_SPI_MAX_LEN ) 3208 spi->nvs.block_size = FALCON_SPI_MAX_LEN; 3269 nvo_init ( &efab->nvo, &efab->spi_eeprom.nvs, 0x100, 0xf0, 3279 struct nvs_device *nvs = &efab->spi->nvs; local 3284 rc = nvs_read ( nvs, FALCON_MAC_ADDRESS_OFFSET, 3290 rc = nvs_read ( nvs, SF_NV_CONFIG_BASE + SF_NV_CONFIG_EXTRA, 4115 if ( efab->nvo.nvs ) { 4117 efab->nvo.nvs [all...] |