| /src/sys/arch/dreamcast/dev/g2/ |
| if_mbe_g2.c | 159 uint8_t eeprom[FE_EEPROM_SIZE]; local 168 memset(eeprom, 0, FE_EEPROM_SIZE); 170 /* Get our station address from EEPROM. */ 171 mb86965_read_eeprom(iot, ioh, eeprom); 172 memcpy(enaddr, eeprom, ETHER_ADDR_LEN);
|
| /src/sys/arch/macppc/dev/ |
| uni-n.c | 63 static uint8_t eeprom[2][160]; variable 121 * zero out eeprom blocks, then see if we have valid data 125 memset(eeprom, 0, sizeof(eeprom)); 127 OF_getprop(cpuid, "cpuid", eeprom[0], sizeof(eeprom[0])); 128 if (eeprom[0][1] != 0) 129 aprint_normal_dev(self, "found EEPROM data for CPU 0\n"); 132 OF_getprop(cpuid, "cpuid", eeprom[1], sizeof(eeprom[1])) [all...] |
| fcu.c | 156 * XXX this should never happen, we depend on the EEPROM for 160 aprint_error_dev(self, "no EEPROM data for CPU 0\n"); 310 uint8_t *eeprom = NULL; local 314 eeprom = sc->sc_eeprom0; 321 eeprom = sc->sc_eeprom0; 323 eeprom = sc->sc_eeprom1; 330 /* speed settings from EEPROM */ 332 KASSERT(eeprom != NULL); 333 memcpy(&rmin, &eeprom[0x54], 2); 334 memcpy(&rmax, &eeprom[0x56], 2) [all...] |
| /src/sys/dev/mca/ |
| if_ate_mca.c | 218 uint8_t eeprom[FE_EEPROM_SIZE]; local 220 /* Get our station address from EEPROM. */ 221 mb86965_read_eeprom(iot, ioh, eeprom); 222 memcpy(enaddr, eeprom + FE_ATI_EEP_ADDR, ETHER_ADDR_LEN);
|
| /src/sys/dev/isa/ |
| if_ate.c | 212 uint8_t eeprom[FE_EEPROM_SIZE]; local 257 * address. So, read EEPROM through 86965. We have to write 258 * into LSI registers to read from EEPROM. I want to avoid it 260 * any further without reading EEPROM. FIXME. 262 mb86965_read_eeprom(iot, ioh, eeprom); 264 /* Make sure that config info in EEPROM and 86965 agree. */ 265 if (eeprom[FE_EEPROM_CONF] != bus_space_read_1(iot, ioh, FE_BMPR19)) { 267 printf("%s: incorrect configuration in eeprom and chip\n", 279 switch (eeprom[FE_ATI_EEP_REVISION] & 0xf0) { 289 if (eeprom[FE_ATI_EEP_MAGIC] & 0x04) 309 uint8_t eeprom[FE_EEPROM_SIZE]; local [all...] |
| /src/sys/dev/usb/ |
| emdtv.c | 224 struct emdtv_eeprom *eeprom = (struct emdtv_eeprom *)sc->sc_eeprom; local 244 eeprom->id, eeprom->vendor, eeprom->product); 246 sc->sc_vendor = eeprom->vendor; 247 sc->sc_product = eeprom->product;
|
| if_axe.c | 74 * address via autoload from the EEPROM (i.e. there's no way to manually 572 uint16_t eeprom, val; local 576 if (axe_cmd(sc, AXE_CMD_SROM_READ, 0, 0x0017, &eeprom) != 0) 577 eeprom = 0xffff; 580 eeprom = le16toh(eeprom); 582 DPRINTF("EEPROM is %#jx", eeprom, 0, 0, 0); 584 /* if EEPROM is invalid we have to use to GPIO0 */ 585 if (eeprom == 0xffff) 785 uint16_t eeprom; local [all...] |
| if_upgt.c | 419 * Read the whole EEPROM content and parse it. 981 struct upgt_lmac_eeprom *eeprom; local 987 DPRINTF(1, "%s: request EEPROM block (offset=%d, len=%d)\n", 993 len = sizeof(*mem) + sizeof(*eeprom) + block; 1001 eeprom = (struct upgt_lmac_eeprom *)(mem + 1); 1002 eeprom->header1.flags = 0; 1003 eeprom->header1.type = UPGT_H1_TYPE_CTRL; 1004 eeprom->header1.len = htole16(( 1008 eeprom->header2.reqid = htole32(sc->sc_memaddr_frame_start); 1009 eeprom->header2.type = htole16(UPGT_H2_TYPE_EEPROM) 1771 struct upgt_lmac_eeprom *eeprom; local [all...] |
| /src/sys/arch/cesfic/cesfic/ |
| eeprom.c | 1 /* $NetBSD: eeprom.c,v 1.6 2009/10/26 19:16:55 cegger Exp $ */ 30 __KERNEL_RCSID(0, "$NetBSD: eeprom.c,v 1.6 2009/10/26 19:16:55 cegger Exp $"); 38 /* Physical EEPROM */ 43 /* Part of EEPROM used for system parameters: last 256 bytes */ 124 static struct EEPROMData eeprom; variable in typeref:struct:EEPROMData 133 res = GetEEPROMData(&eeprom); 135 printf("error %d reading EEPROM\n", res); 140 memcpy(buf, eeprom.EtherAddr, 6);
|
| /src/sys/dev/i2c/ |
| adadc.c | 131 uint32_t eeprom[40]; local 235 error = get_cpuid(which_cpu, (uint8_t *)eeprom); 237 sc->sc_diode_slope = eeprom[0x11] >> 16; 238 sc->sc_diode_offset = (int16_t)(eeprom[0x11] & 0xffff) << 12;
|
| /src/sys/dev/pci/ixgbe/ |
| if_bypass.c | 582 struct ixgbe_bypass_eeprom eeprom[BYPASS_MAX_LOGS]; local 596 /* Find Current head of the log eeprom offset */ 622 eeprom[count].logs = 0; 623 eeprom[count].actions = 0; 633 eeprom[count].logs += data << (8 * i); 638 log_off + i, &eeprom[count].actions); 644 if (!(eeprom[count].logs & BYPASS_LOG_CLEAR_M)) 651 eeprom[count].clear_off = log_off; 662 u32 time = eeprom[count].logs & BYPASS_LOG_TIME_M; 663 u32 event = (eeprom[count].logs & BYPASS_LOG_EVENT_M) > [all...] |
| ixgbe_x540.c | 69 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local 78 /* EEPROM */ 79 eeprom->ops.init_params = ixgbe_init_eeprom_params_X540; 80 eeprom->ops.read = ixgbe_read_eerd_X540; 81 eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_X540; 82 eeprom->ops.write = ixgbe_write_eewr_X540; 83 eeprom->ops.write_buffer = ixgbe_write_eewr_buffer_X540; 84 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X540; 85 eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X540 376 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local [all...] |
| ixgbe_82599.c | 205 if (hw->eeprom.ops.read(hw, ++data_offset, &data_value)) 210 if (hw->eeprom.ops.read(hw, ++data_offset, &data_value)) 219 msec_delay(hw->eeprom.semaphore_delay); 241 msec_delay(hw->eeprom.semaphore_delay); 243 "eeprom read at offset %d failed", data_offset); 332 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local 399 /* EEPROM */ 400 eeprom->ops.read = ixgbe_read_eeprom_82599; 401 eeprom->ops.read_buffer = ixgbe_read_eeprom_buffer_82599 2440 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local 2474 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local [all...] |
| ixgbe_x550.c | 66 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local 82 eeprom->ops.init_params = ixgbe_init_eeprom_params_X550; 83 eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X550; 84 eeprom->ops.read = ixgbe_read_ee_hostif_X550; 85 eeprom->ops.read_buffer = ixgbe_read_ee_hostif_buffer_X550; 86 eeprom->ops.write = ixgbe_write_ee_hostif_X550; 87 eeprom->ops.write_buffer = ixgbe_write_ee_hostif_buffer_X550; 88 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X550; 89 eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X550 715 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local 1192 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local [all...] |
| ixgbe_common.c | 77 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local 83 /* EEPROM */ 84 eeprom->ops.init_params = ixgbe_init_eeprom_params_generic; 85 /* If EEPROM is valid (bit 8 = 1), use EERD otherwise use bit bang */ 87 eeprom->ops.read = ixgbe_read_eerd_generic; 88 eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_generic; 90 eeprom->ops.read = ixgbe_read_eeprom_bit_bang_generic; 91 eeprom->ops.read_buffer = 94 eeprom->ops.write = ixgbe_write_eeprom_generic 1278 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; local [all...] |
| ixgbe_type.h | 244 #define IXGBE_GRC_APME 0x00000002 /* APM enabled in EEPROM */ 2356 #define IXGBE_EEC_SK 0x00000001 /* EEPROM Clock */ 2357 #define IXGBE_EEC_CS 0x00000002 /* EEPROM Chip Select */ 2358 #define IXGBE_EEC_DI 0x00000004 /* EEPROM Data In */ 2359 #define IXGBE_EEC_DO 0x00000008 /* EEPROM Data Out */ 2364 #define IXGBE_EEC_REQ 0x00000040 /* EEPROM Access Request */ 2365 #define IXGBE_EEC_GNT 0x00000080 /* EEPROM Access Grant */ 2366 #define IXGBE_EEC_PRES 0x00000100 /* EEPROM Present */ 2367 #define IXGBE_EEC_ARD 0x00000200 /* EEPROM Auto Read Done */ 2371 /* EEPROM Addressing bits based on type (0-small, 1-large) * 4254 struct ixgbe_eeprom_info eeprom; member in struct:ixgbe_hw [all...] |
| /src/sys/dev/pci/bktr/ |
| bktr_card.c | 15 * reading the configuration EEPROM. 119 /* EEProm (128 * 8) on an STB card */ 124 /* EEProm (256 * 8) on a Hauppauge card */ 153 0, /* EEProm unknown */ 154 0, /* EEProm unknown */ 165 0, /* EEProm unknown */ 177 PFC8582_WADDR, /* EEProm type */ 189 X24C01_WADDR, /* EEProm type */ 213 PFC8582_WADDR, /* EEProm type */ 225 0, /* EEProm type * 576 u_char eeprom[256]; local [all...] |
| /src/sys/dev/sun/ |
| eeprom.h | 1 /* $NetBSD: eeprom.h,v 1.3 2008/04/28 20:23:58 martin Exp $ */ 36 * Structure/definitions for the Sun3/Sun4 EEPROM. 51 struct eeprom { struct 152 * 0x58: EEPROM tables 156 uint8_t eeKeyboardID; /* for EEPROM key tables */
|
| /src/sys/dev/ic/ |
| iha.c | 501 struct iha_eeprom eeprom; local 505 iha_read_eeprom(sc, &eeprom); 507 conf = &eeprom.adapter[0]; 571 /* Enable desired SCSI termination configuration read from eeprom */ 2625 * iha_read_eeprom - read Serial EEPROM value & set to defaults 2629 iha_read_eeprom(struct iha_softc *sc, struct iha_eeprom *eeprom) 2633 uint16_t *tbuf = (uint16_t *)eeprom; 2636 /* Enable EEProm programming */ 2640 /* Read EEProm */ 2642 panic("%s: cannot read EEPROM", device_xname(sc->sc_dev)) 2772 struct iha_eeprom *eeprom = (struct iha_eeprom *)tbuf; local [all...] |
| /src/sys/arch/vax/vax/ |
| ka820.c | 124 char eeprom[KA820_EEPAGES * VAX_NBPG]; variable
|
| /src/sys/dev/pci/ |
| if_alc.c | 616 int eeprom, i; local 618 eeprom = 0; 623 * EEPROM found, let TWSI reload EEPROM configuration. 626 eeprom++; 671 printf("%s: reloading EEPROM timeout!\n", 675 printf("%s: EEPROM not found!\n", device_xname(sc->sc_dev)); 677 if (eeprom != 0) { 741 /* Try to reload station address from EEPROM or FLASH. */ 763 printf("%s: reloading EEPROM/FLASH timed out!\n" [all...] |
| trm.c | 448 * test checksum of eeprom.. & initialize softc... 517 struct trm_nvram eeprom; local 560 * EEPROM CHECKSUM 562 trm_check_eeprom(sc, &eeprom); 570 if (eeprom.channel_cfg & NAC_POWERON_SCSI_RESET) 574 sc->sc_id = eeprom.scsi_id; 612 tconf = &eeprom.target[target]; 2409 * read seeprom 128 bytes to struct eeprom and check checksum. 2413 trm_check_eeprom(struct trm_softc *sc, struct trm_nvram *eeprom) 2421 trm_eeprom_read_all(sc, eeprom); [all...] |