/freebsd/share/man/man4/ |
H A D | nvram.4 | 31 .Nm nvram 38 .Cd "device nvram" 50 driver provides access to BIOS configuration NVRAM on i386 and amd64 56 This driver exposes bytes 14 through 128 of the NVRAM, or a total of 58 .Pa /dev/nvram . 63 The BIOS NVRAM's bytes 16 through 31 are checksummed at byte 32. 68 Backup existing BIOS NVRAM to 69 .Pa nvram.bin : 71 .Dl dd if=/dev/nvram of=nvram.bin 73 Restore BIOS NVRAM from [all …]
|
H A D | bce.4 | 275 .It "bce%d: NVRAM test failed!" 276 The driver could not access the controller NVRAM correctly. 290 .It "bce%d: Timeout error reading NVRAM at offset 0x%08X!" 291 The driver could not write to NVRAM because a timeout occurred. 292 .It "bce%d: Unknown Flash NVRAM found!" 293 The driver does not recognize the NVRAM device being used and therefore 295 .It "bce%d: Invalid NVRAM magic value!" 296 The driver cannot read NVRAM or the NVRAM is corrupt. 297 .It "bce%d: Invalid Manufacturing Information NVRAM CRC!" 298 The driver cannot read NVRAM or the NVRAM is corrupt. [all …]
|
H A D | sym.4 | 29 .\" NVRAM detection and reading. 171 controller NVRAM. 172 The Symbios/Logic NVRAM layout and the Tekram NVRAM 174 If the reading of the NVRAM succeeds, the 195 Devices that are configured as disabled for 'scan' in the NVRAM are not
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_data.c | 54 * Return a human-readable description for the given NVRAM data class. 56 * @param cls The NVRAM class. 68 * @param cls The NVRAM class. 77 * Serialize all NVRAM properties in @p plist using @p cls's NVRAM data 80 * @param cls The NVRAM data class to be used to perform 85 * @param[out] outp On success, the serialed NVRAM data will be 113 * Probe to see if this NVRAM data class class supports the data mapped by the 116 * @param cls The NVRAM class. 117 * @param io An I/O context mapping the NVRAM data. 119 * @retval 0 if this is the only possible NVRAM data class for @p io. [all …]
|
H A D | bhnd_nvram_store.c | 61 * BHND NVRAM Store 63 * Manages in-memory and persistent representations of NVRAM data. 93 * Allocate and initialize a new NVRAM data store instance. 98 * @param[out] store On success, a pointer to the newly allocated NVRAM data 100 * @param data The NVRAM data to be managed by the returned NVRAM data store 132 /* Retain the NVRAM data */ in bhnd_nvram_store_new() 156 /* Parse all variables vended by our backing NVRAM data instance, in bhnd_nvram_store_new() 173 * Allocate and initialize a new NVRAM data store instance, parsing the 174 * NVRAM data from @p io. 179 * The NVRAM data mapped by @p io will be copied, and @p io may be safely [all …]
|
H A D | bhnd_nvram_store_subr.c | 109 * Free an NVRAM path instance, releasing all associated resources. 167 * Append a new NVRAM variable's @p cookiep value to @p index. 172 * @param sc The NVRAM store from which NVRAM values will be queried. 174 * @param cookiep The cookiep value (as provided by the backing NVRAM 244 * @param sc The NVRAM store from which NVRAM values will be queried. 267 * @param sc The NVRAM store. 279 * @param sc The NVRAM store. 293 * @param sc The NVRAM store. 295 * @param name The NVRAM variable name to search for in @p path's update list. 311 * @param sc The NVRAM store. [all …]
|
H A D | bhnd_nvram_if.m | 34 # bhnd(4) NVRAM device interface. 36 # Provides a shared interface to HND NVRAM, OTP, and SPROM devices that provide 41 * Read an NVRAM variable. 43 * @param dev The NVRAM device. 44 * @param name The NVRAM variable name. 57 * @retval ENODEV If no supported NVRAM hardware is accessible via this 74 * Set an NVRAM variable's value. 79 * @param dev The NVRAM device. 80 * @param name The NVRAM variable name. 87 * @retval ENODEV If no supported NVRAM hardware is accessible via this
|
H A D | bhnd_nvram_storevar.h | 71 * NVRAM store variable entry types. 79 * NVRAM path descriptor types. 87 * NVRAM variable namespaces. 161 * NVRAM variable name descriptor. 163 * For NVRAM data instances supporting BHND_NVRAM_DATA_CAP_DEVPATHS, the 164 * NVRAM-vended variable name will be in one of four formats: 198 * of NVRAM data; a single devpath[alias]=[devpath] variable entry is defined, 226 * NVRAM variable index. 238 * NVRAM device path. 254 * NVRAM device path alias. [all …]
|
H A D | bhnd_nvram_data_bcmvar.h | 36 * BCM NVRAM header value data. 44 * Internal representation of BCM NVRAM values that mirror (and must be 45 * vended as) NVRAM variables. 52 const char *envp; /**< Pointer to the NVRAM variable mirroring 55 mirrored NVRAM value */ 61 /** BCM NVRAM header */
|
H A D | bhnd_nvram.h | 42 * BHND NVRAM boolean type; guaranteed to be exactly 8-bits, representing 50 * NVRAM data sources supported by bhnd(4) devices. 59 BHND_NVRAM_SRC_UNKNOWN /**< No NVRAM source is directly 68 * Broadcom NVRAM data via their standard CIS 77 * NVRAM configuration for individual devices 78 * is provided by a common platform NVRAM 84 * NVRAM data types.
|
H A D | bhnd_nvram_data_bcm.c | 58 * Broadcom NVRAM data class. 60 * The Broadcom NVRAM NUL-delimited ASCII format is used by most 63 * The NVRAM data is encoded as a standard header, followed by series of 80 * Set of BCM NVRAM header values that are required to be mirrored in the 81 * NVRAM data itself. 83 * If they're not included in the parsed NVRAM data, we need to vend the 85 * updates to the NVRAM data. 87 * If they're modified in NVRAM, we need to sync the changes with the 88 * the NVRAM header values. 117 /** BCM NVRAM data class instance */ [all …]
|
H A D | bhnd_nvram_value.h | 107 * NVRAM value flags 129 * remain valid for the lifetime of the NVRAM value. 149 * NVRAM value storage types. 164 * the NVRAM value API. 184 * NVRAM data storage types. 214 * NVRAM value
|
H A D | bhnd_nvram_subr.c | 63 * Common NVRAM/SPROM support, including NVRAM variable map 68 MALLOC_DEFINE(M_BHND_NVRAM, "bhnd_nvram", "bhnd nvram data"); 72 * CRC-8 lookup table used to checksum SPROM and NVRAM data via 167 BHND_NV_PANIC("bhnd nvram type %u unknown", type); in bhnd_nvram_type_name() 212 BHND_NV_PANIC("bhnd nvram type %u unknown", type); in bhnd_nvram_is_signed_type() 273 BHND_NV_PANIC("bhnd nvram type %u unknown", type); in bhnd_nvram_is_int_type() 315 BHND_NV_PANIC("bhnd nvram type %u unknown", type); in bhnd_nvram_is_array_type() 357 BHND_NV_PANIC("bhnd nvram type %u unknown", type); in bhnd_nvram_base_type() 413 BHND_NV_PANIC("bhnd nvram type %u unknown", type); in bhnd_nvram_raw_type() 466 BHND_NV_PANIC("bhnd nvram type %u unknown", type); in bhnd_nvram_type_width() [all …]
|
H A D | bhnd_nvram_data_bcmraw.c | 54 * Broadcom-RAW NVRAM data class. 56 * The Broadcom NVRAM NUL-delimited ASCII format is used by most 59 * The NVRAM data is encoded as a stream of NUL-terminated 'key=value' 65 /** BCM-RAW NVRAM data class instance */ 240 * Initialize @p bcm with the provided NVRAM data mapped by @p src. 254 /* Allocate a buffer large enough to hold the NVRAM image, and in bhnd_nvram_bcmraw_init() 265 /* Copy in the NVRAM image */ in bhnd_nvram_bcmraw_init() 385 /* Start at the first NVRAM data record */ in bhnd_nvram_bcmraw_next()
|
H A D | bhnd_nvram_io.c | 45 * @param io NVRAM I/O context. 75 * @param io NVRAM I/O context. 102 * @param io NVRAM I/O context. 131 * @param io NVRAM I/O context. 160 * @param io NVRAM I/O context. 175 * @param io NVRAM I/O context.
|
H A D | bhnd_nvram_value_fmts.c | 113 * Broadcom NVRAM MAC address format. 122 /** Broadcom NVRAM MAC address string format. */ 132 * Broadcom NVRAM LED duty-cycle format. 142 * Broadcom NVRAM decimal integer format. 158 * Broadcom NVRAM decimal integer format. 164 * For compatibility with standard Broadcom NVRAM parsing, if the integer is 177 * Broadcom NVRAM string format. 180 * Broadcom NVRAM data. 318 * Most producers of Broadcom NVRAM values zero-pad hex values out to in bhnd_nvram_val_bcm_hex_encode_elem() 407 * - NVRAM: A 16-bit decimal or hexadecimal string, with on/off in bhnd_nvram_val_bcm_leddc_encode_elem() [all …]
|
H A D | bhnd_nvram_plistvar.h | 43 * NVRAM property. 53 * NVRAM property list entry. 63 * NVRAM property list.
|
/freebsd/sys/dev/sfxge/ |
H A D | sfxge_nvram.c | 56 size_t total_size = ip->u.nvram.size; in sfxge_nvram_rw() 65 rc = copyout(fake_dynamic_cfg_nvram, ip->u.nvram.data, in sfxge_nvram_rw() 80 rc = copyin(ip->u.nvram.data + off, buf, len); in sfxge_nvram_rw() 84 ip->u.nvram.offset + off, buf, len); in sfxge_nvram_rw() 89 ip->u.nvram.offset + off, buf, len); in sfxge_nvram_rw() 92 rc = copyout(buf, ip->u.nvram.data + off, len); in sfxge_nvram_rw() 148 if (ip->u.nvram.type > SFXGE_NVRAM_TYPE_DYNAMIC_CFG) in sfxge_nvram_ioctl() 150 type = nvram_types[ip->u.nvram.type]; in sfxge_nvram_ioctl() 152 (ip->u.nvram.op == SFXGE_NVRAM_OP_WRITE || in sfxge_nvram_ioctl() 153 ip->u.nvram.op == SFXGE_NVRAM_OP_ERASE || in sfxge_nvram_ioctl() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | qlnx_ioctl.c | 580 qlnx_write_nvram(qlnx_host_t *ha, qlnx_nvram_t *nvram, uint32_t cmd) in qlnx_write_nvram() argument 585 if ((nvram->data == NULL) || (nvram->data_len == 0)) in qlnx_write_nvram() 588 buf = qlnx_zalloc(nvram->data_len); in qlnx_write_nvram() 590 ret = copyin(nvram->data, buf, nvram->data_len); in qlnx_write_nvram() 594 cmd, nvram->data, nvram->data_len, ret); in qlnx_write_nvram() 598 nvram->offset, buf, nvram->data_len); in qlnx_write_nvram() 603 cmd, nvram->data, nvram->data_len, ha->cdev.mcp_nvm_resp, ret); in qlnx_write_nvram() 611 qlnx_read_nvram(qlnx_host_t *ha, qlnx_nvram_t *nvram) in qlnx_read_nvram() argument 616 if ((nvram->data == NULL) || (nvram->data_len == 0)) in qlnx_read_nvram() 619 buf = qlnx_zalloc(nvram->data_len); in qlnx_read_nvram() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/nvmem/ |
H A D | brcm,nvram.yaml | 4 $id: http://devicetree.org/schemas/nvmem/brcm,nvram.yaml# 7 title: Broadcom's NVRAM 10 Broadcom's NVRAM is a structure containing device specific environment 14 NVRAM can be accessed on Broadcom BCM47xx MIPS and Northstar ARM Cortex-A9 17 NVRAM variables can be defined as NVMEM device subnodes. 27 const: brcm,nvram 67 nvram@1eff0000 { 68 compatible = "brcm,nvram";
|
/freebsd/usr.sbin/nvram/ |
H A D | nvram.8 | 30 .Nm nvram 31 .Nd "display or modify contents of the EEPROM or NVRAM" 42 configuration variables contained in EEPROM or NVRAM. 58 from the EEPROM or NVRAM. 69 .Dl "nvram -p" 74 .Dl "nvram -d local-mac-address\e?" 81 .Dl "nvram local-mac-address\e?=true" 97 .Dl "nvram -d foo -d bar baz=100"
|
/freebsd/sys/dev/sfxge/common/ |
H A D | ef10_signed_image_layout.h | 43 * saved in NVRAM. The original image is in the Cryptographic message 45 * signatures. The entire image is written into NVRAM to enable the firmware 47 * bootable-image to start at offset 0 of the NVRAM partition. Hence the image 48 * is parsed upfront by host utilities (sfupdate) and written into nvram as 79 * as stored in NVRAM.
|
/freebsd/sys/modules/nvram/ |
H A D | Makefile | 1 .PATH: ${SRCTOP}/sys/dev/nvram 3 KMOD= nvram 4 SRCS= nvram.c
|
/freebsd/sys/dev/nvram/ |
H A D | nvram.c | 43 * Linux-style /dev/nvram driver 75 .d_name = "nvram", 155 sx_init(&nvram_lock, "nvram"); in nvram_modevent() 157 UID_ROOT, GID_KMEM, 0640, "nvram"); in nvram_modevent() 169 DEV_MODULE(nvram, nvram_modevent, NULL);
|
/freebsd/share/man/man4/man4.powerpc/ |
H A D | powermac_nvram.4 | 49 driver provides access to the Open Firmware configuration NVRAM 53 or AMD NVRAM. 55 .Xr nvram 8
|