Searched refs:nvs (Results 1 - 21 of 21) sorted by relevance

/vbox/src/VBox/Devices/PC/ipxe/src/drivers/nvs/
H A Dnvs.c25 #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 Dthreewire.c36 * @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 Dnvsvpd.c23 #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...]
H A Dspi.c78 * @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 );
/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/
H A Dnvs.h39 * @v nvs NVS device
47 int ( * read ) ( struct nvs_device *nvs, unsigned int address,
51 * @v nvs NVS device
59 int ( * write ) ( struct nvs_device *nvs, unsigned int address,
63 extern int nvs_read ( struct nvs_device *nvs, unsigned int address,
65 extern int nvs_write ( struct nvs_device *nvs, unsigned int address,
H A Dspi.h12 #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...]
H A Dthreewire.h44 extern int threewire_read ( struct nvs_device *nvs, unsigned int address,
46 extern int threewire_write ( struct nvs_device *nvs, unsigned int address,
57 device->nvs.word_len_log2 = ( ( organisation == 8 ) ? 0 : 1 );
58 device->nvs.block_size = 1;
60 device->nvs.read = threewire_read;
61 device->nvs.write = threewire_write;
72 device->nvs.size = ( 256 / organisation );
85 device->nvs.size = ( 1024 / organisation );
98 device->nvs.size = ( 2048 / organisation );
111 device->nvs
[all...]
H A Dnvsvpd.h13 #include <ipxe/nvs.h>
22 struct nvs_device nvs; member in struct:nvs_vpd_device
H A Dnvo.h26 struct nvs_device *nvs; member in struct:nvo_block
45 extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
/vbox/src/VBox/Devices/PC/ipxe/src/core/
H A Dnvo.c26 #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 D3c90x.c58 #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 Dmyri10ge.c61 * 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 Dintel.h14 #include <ipxe/nvs.h>
H A D3c90x.h305 struct nvs_device nvs; member in struct:INF_3C90X
H A Drealtek.c44 #include <ipxe/nvs.h>
157 nvo_init ( &rtl->nvo, &rtl->eeprom.nvs, RTL_EEPROM_VPD,
950 if ( ( rc = nvs_read ( &rtl->eeprom.nvs, RTL_EEPROM_MAC,
984 if ( rtl->nvo.nvs ) {
1015 if ( rtl->nvo.nvs )
H A Dintel.c60 * @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 Detherfabric.c3205 * 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...]
H A Dnatsemi.c42 #include <ipxe/nvs.h>
200 if ( ( rc = nvs_read ( &natsemi->eeprom.nvs, 0, buf,
H A Deepro100.c123 #include <ipxe/nvs.h>
214 nvs_read ( &priv->eeprom.nvs, EEPROM_ADDR_MAC_0, netdev->hw_addr,
217 nvs_read ( &priv->eeprom.nvs, EEPROM_ADDR_MDIO_REGISTER,
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/rtl818x/
H A Drtl818x.c744 nvs_read(&priv->eeprom.nvs, 0x06, &eeprom_val, 2);
771 nvs_read(&priv->eeprom.nvs, 0x17, &eeprom_val, 2);
774 nvs_read(&priv->eeprom.nvs, 0xD, &priv->anaparam, 4);
775 nvs_read(&priv->eeprom.nvs, 0x19, &priv->rfparam, 2);
781 nvs_read(&priv->eeprom.nvs, 0x7, hwinfo->hwaddr, 6);
786 nvs_read(&priv->eeprom.nvs, 0x10 + (i >> 1), &txpwr, 2);
795 nvs_read(&priv->eeprom.nvs, 0x20 + (i >> 1), &txpwr, 2);
/vbox/src/VBox/Devices/PC/ipxe/src/
H A DMakefile80 SRCDIRS += drivers/nvs

Completed in 113 milliseconds