Searched refs:eeprom (Results 1 - 25 of 28) sorted by relevance

12

/vbox/src/VBox/Devices/Network/testcase/
H A DtstDevEEPROM.cpp79 EEPROM93C46 *eeprom; member in class:EEPROMTest
96 eeprom = new EEPROM93C46;
97 eeprom->init(initialContent);
102 delete eeprom;
215 if (eeprom->read() & DO)
327 uint32_t wires = eeprom->read();
339 eeprom->write(wires);
342 eeprom->write(wires |= SK);
344 eeprom->write(wires &= ~SK);
350 eeprom
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/ath/ath9k/
H A Dath9k_eeprom_4k.c27 return ((ah->eeprom.map4k.baseEepHeader.version >> 12) & 0xF);
32 return ((ah->eeprom.map4k.baseEepHeader.version) & 0xFFF);
40 u16 *eep_data = (u16 *)&ah->eeprom.map4k;
47 "Unable to read eeprom region\n");
58 u16 *eep_data = (u16 *)&ah->eeprom.map4k;
87 (struct ar5416_eeprom_4k *) &ah->eeprom.map4k;
109 eepdata = (u16 *) (&ah->eeprom);
128 el = swab16(ah->eeprom.map4k.baseEepHeader.length);
130 el = ah->eeprom.map4k.baseEepHeader.length;
137 eepdata = (u16 *)(&ah->eeprom);
[all...]
H A Dath9k_eeprom_9287.c29 return (ah->eeprom.map9287.baseEepHeader.version >> 12) & 0xF;
34 return (ah->eeprom.map9287.baseEepHeader.version) & 0xFFF;
39 struct ar9287_eeprom *eep = &ah->eeprom.map9287;
50 "Unable to read eeprom region\n");
61 u16 *eep_data = (u16 *)&ah->eeprom.map9287;
90 struct ar9287_eeprom *eep = &ah->eeprom.map9287;
108 eepdata = (u16 *)(&ah->eeprom);
127 el = swab16(ah->eeprom.map9287.baseEepHeader.length);
129 el = ah->eeprom.map9287.baseEepHeader.length;
136 eepdata = (u16 *)(&ah->eeprom);
[all...]
H A Dath9k_eeprom_def.c86 return ((ah->eeprom.def.baseEepHeader.version >> 12) & 0xF);
91 return ((ah->eeprom.def.baseEepHeader.version) & 0xFFF);
99 u16 *eep_data = (u16 *)&ah->eeprom.def;
107 "Unable to read eeprom region\n");
117 u16 *eep_data = (u16 *)&ah->eeprom.def;
144 (struct ar5416_eeprom_def *) &ah->eeprom.def;
166 eepdata = (u16 *) (&ah->eeprom);
185 el = swab16(ah->eeprom.def.baseEepHeader.length);
187 el = ah->eeprom.def.baseEepHeader.length;
194 eepdata = (u16 *)(&ah->eeprom);
[all...]
H A Dath9k_ar9003_eeprom.c90 .deviceType = 5, /* takes lower byte in eeprom location */
667 .deviceType = 5, /* takes lower byte in eeprom location */
1245 .deviceType = 5, /* takes lower byte in eeprom location */
1823 .deviceType = 5, /* takes lower byte in eeprom location */
2400 .deviceType = 5, /* takes lower byte in eeprom location */
3010 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep;
3087 "eeprom address not in range\n");
3119 "unable to read eeprom region at offset %d\n", address);
3230 "EEPROM structure size mismatch memory=%d eeprom=%d\n",
3236 "restored eeprom
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/
H A D3c90x.c122 DBG("Read from eeprom failed: timeout\n");
131 * a3c90x_internal_ReadEeprom - nvs routine to read eeprom data
136 * @v address eeprom address to read data from.
170 * a3c90x_internal_WriteEeprom - nvs routine to write eeprom data
174 * @v address eeprom address to read data from.
192 nvs_read(&inf_3c90x->nvs, 0, inf_3c90x->eeprom, eeprom_size);
730 * eeprom 0x16
733 if ((inf_3c90x->eeprom[0x16] & 0xFF00) == XCVR_MAGIC) {
735 linktype = inf_3c90x->eeprom[0x16] & 0x000F;
860 * card. We read the eeprom her
[all...]
H A Dnatsemi.c139 init_at93c06 ( &natsemi->eeprom, 16 );
140 natsemi->eeprom.bus = &natsemi->spibit.bus;
147 * @v eeprom EEPROM data
151 const uint16_t *eeprom, uint16_t *hw_addr ) {
156 *(hw_addr++) = eeprom[ NATSEMI_EEPROM_MAC_SANE + i ];
165 * @v eeprom EEPROM data
169 const uint16_t *eeprom,
178 word = ( ( le16_to_cpu ( eeprom[ offset ] ) >> 15 ) |
179 ( le16_to_cpu ( eeprom[ offset + 1 ] << 1 ) ) );
196 const uint16_t *eeprom, uint16_
150 natsemi_hwaddr_sane( struct natsemi_nic *natsemi, const uint16_t *eeprom, uint16_t *hw_addr ) argument
168 natsemi_hwaddr_insane( struct natsemi_nic *natsemi, const uint16_t *eeprom, uint16_t *hw_addr ) argument
[all...]
H A D3c90x.h231 enum eeprom { enum
270 /* Timeouts for eeprom and command completion */
296 unsigned short eeprom[0x21]; member in struct:INF_3C90X
H A D3c515.c689 unsigned int eeprom[0x40], checksum = 0; /* EEPROM contents */ local
706 eeprom[i] = inw(ioaddr + Wn0EepromData);
707 DBG ( "Value %d: %hX ", i, eeprom[i] );
708 checksum ^= eeprom[i];
710 phys_addr[i] = htons(eeprom[i]);
718 if (eeprom[16] == 0x11c7) { /* Corkscrew */
754 vp->capabilities = eeprom[16];
H A Db44.c594 u8 eeprom[128]; local
597 b44_read_eeprom(bp, &eeprom[0]);
598 bp->netdev->hw_addr[0] = eeprom[79];
599 bp->netdev->hw_addr[1] = eeprom[78];
600 bp->netdev->hw_addr[2] = eeprom[81];
601 bp->netdev->hw_addr[3] = eeprom[80];
602 bp->netdev->hw_addr[4] = eeprom[83];
603 bp->netdev->hw_addr[5] = eeprom[82];
606 bp->phy_addr = eeprom[90] & 0x1f;
H A Dintel.h238 struct nvs_device eeprom; member in struct:intel_nic
H A Dintel.c69 container_of ( nvs, struct intel_nic, eeprom );
116 container_of ( nvs, struct intel_nic, eeprom );
140 intel->eeprom.word_len_log2 = INTEL_EEPROM_WORD_LEN_LOG2;
141 intel->eeprom.size = INTEL_EEPROM_MIN_SIZE_WORDS;
142 intel->eeprom.block_size = 1;
143 intel->eeprom.read = intel_read_eeprom;
144 intel->eeprom.write = intel_write_eeprom;
199 if ( ( rc = nvs_read ( &intel->eeprom, INTEL_EEPROM_MAC,
H A Deepro100.c214 nvs_read ( &priv->eeprom.nvs, EEPROM_ADDR_MAC_0, netdev->hw_addr,
217 nvs_read ( &priv->eeprom.nvs, EEPROM_ADDR_MDIO_REGISTER,
544 * Initialize the eeprom stuff
558 priv->eeprom.bus = &priv->spi.bus;
563 init_at93c46 ( &priv->eeprom, 16 );
566 threewire_detect_address_len ( &priv->eeprom );
569 if ( priv->eeprom.address_len == 8 )
570 init_at93c66 ( &priv->eeprom, 16 );
H A Depic100.c86 static unsigned short eeprom[64]; variable
173 eeprom[i] = value;
181 printf(" %hhX%s", eeprom[i], i % 16 == 15 ? "\n" : "");
H A Deepro100.h167 struct spi_device eeprom; member in struct:ifec_private
H A Dnatsemi.h291 struct spi_device eeprom; member in struct:natsemi_nic
H A Drealtek.h248 struct spi_device eeprom; member in struct:realtek_nic
H A Drealtek.c140 init_at93c56 ( &rtl->eeprom, 16 );
143 init_at93c46 ( &rtl->eeprom, 16 );
145 rtl->eeprom.bus = &rtl->spibit.bus;
157 nvo_init ( &rtl->nvo, &rtl->eeprom.nvs, RTL_EEPROM_VPD,
950 if ( ( rc = nvs_read ( &rtl->eeprom.nvs, RTL_EEPROM_MAC,
H A Dw89c840.c264 static unsigned short eeprom [0x40]; variable
677 /* Ok. Got one. Read the eeprom. */
680 eeprom[i] = value;
685 nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff;
691 printf("winbond-840: EEPROM checksum %hX, got eeprom", sum);
H A Dtulip.c414 unsigned char eeprom[EEPROM_SIZE]; /* Serial EEPROM contents. */
723 unsigned char *p, *ee_data = tp->eeprom;
1375 memcpy(tp->eeprom, ee_data, sizeof(tp->eeprom));
413 unsigned char eeprom[EEPROM_SIZE]; /* Serial EEPROM contents. */ member in struct:tulip_private
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/rtl818x/
H A Drtl818x.c735 init_at93c66(&priv->eeprom, 16);
737 init_at93c46(&priv->eeprom, 16);
738 priv->eeprom.bus = &priv->spibit.bus;
744 nvs_read(&priv->eeprom.nvs, 0x06, &eeprom_val, 2);
745 DBG2("rtl818x eeprom val = %04x\n", eeprom_val);
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
[all...]
H A Drtl818x.h287 struct spi_device eeprom; member in struct:rtl818x_priv
/vbox/src/VBox/Devices/Network/
H A DDevE1000.cpp625 EEPROM93C46 eeprom; member in struct:E1kEEPROM
635 eeprom.init();
636 memcpy(eeprom.m_au16Data, macAddr.au16, sizeof(macAddr.au16));
637 eeprom.m_au16Data[0x04] = 0xFFFF;
642 eeprom.m_au16Data[0x0A] = 0x4408;
643 eeprom.m_au16Data[0x0B] = 0x001E;
644 eeprom.m_au16Data[0x0C] = 0x8086;
645 eeprom.m_au16Data[0x0D] = 0x100E;
646 eeprom.m_au16Data[0x0E] = 0x8086;
647 eeprom
1184 E1kEEPROM eeprom; member in struct:E1kState_st
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/infiniband/
H A Dlinda.c98 struct i2c_device eeprom; member in struct:linda
1614 init_i2c_eeprom ( &linda->eeprom, try_eeprom_address[i] );
1616 &linda->eeprom ) ) == 0 ) {
1639 if ( ( rc = i2c->read ( i2c, &linda->eeprom, LINDA_EEPROM_GUID_OFFSET,
1653 if ( ( rc = i2c->read ( i2c, &linda->eeprom,
H A Dqib7322.c118 struct i2c_device eeprom; member in struct:qib7322
1924 init_i2c_eeprom ( &qib7322->eeprom, try_eeprom_address[i] );
1926 &qib7322->eeprom ) ) == 0 ) {
1949 if ( ( rc = i2c->read ( i2c, &qib7322->eeprom,
1964 if ( ( rc = i2c->read ( i2c, &qib7322->eeprom,

Completed in 151 milliseconds

12