/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: ISC 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() 19 return -EINVAL; in mt7996_check_eeprom() 32 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_load_default() local 36 ret = request_firmware(&fw, mt7996_eeprom_name(dev), dev->mt76.dev); in mt7996_eeprom_load_default() 40 if (!fw || !fw->data) { in mt7996_eeprom_load_default() 41 dev_err(dev->mt76.dev, "Invalid default bin\n"); in mt7996_eeprom_load_default() 42 ret = -EINVAL; in mt7996_eeprom_load_default() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: ISC 6 #include "eeprom.h" 10 struct mt76_dev *mdev = &dev->mt76; in mt7915_eeprom_load_precal() 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() 15 if (!dev->flash_mode) in mt7915_eeprom_load_precal() 22 dev->cal = devm_kzalloc(mdev->dev, val, GFP_KERNEL); in mt7915_eeprom_load_precal() 23 if (!dev->cal) in mt7915_eeprom_load_precal() 24 return -ENOMEM; in mt7915_eeprom_load_precal() 26 offs = is_mt7915(&dev->mt76) ? MT_EE_PRECAL : MT_EE_PRECAL_V2; in mt7915_eeprom_load_precal() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/ |
H A D | iwl-eeprom-parse.c |
|
H A D | iwl-eeprom-parse.h |
|
/freebsd/sys/dev/igc/ |
H A D | igc_nvm.c | 1 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 13 * igc_init_nvm_ops_generic - Initialize NVM function pointers 16 * Setups up the function pointers to no-op functions 20 struct igc_nvm_info *nvm = &hw->nvm; in igc_init_nvm_ops_generic() 24 nvm->ops.init_params = igc_null_ops_generic; in igc_init_nvm_ops_generic() 25 nvm->ops.acquire = igc_null_ops_generic; in igc_init_nvm_ops_generic() 26 nvm->ops.read = igc_null_read_nvm; in igc_init_nvm_ops_generic() 27 nvm->ops.release = igc_null_nvm_generic; in igc_init_nvm_ops_generic() 28 nvm->ops.reload = igc_reload_nvm_generic; in igc_init_nvm_ops_generic() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_diagnostics.c | 1 /*- 2 * Copyright (c) 2013-2017, Mellanox Technologies, Ltd. All rights reserved. 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 55 return -1; in mlx5_core_get_index_of_diag_counter() 62 return -1; in mlx5_core_get_index_of_diag_counter() 106 return -ENOMEM; in mlx5_core_set_diagnostics_full() 122 int index = -1; in mlx5_core_set_diagnostics_full() 188 return -ENOMEM; in mlx5_core_get_diagnostics_full() 203 pdiag->array, in mlx5_core_get_diagnostics_full() 210 pgen->array, in mlx5_core_get_diagnostics_full() [all …]
|
H A D | mlx5_fwdump.c | 1 /*- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48 for (sz = 0, r = rege; r->cnt != 0; r++) in mlx5_fwdump_getsize() 49 sz += r->cnt; in mlx5_fwdump_getsize() 57 mtx_assert(&mdev->dump_lock, MA_OWNED); in mlx5_fwdump_destroy_dd() 58 free(mdev->dump_data, M_MLX5_DUMP); in mlx5_fwdump_destroy_dd() 59 mdev->dump_data = NULL; in mlx5_fwdump_destroy_dd() 75 mdev->dump_data = NULL; in mlx5_fwdump_prep() 90 "Unable to find vendor-specific capability, error %d\n", in mlx5_fwdump_prep() 102 dev = mdev->pdev->dev.bsddev; in mlx5_fwdump_prep() [all …]
|
/freebsd/sys/dev/e1000/ |
H A D | e1000_nvm.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 40 * e1000_init_nvm_ops_generic - Initialize NVM function pointers 43 * Setups up the function pointers to no-op functions 47 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_ops_generic() 51 nvm->ops.init_params = e1000_null_ops_generic; in e1000_init_nvm_ops_generic() 52 nvm->ops.acquire = e1000_null_ops_generic; in e1000_init_nvm_ops_generic() 53 nvm->ops.read = e1000_null_read_nvm; in e1000_init_nvm_ops_generic() 54 nvm->ops.release = e1000_null_nvm_generic; in e1000_init_nvm_ops_generic() [all …]
|
H A D | e1000_i210.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 41 u16 *data); 43 static s32 e1000_valid_led_default_i210(struct e1000_hw *hw, u16 *data); 46 * e1000_acquire_nvm_i210 - Request for access to EEPROM 49 * Acquire the necessary semaphores for exclusive access to the EEPROM. 50 * Set the EEPROM access request bit and wait for EEPROM access grant bit. 52 * EEPROM access and return -E1000_ERR_NVM (-1). 66 * e1000_release_nvm_i210 - Release exclusive access to EEPROM [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: ISC 5 #include "eeprom.h" 8 mt7603_efuse_read(struct mt7603_dev *dev, u32 base, u16 addr, u8 *data) in mt7603_efuse_read() argument 21 return -ETIMEDOUT; in mt7603_efuse_read() 28 memset(data, 0xff, 16); in mt7603_efuse_read() 34 put_unaligned_le32(val, data + 4 * i); in mt7603_efuse_read() 51 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7603_efuse_init() 52 dev->mt76.otp.size = len; in mt7603_efuse_init() 53 if (!dev->mt76.otp.data) in mt7603_efuse_init() 54 return -ENOMEM; in mt7603_efuse_init() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: ISC 13 #include "eeprom.h" 16 u16 addr, u8 *data) in mt7615_efuse_read() argument 28 return -ETIMEDOUT; in mt7615_efuse_read() 35 memset(data, 0x0, 16); in mt7615_efuse_read() 41 put_unaligned_le32(val, data + 4 * i); in mt7615_efuse_read() 53 if (is_mt7663(&dev->mt76)) in mt7615_efuse_init() 60 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7615_efuse_init() 61 dev->mt76.otp.size = len; in mt7615_efuse_init() 62 if (!dev->mt76.otp.data) in mt7615_efuse_init() [all …]
|
/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_common.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 46 static void ixgbe_shift_out_eeprom_bits(struct ixgbe_hw *hw, u16 data, 57 u16 words, u16 *data); 59 u16 words, u16 *data); 64 * ixgbe_init_ops_generic - Inits function ptrs 71 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_generic() local 72 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_generic() 77 /* EEPROM */ in ixgbe_init_ops_generic() [all …]
|
H A D | ixgbe_x540.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 53 * ixgbe_init_ops_X540 - Inits func ptrs and MAC type 61 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X540() 62 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_ops_X540() 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() [all …]
|
H A D | ixgbe_api.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 61 * ixgbe_dcb_get_rtrup2tc - read rtrup2tc reg 69 if (hw->mac.ops.get_rtrup2tc) in ixgbe_dcb_get_rtrup2tc() 70 hw->mac.ops.get_rtrup2tc(hw, map); in ixgbe_dcb_get_rtrup2tc() 74 * ixgbe_init_shared_code - Initialize the shared code 96 switch (hw->mac.type) { in ixgbe_init_shared_code() 126 hw->mac.max_link_up_time = IXGBE_LINK_UP_TIME; in ixgbe_init_shared_code() 132 * ixgbe_set_mac_type - Sets MAC type [all …]
|
/freebsd/share/man/man4/ |
H A D | uftdi.4 | 24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 41 .Bd -ragged -offset indent 50 .Bd -literal -offset indent 59 .Bl -bullet -compact 93 .Bl -tag -width indent 116 .Bd -literal 142 data which either reflects pin state or is interpreted 158 Set the character which causes a partial FIFO full of data 174 Read one or more words from the configuration eeprom. 175 The FTDI chip performs eeprom I/O in 16-bit words. [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/nvmem/ |
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 7 Documentation/devicetree/bindings/mfd/zii,rave-sp.txt) 11 - compatible: Should be "zii,rave-sp-eeprom" 15 - zii,eeprom-name: Unique EEPROM identifier describing its function in the 18 Data cells: 20 Data cells are child nodes of eerpom node, bindings for which are 25 rave-sp { 26 compatible = "zii,rave-sp-rdu1"; 27 current-speed = <38400>; [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/misc/ |
H A D | eeprom-93xx46.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/misc/eeprom-93xx46.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Microchip 93xx46 SPI compatible EEPROM family dt bindings 10 - Cory Tusar <cory.tusar@pid1solutions.com> 15 - atmel,at93c46 16 - atmel,at93c46d 17 - atmel,at93c56 18 - atmel,at93c66 [all …]
|
H A D | eeprom-93xx46.txt | 4 - compatible : shall be one of: 9 "eeprom-93xx46" 11 - data-size : number of data bits per word (either 8 or 16) 14 - read-only : parameter-less property which disables writes to the EEPROM 15 - select-gpios : if present, specifies the GPIO that will be asserted prior to 16 each access to the EEPROM (e.g. for SPI bus multiplexing) 18 Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt 19 apply. In particular, "reg" and "spi-max-frequency" properties must be given. 22 eeprom@0 { 23 compatible = "eeprom-93xx46"; [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/eeprom/ |
H A D | microchip,93lc46b.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/eeprom/microchip,93lc46b.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Microchip 93xx46 SPI compatible EEPROM family 10 - Cory Tusar <cory.tusar@pid1solutions.com> 15 - atmel,at93c46 16 - atmel,at93c46d 17 - atmel,at93c56 18 - atmel,at93c66 [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: ISC 10 #include "eeprom.h" 17 void *src = dev->mt76.eeprom.data + MT_EE_MAC_ADDR; in mt76x2_eeprom_get_macaddr() 19 memcpy(dev->mphy.macaddr, src, ETH_ALEN); in mt76x2_eeprom_get_macaddr() 80 struct device_node *np = dev->mt76.dev->of_node; in mt76x2_apply_cal_free_data() 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() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ |
H A D | ah_eeprom_v1.h | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 25 * EEPROM defines for Version 1 Crete EEPROM. 27 * The EEPROM is segmented into three sections: 30 * Cardbus CIS tuples and vendor-specific data 31 * Atheros-specific data 33 * EEPROM entries are read 32-bits at a time through the PCI bus [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/net/wireless/ |
H A D | mediatek,mt76.txt | 11 - "mediatek,mt7628-wmac" for MT7628/MT7688 12 - "mediatek,mt7622-wmac" for MT7622 15 - reg: Address and length of the register set for the device. 16 - interrupts: Main device interrupt 19 - power-domains: phandle to the power domain that the WMAC is part of 20 - mediatek,infracfg: phandle to the infrastructure bus fabric syscon node 24 - ieee80211-freq-limit: See ieee80211.txt 25 - mediatek,mtd-eeprom: Specify a MTD partition + offset containing EEPROM data 26 - big-endian: if the radio eeprom partition is written in big-endian, specify 28 - mediatek,eeprom-merge-otp: Merge EEPROM data with OTP data. Can be used on [all …]
|
H A D | mediatek,mt76.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 --- [all...] |
/freebsd/sys/dev/usb/net/ |
H A D | if_udavreg.h | 3 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 17 * 3. Neither the name of the author nor the names of any co-contributors 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 61 #define UDAV_NCR_FDX (1<<3) /* Full-Duplex Mode (RO on Int. PHY) */ 79 #define UDAV_RSR_RWTO (1<<4) /* Receive Watchdog Time-Out */ 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 */ [all …]
|
/freebsd/tools/tools/ath/athprom/ |
H A D | athprom.c | 1 /*- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 37 #define IS_VERS(op, v) (eeprom.ee_version op (v)) 58 #define eeprom eep.legacy macro 68 fprintf(stderr, "usage: %s [-i ifname] [-t pathname] [offset | offset=value]\n", progname); in usage() 69 exit(-1); in usage() 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() [all …]
|