/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | eeprom.c | 8 #include "eeprom.h" 12 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_check_eeprom() local 13 u16 val = get_unaligned_le16(eeprom); in mt7996_check_eeprom() 32 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_load_default() local 46 memcpy(eeprom, fw->data, MT7996_EEPROM_SIZE); in mt7996_eeprom_load_default() 78 /* read eeprom data from efuse */ in mt7996_eeprom_load() 114 u8 *eeprom = phy->dev->mt76.eeprom.data; in mt7996_eeprom_parse_band_config() local 115 u32 val = eeprom[MT_EE_WIFI_CONF]; in mt7996_eeprom_parse_band_config() 123 val = eeprom[MT_EE_WIFI_CONF + 1]; in mt7996_eeprom_parse_band_config() 152 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_parse_hw_cap() local [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | eeprom.c | 6 #include "eeprom.h" 11 u8 *eeprom = mdev->eeprom.data; in mt7915_eeprom_load_precal() local 12 u32 val = eeprom[MT_EE_DO_PRE_CAL]; in mt7915_eeprom_load_precal() 33 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_check_eeprom() local 34 u16 val = get_unaligned_le16(eeprom); in mt7915_check_eeprom() 84 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_load_default() local 98 memcpy(eeprom, fw->data, mt7915_eeprom_size(dev)); in mt7915_eeprom_load_default() 131 /* read eeprom data from efuse */ in mt7915_eeprom_load() 146 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_parse_band_config() local 150 val = eeprom[MT_EE_WIFI_CONF + band]; in mt7915_eeprom_parse_band_config() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_diagnostics.c | 293 * Read the first three bytes of the eeprom in order to get the needed info 300 mlx5_get_eeprom_info(struct mlx5_core_dev *dev, struct mlx5_eeprom *eeprom) in mlx5_get_eeprom_info() argument 306 ret = mlx5_query_module_num(dev, &eeprom->module_num); in mlx5_get_eeprom_info() 313 ret = mlx5_query_eeprom(dev, eeprom->i2c_addr, eeprom->page_num, in mlx5_get_eeprom_info() 314 eeprom->device_addr, MLX5_EEPROM_INFO_BYTES, eeprom->module_num, &data, in mlx5_get_eeprom_info() 318 "Failed query EEPROM module error=0x%x\n", ret); in mlx5_get_eeprom_info() 324 eeprom->type = MLX5_ETH_MODULE_SFF_8436; in mlx5_get_eeprom_info() 325 eeprom->len = MLX5_ETH_MODULE_SFF_8436_LEN; in mlx5_get_eeprom_info() 331 eeprom->type = MLX5_ETH_MODULE_SFF_8636; in mlx5_get_eeprom_info() 332 eeprom->len = MLX5_ETH_MODULE_SFF_8636_LEN; in mlx5_get_eeprom_info() [all …]
|
/freebsd/tools/tools/ath/athprom/ |
H A D | athprom.c | 37 #define IS_VERS(op, v) (eeprom.ee_version op (v)) 58 #define eeprom eep.legacy macro 78 /* find the template using the eeprom version */ in opentemplate() 79 snprintf(filename, sizeof(filename), "%s/eeprom-%d.%d", in opentemplate() 80 dir, eeprom.ee_version >> 12, eeprom.ee_version & 0xfff); in opentemplate() 84 snprintf(filename, sizeof(filename), "%s/eeprom-%d", in opentemplate() 85 dir, eeprom.ee_version >> 12); in opentemplate() 138 errx(1, "%s: invalid eeprom offset %s", in main() 145 errx(1, "%s: invalid eeprom value %s", in main() 168 "v%d.%d EEPROM", eeprom.ee_version >> 12, in main() [all …]
|
/freebsd/sys/dev/igc/ |
H A D | igc_nvm.c | 75 * igc_raise_eec_clk - Raise EEPROM clock 77 * @eecd: pointer to the EEPROM 79 * Enable/Raise the EEPROM clock bit. 90 * igc_lower_eec_clk - Lower EEPROM clock 92 * @eecd: pointer to the EEPROM 94 * Clear/Lower the EEPROM clock bit. 105 * igc_shift_out_eec_bits - Shift data bits our to the EEPROM 107 * @data: data to send to the EEPROM 110 * We need to shift 'count' bits out to the EEPROM. So, the value in the 111 * "data" parameter will be shifted out to the EEPROM one bit at a time. [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/nvmem/ |
H A D | lpc1857-eeprom.txt | 1 * NXP LPC18xx EEPROM memory NVMEM driver 4 - compatible: Should be "nxp,lpc1857-eeprom" 8 - reg: EEPROM registers. 9 - mem: EEPROM address space. 12 - eeprom: EEPROM operating clock. 14 the EEPROM in reset. 15 - interrupts: Should contain EEPROM interrupt. 19 eeprom: eeprom@4000e000 { 20 compatible = "nxp,lpc1857-eeprom"; 25 clock-names = "eeprom";
|
H A D | zii,rave-sp-eeprom.txt | 1 Zodiac Inflight Innovations RAVE EEPROM Bindings 3 RAVE SP EEPROM device is a "MFD cell" device exposing physical EEPROM 11 - compatible: Should be "zii,rave-sp-eeprom" 15 - zii,eeprom-name: Unique EEPROM identifier describing its function in the 29 eeprom@a4 { 30 compatible = "zii,rave-sp-eeprom"; 34 zii,eeprom-name = "main-eeprom";
|
/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_x540.c | 63 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_X540() local 73 /* EEPROM */ in ixgbe_init_ops_X540() 74 eeprom->ops.init_params = ixgbe_init_eeprom_params_X540; in ixgbe_init_ops_X540() 75 eeprom->ops.read = ixgbe_read_eerd_X540; in ixgbe_init_ops_X540() 76 eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_X540; in ixgbe_init_ops_X540() 77 eeprom->ops.write = ixgbe_write_eewr_X540; in ixgbe_init_ops_X540() 78 eeprom->ops.write_buffer = ixgbe_write_eewr_buffer_X540; in ixgbe_init_ops_X540() 79 eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X540; in ixgbe_init_ops_X540() 80 eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X540; in ixgbe_init_ops_X540() 81 eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X540; in ixgbe_init_ops_X540() [all …]
|
H A D | ixgbe_common.c | 71 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_generic() local 77 /* EEPROM */ in ixgbe_init_ops_generic() 78 eeprom->ops.init_params = ixgbe_init_eeprom_params_generic; in ixgbe_init_ops_generic() 79 /* If EEPROM is valid (bit 8 = 1), use EERD otherwise use bit bang */ in ixgbe_init_ops_generic() 81 eeprom->ops.read = ixgbe_read_eerd_generic; in ixgbe_init_ops_generic() 82 eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_generic; in ixgbe_init_ops_generic() 84 eeprom->ops.read = ixgbe_read_eeprom_bit_bang_generic; in ixgbe_init_ops_generic() 85 eeprom->ops.read_buffer = in ixgbe_init_ops_generic() 88 eeprom->ops.write = ixgbe_write_eeprom_generic; in ixgbe_init_ops_generic() 89 eeprom->ops.write_buffer = ixgbe_write_eeprom_buffer_bit_bang_generic; in ixgbe_init_ops_generic() [all …]
|
H A D | ixgbe_api.c | 344 * EEPROM into RAR0 357 * Reads the SAN MAC address from the EEPROM, if it's available. This is 371 * Writes A SAN MAC address to the EEPROM. 382 * @device_caps: the EEPROM word for device capabilities 384 * Reads the extra device capabilities from the EEPROM 393 * ixgbe_get_wwn_prefix - Get alternative WWNN/WWPN prefix from the EEPROM 398 * This function will read the EEPROM from the alternative SAN MAC address 410 * ixgbe_get_fcoe_boot_status - Get FCOE boot status from EEPROM 473 * ixgbe_read_pba_string - Reads part number string from EEPROM 475 * @pba_num: stores the part number string from the EEPROM [all …]
|
/freebsd/sys/dev/e1000/ |
H A D | e1000_nvm.c | 115 * e1000_raise_eec_clk - Raise EEPROM clock 117 * @eecd: pointer to the EEPROM 119 * Enable/Raise the EEPROM clock bit. 130 * e1000_lower_eec_clk - Lower EEPROM clock 132 * @eecd: pointer to the EEPROM 134 * Clear/Lower the EEPROM clock bit. 145 * e1000_shift_out_eec_bits - Shift data bits our to the EEPROM 147 * @data: data to send to the EEPROM 150 * We need to shift 'count' bits out to the EEPROM. So, the value in the 151 * "data" parameter will be shifted out to the EEPROM one bit at a time. [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/ |
H A D | iwl-eeprom-parse.c |
|
H A D | iwl-eeprom-read.c |
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | eeprom.c | 13 #include "eeprom.h" 96 u16 val = get_unaligned_le16(dev->eeprom.data); in mt7615_check_eeprom() 111 u8 val, *eeprom = dev->mt76.eeprom.data; in mt7615_eeprom_parse_hw_band_cap() local 133 eeprom[MT_EE_WIFI_CONF]); in mt7615_eeprom_parse_hw_band_cap() 153 u8 *eeprom = dev->mt76.eeprom.data; in mt7615_eeprom_parse_hw_cap() local 161 eeprom[MT7663_EE_HW_CONF1]); in mt7615_eeprom_parse_hw_cap() 165 /* read tx-rx mask from eeprom */ in mt7615_eeprom_parse_hw_cap() 170 eeprom[MT_EE_NIC_CONF_0]); in mt7615_eeprom_parse_hw_cap() 285 u8 *eeprom = dev->mt76.eeprom.data; in mt7615_apply_cal_free_data() local 297 eeprom[ical[i]] = otp[ical[i]]; in mt7615_apply_cal_free_data() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | eeprom.c | 5 #include "eeprom.h" 105 u8 *eeprom = dev->mt76.eeprom.data; in mt7603_apply_cal_free_data() local 109 if (!np || !of_property_read_bool(np, "mediatek,eeprom-merge-otp")) in mt7603_apply_cal_free_data() 121 eeprom[offset] = efuse[offset]; in mt7603_apply_cal_free_data() 139 u16 val = get_unaligned_le16(dev->eeprom.data); in mt7603_check_eeprom() 158 u8 *eeprom; in mt7603_eeprom_init() local 169 memcpy(dev->mt76.eeprom.data, dev->mt76.otp.data, in mt7603_eeprom_init() 173 eeprom = (u8 *)dev->mt76.eeprom.data; in mt7603_eeprom_init() 175 memcpy(dev->mphy.macaddr, eeprom + MT_EE_MAC_ADDR, ETH_ALEN); in mt7603_eeprom_init() 179 if (FIELD_GET(MT_EE_NIC_CONF_0_RX_PATH, eeprom[MT_EE_NIC_CONF_0]) == 1 || in mt7603_eeprom_init() [all …]
|
/freebsd/sys/dev/usb/net/ |
H A D | if_udavreg.h | 88 #define UDAV_EPCR 0x0b /* EEPROM & PHY Control Register */ 89 #define UDAV_EPCR_REEP (1<<5) /* Reload EEPROM */ 90 #define UDAV_EPCR_WEP (1<<4) /* Write EEPROM enable */ 91 #define UDAV_EPCR_EPOS (1<<3) /* EEPROM or PHY Operation Select */ 92 #define UDAV_EPCR_ERPRR (1<<2) /* EEPROM/PHY Register Read Command */ 93 #define UDAV_EPCR_ERPRW (1<<1) /* EEPROM/PHY Register Write Command */ 94 #define UDAV_EPCR_ERRE (1<<0) /* EEPROM/PHY Access Status */ 96 #define UDAV_EPAR 0x0c /* EEPROM & PHY Control Register */ 99 #define UDAV_EPAR_EROA (1<<0) /* EEPROM Word/PHY Register Address */ 102 #define UDAV_EPDRL 0x0d /* EEPROM & PHY Data Register */ [all …]
|
/freebsd/share/man/man4/ |
H A D | uftdi.4 | 174 Read one or more words from the configuration eeprom. 175 The FTDI chip performs eeprom I/O in 16-bit words. 182 array will contain the requested values from eeprom after the call. 192 The FT232R chip has an internal eeprom. 193 An external serial eeprom is optional on other FTDI chips. 194 The eeprom may contain 64, 128, or 256 words, 197 When no eeprom is present, all words in the returned data are 0xffff. 198 An erased eeprom also reads as all 0xffff. 200 Write one or more words to the configuration eeprom. 206 The FTDI chip does a blind write to the eeprom, and it will appear [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/misc/ |
H A D | eeprom-93xx46.yaml | 4 $id: http://devicetree.org/schemas/misc/eeprom-93xx46.yaml# 7 title: Microchip 93xx46 SPI compatible EEPROM family dt bindings 19 - eeprom-93xx46 28 description: chip select of EEPROM 36 parameter-less property which disables writes to the EEPROM 42 of EEPROM (e.g. for SPI bus multiplexing) 62 eeprom@0 { 63 compatible = "eeprom-93xx46";
|
H A D | idt_89hpesx.txt | 1 EEPROM / CSR SMBus-slave interface of IDT 89HPESx devices 22 Optionally there can be EEPROM-compatible subnode: 23 - compatible: There are five EEPROM devices supported: 24c32, 24c64, 24c128, 25 - reg: Custom address of EEPROM device (If not specified IDT 89HPESx 26 (optional) device will try to communicate with EEPROM sited by default 28 - read-only : Parameterless property disables writes to the EEPROM 38 eeprom@50 {
|
/freebsd/sys/contrib/device-tree/Bindings/eeprom/ |
H A D | microchip,93lc46b.yaml | 4 $id: http://devicetree.org/schemas/eeprom/microchip,93lc46b.yaml# 7 title: Microchip 93xx46 SPI compatible EEPROM family 19 - eeprom-93xx46 28 description: chip select of EEPROM 33 parameter-less property which disables writes to the EEPROM 39 of EEPROM (e.g. for SPI bus multiplexing) 62 eeprom@0 { 63 compatible = "eeprom-93xx46";
|
H A D | at25.yaml | 4 $id: http://devicetree.org/schemas/eeprom/at25.yaml# 15 - pattern: "^eeprom@[0-9a-f]{1,2}$" 18 # There are multiple known vendors who manufacture EEPROM chips compatible 53 Size of the eeprom page. FRAMs don't have pages. 58 Total eeprom size in bytes. 74 Disable writes to the eeprom. 86 Total eeprom size in bytes. Deprecated, use "size" property instead. 92 Addr-mode flags, as defined in include/linux/spi/eeprom.h. 99 Size of the eeprom page. Deprecated, use "pagesize" property instead. 131 eeprom@0 {
|
H A D | at25.txt | 13 - pagesize : size of the eeprom page 14 - size : total eeprom size in bytes 22 - read-only : this parameter-less property disables writes to the eeprom 27 - at25,byte-len : total eeprom size in bytes 28 - at25,addr-mode : addr-mode flags, as defined in include/linux/spi/eeprom.h 29 - at25,page-size : size of the eeprom page 34 eeprom@0 {
|
/freebsd/sys/contrib/device-tree/src/arm/aspeed/ |
H A D | aspeed-bmc-facebook-catalina.dts | 235 // IO Mezz 0 FRU EEPROM 236 eeprom@50 { 285 // HDD FRU EEPROM 286 eeprom@52 { 406 // IO Mezz 1 FRU EEPROM 407 eeprom@50 { 528 // PDB FRU EEPROM 529 eeprom@54 { 561 // OSFP FRU EEPROM 562 eeprom@51 { [all …]
|
/freebsd/sys/dev/ath/ath_hal/ |
H A D | ah_eeprom_v4k.c | 146 /* Do structure specific swaps if Eeprom format is non native to host */ 210 * Get channel value from binary representation held in eeprom 226 * Copy EEPROM Conformance Testing Limits contents 263 * Reclaim any EEPROM-related storage. 291 * Don't check magic if we're supplied with an EEPROM block, in ath_hal_v4kEepromAttach() 298 "%s Error reading Eeprom MAGIC\n", __func__); in ath_hal_v4kEepromAttach() 301 HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s Eeprom Magic = 0x%x\n", in ath_hal_v4kEepromAttach() 320 "%s eeprom read error at offset 0x%x\n", in ath_hal_v4kEepromAttach() 325 /* Convert to eeprom native eeprom endian format */ in ath_hal_v4kEepromAttach() 336 * At this point, we're in the native eeprom endian format in ath_hal_v4kEepromAttach() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/ |
H A D | eeprom.c | 10 #include "eeprom.h" 17 void *src = dev->mt76.eeprom.data + MT_EE_MAC_ADDR; in mt76x2_eeprom_get_macaddr() 81 u8 *eeprom = dev->mt76.eeprom.data; in mt76x2_apply_cal_free_data() local 83 eeprom[MT_EE_TX_POWER_0_START_5G], in mt76x2_apply_cal_free_data() 84 eeprom[MT_EE_TX_POWER_0_START_5G + 1], in mt76x2_apply_cal_free_data() 85 eeprom[MT_EE_TX_POWER_1_START_5G], in mt76x2_apply_cal_free_data() 86 eeprom[MT_EE_TX_POWER_1_START_5G + 1] in mt76x2_apply_cal_free_data() 91 if (!np || !of_property_read_bool(np, "mediatek,eeprom-merge-otp")) in mt76x2_apply_cal_free_data() 100 eeprom[offset] = efuse[offset]; in mt76x2_apply_cal_free_data() 105 memcpy(eeprom + MT_EE_TX_POWER_0_START_5G, prev_grp0, 2); in mt76x2_apply_cal_free_data() [all …]
|