| /netbsd-src/external/gpl3/gdb/dist/sim/ppc/ |
| H A D | hw_eeprom.c | 213 hw_eeprom_device *eeprom = (hw_eeprom_device*)device_data(me); in hw_eeprom_init_data() local 217 eeprom->input_file_name = device_find_string_property(me, "input-file"); in hw_eeprom_init_data() 219 eeprom->input_file_name = device_find_string_property(me, "output-file"); in hw_eeprom_init_data() 222 if (eeprom->sectors == NULL) { in hw_eeprom_init_data() 223 eeprom->nr_sectors = device_find_integer_property(me, "nr-sectors"); in hw_eeprom_init_data() 224 eeprom->sizeof_sector = device_find_integer_property(me, "sector-size"); in hw_eeprom_init_data() 225 eeprom->sectors = zalloc(eeprom->nr_sectors); in hw_eeprom_init_data() 228 memset(eeprom->sectors, 0, eeprom->nr_sectors); in hw_eeprom_init_data() 231 if (eeprom->memory == NULL) { in hw_eeprom_init_data() 232 eeprom->sizeof_memory = eeprom->sizeof_sector * eeprom->nr_sectors; in hw_eeprom_init_data() [all …]
|
| /netbsd-src/sys/arch/macppc/dev/ |
| H A D | uni-n.c | 63 static uint8_t eeprom[2][160]; variable 125 memset(eeprom, 0, sizeof(eeprom)); in uni_n_attach() 127 OF_getprop(cpuid, "cpuid", eeprom[0], sizeof(eeprom[0])); in uni_n_attach() 128 if (eeprom[0][1] != 0) in uni_n_attach() 132 OF_getprop(cpuid, "cpuid", eeprom[1], sizeof(eeprom[1])); in uni_n_attach() 133 if (eeprom[1][1] != 0) in uni_n_attach() 189 if (eeprom[cpu][1] == 0) return 0; in get_cpuid() 190 memcpy(buf, eeprom[cpu], sizeof(eeprom[cpu])); in get_cpuid() 191 return sizeof(eeprom[cpu]); in get_cpuid()
|
| H A D | fcu.c | 241 uint8_t *eeprom = NULL; in fcu_attach() local 245 eeprom = sc->sc_eeprom0; in fcu_attach() 252 eeprom = sc->sc_eeprom0; in fcu_attach() 254 eeprom = sc->sc_eeprom1; in fcu_attach() 263 KASSERT(eeprom != NULL); in fcu_attach() 264 memcpy(&rmin, &eeprom[0x54], 2); in fcu_attach() 265 memcpy(&rmax, &eeprom[0x56], 2); in fcu_attach() 270 KASSERT(eeprom != NULL); in fcu_attach() 271 memcpy(&rmin, &eeprom[0x4c], 2); in fcu_attach() 272 memcpy(&rmax, &eeprom[0x4e], 2); in fcu_attach() [all …]
|
| /netbsd-src/sys/dev/pci/bktr/ |
| H A D | bktr_card.c | 576 u_char eeprom[256]; in probeCard() local 638 if(readEEProm(bktr, 0, 256, (u_char *) &eeprom)) in probeCard() 641 byte_252 = (unsigned int)eeprom[252]; in probeCard() 642 byte_253 = (unsigned int)eeprom[253]; in probeCard() 643 byte_254 = (unsigned int)eeprom[254]; in probeCard() 644 byte_255 = (unsigned int)eeprom[255]; in probeCard() 761 readEEProm(bktr, 0, 128, (u_char *) &eeprom); in probeCard() 764 if (eeprom[0] == 0x84) { in probeCard() 772 if ((eeprom[0] == 'M') &&(eeprom[1] == 'M') in probeCard() 773 &&(eeprom[2] == 'A') &&(eeprom[3] == 'C')) { in probeCard() [all …]
|
| /netbsd-src/sys/dev/pci/ixgbe/ |
| H A D | ixgbe_x540.c | 69 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_X540() local 79 eeprom->ops.init_params = ixgbe_init_eeprom_params_X540; in ixgbe_init_ops_X540() 80 eeprom->ops.read = ixgbe_read_eerd_X540; in ixgbe_init_ops_X540() 81 eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_X540; in ixgbe_init_ops_X540() 82 eeprom->ops.write = ixgbe_write_eewr_X540; in ixgbe_init_ops_X540() 83 eeprom->ops.write_buffer = ixgbe_write_eewr_buffer_X540; in ixgbe_init_ops_X540() 84 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X540; in ixgbe_init_ops_X540() 85 eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X540; in ixgbe_init_ops_X540() 86 eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X540; in ixgbe_init_ops_X540() 376 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_eeprom_params_X540() local [all …]
|
| H A D | ixgbe_common.c | 77 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_generic() local 84 eeprom->ops.init_params = ixgbe_init_eeprom_params_generic; in ixgbe_init_ops_generic() 87 eeprom->ops.read = ixgbe_read_eerd_generic; in ixgbe_init_ops_generic() 88 eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_generic; in ixgbe_init_ops_generic() 90 eeprom->ops.read = ixgbe_read_eeprom_bit_bang_generic; in ixgbe_init_ops_generic() 91 eeprom->ops.read_buffer = in ixgbe_init_ops_generic() 94 eeprom->ops.write = ixgbe_write_eeprom_generic; in ixgbe_init_ops_generic() 95 eeprom->ops.write_buffer = ixgbe_write_eeprom_buffer_bit_bang_generic; in ixgbe_init_ops_generic() 96 eeprom->ops.validate_checksum = in ixgbe_init_ops_generic() 98 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_generic; in ixgbe_init_ops_generic() [all …]
|
| H A D | if_bypass.c | 582 struct ixgbe_bypass_eeprom eeprom[BYPASS_MAX_LOGS]; in ixgbe_bp_log() local 622 eeprom[count].logs = 0; in ixgbe_bp_log() 623 eeprom[count].actions = 0; in ixgbe_bp_log() 633 eeprom[count].logs += data << (8 * i); in ixgbe_bp_log() 638 log_off + i, &eeprom[count].actions); in ixgbe_bp_log() 644 if (!(eeprom[count].logs & BYPASS_LOG_CLEAR_M)) in ixgbe_bp_log() 651 eeprom[count].clear_off = log_off; in ixgbe_bp_log() 662 u32 time = eeprom[count].logs & BYPASS_LOG_TIME_M; in ixgbe_bp_log() 663 u32 event = (eeprom[count].logs & BYPASS_LOG_EVENT_M) >> in ixgbe_bp_log() 665 u8 action = eeprom[count].actions & BYPASS_LOG_ACTION_M; in ixgbe_bp_log() [all …]
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
| H A D | aspeed-bmc-ibm-rainier.dts | 386 eeprom@0 { 402 eeprom@0 { 419 eeprom@0 { 436 eeprom@0 { 530 eeprom@0 { 546 eeprom@0 { 563 eeprom@0 { 580 eeprom@0 { 674 eeprom@0 { 690 eeprom@0 { [all …]
|
| H A D | aspeed-bmc-quanta-q71l.dts | 180 eeprom@54 { 186 eeprom@57 { 302 eeprom@56 { 380 eeprom@52 { 390 eeprom@50 { 465 eeprom@50 { 471 eeprom@51 { 477 eeprom@52 { 483 eeprom@53 { 495 eeprom@50 { [all …]
|
| H A D | aspeed-bmc-ibm-everest.dts | 270 eeprom@51 { 394 eeprom@54 { 507 eeprom@52 { 573 eeprom@50 { 639 eeprom@51 { 803 eeprom@50 { 869 eeprom@51 { 935 eeprom@52 { 1001 eeprom@53 { 1080 eeprom@50 { [all …]
|
| H A D | vf610-zii-spb4.dts | 131 eeprom-length = <65536>; 199 eeprom@50 { 205 eeprom@52 { 254 eeprom@a3 { 255 compatible = "zii,rave-sp-eeprom"; 259 zii,eeprom-name = "main-eeprom";
|
| H A D | vf610-zii-ssmb-spu3.dts | 145 eeprom-length = <65536>; 218 eeprom@50 { 224 eeprom@52 { 267 eeprom@a3 { 268 compatible = "zii,rave-sp-eeprom"; 272 zii,eeprom-name = "main-eeprom";
|
| H A D | vf610-zii-dev-rev-b.dts | 40 eeprom-length = <512>; 124 eeprom-length = <512>; 360 sfp1: eeprom@50 { 371 sfp2: eeprom@50 { 382 sfp3: eeprom@50 { 393 sfp4: eeprom@50 { 412 pinctrl_gpio_e6185_eeprom_sel: pinctrl-gpio-e6185-eeprom-spi0 {
|
| H A D | imx51-zii-rdu1.dts | 154 eeprom@0 { 155 compatible = "eeprom-93xx46"; 577 eeprom@a3 { 578 compatible = "zii,rave-sp-eeprom"; 582 zii,eeprom-name = "dds-eeprom"; 585 eeprom@a4 { 586 compatible = "zii,rave-sp-eeprom"; 590 zii,eeprom-name = "main-eeprom"; 593 eeprom@ae { 594 compatible = "zii,rave-sp-eeprom"; [all …]
|
| H A D | imx7d-zii-rmu2.dts | 177 eeprom@50 { 182 eeprom@52 { 217 eeprom@a3 { 218 compatible = "zii,rave-sp-eeprom"; 222 zii,eeprom-name = "main-eeprom";
|
| H A D | imx51-zii-scu2-mezz.dts | 53 eeprom-length = <512>; 296 eeprom@50 { 324 eeprom@a4 { 325 compatible = "zii,rave-sp-eeprom"; 329 zii,eeprom-name = "main-eeprom";
|
| /netbsd-src/sys/dev/isa/ |
| H A D | if_ate.c | 212 uint8_t eeprom[FE_EEPROM_SIZE]; in ate_find() local 262 mb86965_read_eeprom(iot, ioh, eeprom); in ate_find() 265 if (eeprom[FE_EEPROM_CONF] != bus_space_read_1(iot, ioh, FE_BMPR19)) { in ate_find() 279 switch (eeprom[FE_ATI_EEP_REVISION] & 0xf0) { in ate_find() 289 if (eeprom[FE_ATI_EEP_MAGIC] & 0x04) { in ate_find() 309 uint8_t eeprom[FE_EEPROM_SIZE]; in ate_detect() local 313 mb86965_read_eeprom(iot, ioh, eeprom); in ate_detect() 314 memcpy(enaddr, eeprom + FE_ATI_EEP_ADDR, ETHER_ADDR_LEN); in ate_detect() 326 switch (eeprom[FE_ATI_EEP_MODEL]) { in ate_detect()
|
| /netbsd-src/sys/dev/pci/ |
| H A D | trm.c | 517 struct trm_nvram eeprom; in trm_init() local 562 trm_check_eeprom(sc, &eeprom); in trm_init() 570 if (eeprom.channel_cfg & NAC_POWERON_SCSI_RESET) in trm_init() 574 sc->sc_id = eeprom.scsi_id; in trm_init() 612 tconf = &eeprom.target[target]; in trm_init() 2413 trm_check_eeprom(struct trm_softc *sc, struct trm_nvram *eeprom) in trm_check_eeprom() argument 2421 trm_eeprom_read_all(sc, eeprom); in trm_check_eeprom() 2422 ep = (uint16_t *)eeprom; in trm_check_eeprom() 2432 eeprom->subvendor_id[0] = PCI_VENDOR_TEKRAM2 & 0xFF; in trm_check_eeprom() 2433 eeprom->subvendor_id[1] = PCI_VENDOR_TEKRAM2 >> 8; in trm_check_eeprom() [all …]
|
| /netbsd-src/sys/dev/usb/ |
| H A D | if_axe.c | 572 uint16_t eeprom, val; in axe_ax88178_init() local 576 if (axe_cmd(sc, AXE_CMD_SROM_READ, 0, 0x0017, &eeprom) != 0) in axe_ax88178_init() 577 eeprom = 0xffff; in axe_ax88178_init() 580 eeprom = le16toh(eeprom); in axe_ax88178_init() 582 DPRINTF("EEPROM is %#jx", eeprom, 0, 0, 0); in axe_ax88178_init() 585 if (eeprom == 0xffff) { in axe_ax88178_init() 590 phymode = eeprom & 0x7f; in axe_ax88178_init() 591 gpio0 = (eeprom & 0x80) ? 0 : 1; in axe_ax88178_init() 592 ledmode = eeprom >> 8; in axe_ax88178_init() 785 uint16_t eeprom; in axe_ax88772b_init() local [all …]
|
| /netbsd-src/external/bsd/file/dist/magic/magdir/ |
| H A D | rpi | 33 # #raspberry-pi-4-boot-eeprom 34 # Reference: https://github.com/raspberrypi/rpi-eeprom/blob/master/rpi-eeprom-config 39 !:mime application/x-raspberry-eeprom
|
| /netbsd-src/sys/arch/dreamcast/dev/g2/ |
| H A D | if_mbe_g2.c | 159 uint8_t eeprom[FE_EEPROM_SIZE]; in mbe_g2_detect() local 168 memset(eeprom, 0, FE_EEPROM_SIZE); in mbe_g2_detect() 171 mb86965_read_eeprom(iot, ioh, eeprom); in mbe_g2_detect() 172 memcpy(enaddr, eeprom, ETHER_ADDR_LEN); in mbe_g2_detect()
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-lx2160a-cex7.dtsi | 68 eeprom@50 { 73 eeprom@51 { 78 eeprom@53 { 83 eeprom@57 {
|
| H A D | imx8mq-zii-ultra.dtsi | 156 eeprom-length = <512>; 418 eeprom@54 { 511 eeprom@a3 { 512 compatible = "zii,rave-sp-eeprom"; 514 zii,eeprom-name = "dds-eeprom"; 517 eeprom@a4 { 518 compatible = "zii,rave-sp-eeprom"; 522 zii,eeprom-name = "main-eeprom";
|
| /netbsd-src/sys/dev/i2c/ |
| H A D | adadc.c | 131 uint32_t eeprom[40]; in adadc_attach() local 191 error = get_cpuid(which_cpu, (uint8_t *)eeprom); in adadc_attach() 193 sc->sc_diode_slope = eeprom[0x11] >> 16; in adadc_attach() 194 sc->sc_diode_offset = (int16_t)(eeprom[0x11] & 0xffff) << 12; in adadc_attach()
|
| /netbsd-src/sys/arch/cesfic/cesfic/ |
| H A D | eeprom.c | 124 static struct EEPROMData eeprom; variable 133 res = GetEEPROMData(&eeprom); in cesfic_getetheraddr() 140 memcpy(buf, eeprom.EtherAddr, 6); in cesfic_getetheraddr()
|