/openbmc/linux/Documentation/devicetree/bindings/gpu/host1x/ |
H A D | nvidia,tegra234-nvdec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpu/host1x/nvidia,tegra234-nvdec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 15 - Thierry Reding <treding@gmail.com> 16 - Mikko Perttunen <mperttunen@nvidia.com> 20 pattern: "^nvdec@[0-9a-f]*$" 24 - nvidia,tegra234-nvdec 32 clock-names: 34 - const: nvdec [all …]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | falcon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/dma-mapping.h> 20 static void falcon_writel(struct falcon *falcon, u32 value, u32 offset) in falcon_writel() argument 22 writel(value, falcon->regs + offset); in falcon_writel() 29 return readl_poll_timeout(falcon->regs + FALCON_IDLESTATE, value, in falcon_wait_idle() 37 return readl_poll_timeout(falcon->regs + FALCON_DMATRFCMD, value, in falcon_dma_wait_idle() 43 unsigned long offset, in falcon_copy_chunk() argument 59 falcon_writel(falcon, offset, FALCON_DMATRFMOFFS); in falcon_copy_chunk() 69 u32 *virt = falcon->firmware.virt; in falcon_copy_firmware_image() 73 for (i = 0; i < firmware->size / sizeof(u32); i++) in falcon_copy_firmware_image() [all …]
|
H A D | riscv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 static void riscv_writel(struct tegra_drm_riscv *riscv, u32 value, u32 offset) in riscv_writel() argument 34 writel(value, riscv->regs + offset); in riscv_writel() 39 struct tegra_drm_riscv_descriptor *bl = &riscv->bl_desc; in tegra_drm_riscv_read_descriptors() 40 struct tegra_drm_riscv_descriptor *os = &riscv->os_desc; in tegra_drm_riscv_read_descriptors() local 41 const struct device_node *np = riscv->dev->of_node; in tegra_drm_riscv_read_descriptors() 47 dev_err(riscv->dev, "failed to read " name ": %d\n", err); \ in tegra_drm_riscv_read_descriptors() 51 READ_PROP("nvidia,bl-manifest-offset", &bl->manifest_offset); in tegra_drm_riscv_read_descriptors() 52 READ_PROP("nvidia,bl-code-offset", &bl->code_offset); in tegra_drm_riscv_read_descriptors() 53 READ_PROP("nvidia,bl-data-offset", &bl->data_offset); in tegra_drm_riscv_read_descriptors() [all …]
|
/openbmc/linux/Documentation/firmware-guide/acpi/ |
H A D | chromeos-acpi-device.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Chrome OS ACPI Device 7 Hardware functionality specific to Chrome OS is exposed through a Chrome OS ACPI device. 8 The plug and play ID of a Chrome OS ACPI device is GGL0001 and the hardware ID is 11 .. flat-table:: Supported ACPI Objects 13 :header-rows: 1 15 * - Object 16 - Description 18 * - CHSW 19 - Chrome OS switch positions [all …]
|
/openbmc/u-boot/tools/binman/ |
H A D | ftest.py | 1 # SPDX-License-Identifier: GPL-2.0+ 7 # python -m unittest func_test.TestFunctional.testHelp 11 import os 62 COMPRESS_DATA = 'data to compress' 77 In some cases a 'real' file must be used - these are also supplied in 86 self._binman_dir = os.path.dirname(os.path.realpath(sys.argv[0])) 87 self._binman_pathname = os.path.join(self._binman_dir, 'binman') 93 TestFunctional._MakeInputFile('u-boot.bin', U_BOOT_DATA) 94 TestFunctional._MakeInputFile('u-boot.img', U_BOOT_IMG_DATA) 95 TestFunctional._MakeInputFile('spl/u-boot-spl.bin', U_BOOT_SPL_DATA) [all …]
|
H A D | elf_test.py | 1 # SPDX-License-Identifier: GPL-2.0+ 7 import os 15 binman_dir = os.path.dirname(os.path.realpath(sys.argv[0])) 25 self.data = 'a' * contents_size 56 fname = os.path.join(binman_dir, 'test', 'u_boot_ucode_ptr') 62 fname = os.path.join(binman_dir, 'test', 'u_boot_ucode_ptr') 75 syms = elf.LookupAndWriteSymbols('missing-file', entry, section) 76 self.assertIn("Filename 'missing-file' not found in input path", 83 elf_fname = os.path.join(binman_dir, 'test', 'u_boot_binman_syms') 86 self.assertIn('entry_path has offset 4 (size 8) but the contents size ' [all …]
|
H A D | entry.py | 1 # SPDX-License-Identifier: GPL-2.0+ 13 # http://lists.denx.de/pipermail/u-boot/2016-October/269729.html 20 import os 30 our_path = os.path.dirname(os.path.realpath(__file__)) 34 # device-tree properties. 41 An entry corresponds to a single node in the device-tree description 44 between them. The type of the entry determines the data that is in it. 52 offset: Offset of entry within the section, None if not known yet (in 56 align: Entry start offset alignment, or None 58 align_end: Entry end offset alignment, or None [all …]
|
/openbmc/u-boot/common/spl/ |
H A D | spl_fit.c | 1 // SPDX-License-Identifier: GPL-2.0+ 32 * @images: Offset of the /images subnode. 65 return -EINVAL; in spl_fit_get_image_name() 71 if (!str || (str - name >= len)) { in spl_fit_get_image_name() 73 return -E2BIG; in spl_fit_get_image_name() 86 * @images: Offset of the /images subnode. 90 * Return: the node offset of the respective image node or a negative 109 return -EINVAL; in spl_fit_get_image_node() 115 static int get_aligned_image_offset(struct spl_load_info *info, int offset) in get_aligned_image_offset() argument 118 * If it is a FS read, get the first address before offset which is in get_aligned_image_offset() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 148 | 23 import os 26 imgs = (os.path.join(iotests.test_dir, 'quorum0.img'), 27 os.path.join(iotests.test_dir, 'quorum1.img'), 28 os.path.join(iotests.test_dir, 'quorum2.img')) 30 img_conf = (os.path.join(iotests.test_dir, 'quorum0.conf'), 31 os.path.join(iotests.test_dir, 'quorum1.conf'), 32 os.path.join(iotests.test_dir, 'quorum2.conf')) 36 offset = 10 variable 44 [inject-error] 53 driveopts = ['driver=quorum', 'vote-threshold=2'] [all …]
|
H A D | 055 | 4 # Tests for drive-backup and blockdev-backup 25 import os 29 test_img = os.path.join(iotests.test_dir, 'test.img') 30 target_img = os.path.join(iotests.test_dir, 'target.img') 31 blockdev_target_img = os.path.join(iotests.test_dir, 'blockdev-target.img') 36 qemu_img('create', '-f', iotests.imgfmt, test_img, str(image_len)) 37 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x11 0 64k', test_img) 38 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x00 64k 128k', test_img) 39 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x22 162k 32k', test_img) 40 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0xd5 1M 32k', test_img) [all …]
|
H A D | 030 | 23 import os 28 backing_img = os.path.join(iotests.test_dir, 'backing.img') 29 mid_img = os.path.join(iotests.test_dir, 'mid.img') 30 test_img = os.path.join(iotests.test_dir, 'test.img') 37 qemu_img('create', '-f', iotests.imgfmt, 38 '-o', 'backing_file=%s' % backing_img, 39 '-F', 'raw', mid_img) 40 qemu_img('create', '-f', iotests.imgfmt, 41 '-o', 'backing_file=%s' % mid_img, 42 '-F', iotests.imgfmt, test_img) [all …]
|
H A D | 041 | 23 import os 29 backing_img = os.path.join(iotests.test_dir, 'backing.img') 30 target_backing_img = os.path.join(iotests.test_dir, 'target-backing.img') 31 test_img = os.path.join(iotests.test_dir, 'test.img') 32 target_img = os.path.join(iotests.test_dir, 'target.img') 34 quorum_img1 = os.path.join(iotests.test_dir, 'quorum1.img') 35 quorum_img2 = os.path.join(iotests.test_dir, 'quorum2.img') 36 quorum_img3 = os.path.join(iotests.test_dir, 'quorum3.img') 37 quorum_repair_img = os.path.join(iotests.test_dir, 'quorum_repair.img') 38 quorum_snapshot_file = os.path.join(iotests.test_dir, 'quorum_snapshot.img') [all …]
|
H A D | 163 | 6 # Copyright (c) 2016-2017 Parallels International GmbH 22 import os, random, iotests, struct, qcow2, sys 25 test_img = os.path.join(iotests.test_dir, 'test.img') 26 check_img = os.path.join(iotests.test_dir, 'check.img') 30 return int(str[:-1]) * 1024**suff.index(str[-1:]) 42 div_roundup = lambda n, d: (n + d - 1) // d 44 def split_by_n(data, n): argument 45 for x in range(0, len(data), n): 46 yield struct.unpack('>Q', data[x:x + n])[0] & l1_mask 51 1 << (h.cluster_bits*2 - entry_size)) [all …]
|
/openbmc/u-boot/include/ |
H A D | os.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * This provides access to useful OS routines for the sandbox architecture. 8 * Copyright (c) 2011 The Chromium OS Authors. 20 * Access to the OS read() system call 23 * \param buf Buffer to place data 25 * \return number of bytes read, or -1 on error 30 * Access to the OS write() system call 33 * \param buf Buffer containing data to write 35 * \return number of bytes written, or -1 on error 40 * Access to the OS lseek() system call [all …]
|
H A D | image.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * (C) Copyright 2000-2005 8 * NOTE: This header file defines an interface to U-Boot. Including 10 * use of U-Boot, and does *not* fall under the heading of "derived 48 #include <asm/u-boot.h> 151 IH_OS_INVALID = 0, /* Invalid OS */ 171 IH_OS_UNITY, /* Unity OS */ 203 IH_ARCH_NIOS, /* Nios-32 */ 205 IH_ARCH_NIOS2, /* Nios-II */ 210 IH_ARCH_NDS32, /* ANDES Technology - NDS32 */ [all …]
|
H A D | elf.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 15 /* This version doesn't work for 64-bit ABIs - Erik */ 19 typedef uint32_t Elf32_Off; /* Unsigned file offset */ 24 /* 64-bit ELF base types */ 40 #define EI_DATA 5 /* data encoding */ 42 #define EI_OSABI 7 /* OS/ABI specific ELF extensions */ 57 #define ELFCLASS32 1 /* 32-bit objs */ 58 #define ELFCLASS64 2 /* 64-bit objs */ 61 /* e_ident[] data encoding */ 63 #define ELFDATA2LSB 1 /* Little-Endian */ [all …]
|
/openbmc/u-boot/common/ |
H A D | image-fit.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * (C) Copyright 2000-2006 27 #include <u-boot/crc.h> 28 #include <u-boot/md5.h> 29 #include <u-boot/sha1.h> 30 #include <u-boot/sha256.h> 31 #include <u-boot/sha512.h> 47 if (sep - spec > 0) in fit_parse_spec() 58 * fit_parse_conf - parse FIT configuration spec 85 * fit_parse_subimage - parse FIT subimage spec [all …]
|
/openbmc/u-boot/doc/ |
H A D | mkimage.1 | 1 .TH MKIMAGE 1 "2010-05-16" 4 mkimage \- Generate image for U-Boot 7 .RB "\-l [" "uimage file name" "]" 10 .RB [\fIoptions\fP] " \-f [" "image tree source file" "]" " [" "uimage file name" "]" 13 .RB [\fIoptions\fP] " \-F [" "uimage file name" "]" 21 command is used to create images for use with the U-Boot boot loader. 47 .BI "\-l [" "uimage file name" "]" 48 mkimage lists the information contained in the header of an existing U-Boot image. 54 .BI "\-A [" "architecture" "]" 55 Set architecture. Pass \-h as the architecture to see the list of supported architectures. [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/core/utils/ |
H A D | concurrencytest.py | 5 # SPDX-License-Identifier: GPL-2.0-or-later 14 # Copyright (C) 2005-2011 Canonical Ltd 17 import os 77 "{0:.2f}".format(time.time()-self._test_start.timestamp()), 82 …f.finalresult._stderr_buffer = io.StringIO(initial_value=self.outputbuf.getvalue().decode("utf-8")) 125 data = bytearray() 127 data += b 128 extraresults = json.loads(data.decode()) 154 def outSideTestaddError(self, offset, line): argument 156 test_name = line[offset:-1].decode('utf8') [all …]
|
/openbmc/u-boot/board/gateworks/gw_ventana/ |
H A D | README | 1 U-Boot for the Gateworks Ventana Product Family boards 3 This file contains information for the port of U-Boot to the Gateworks 7 is supported by a single bootloader build by using a common SPL and U-Boot 13 --------------------------------- 19 will build the following artifacts from U-Boot source: 20 - SPL - Secondary Program Loader that the i.MX6 BOOT ROM (Primary Program 22 The DRAM controller, loads u-boot.img from the detected boot device, 25 - u-boot.img - The main U-Boot core which is u-boot.bin with a image header. 29 -------- 31 To build U-Boot for the Gateworks Ventana product family: [all …]
|
/openbmc/openbmc/poky/scripts/lib/wic/ |
H A D | filemap.py | 4 # SPDX-License-Identifier: GPL-2.0-only 9 are supported - the FIEMAP ioctl and the 'SEEK_HOLE / SEEK_DATA' features of 21 import os 33 # Get the block size of the host file-system for the image file by calling 41 # If ioctl causes OSError or give bsize to zero failback to os.fstat 43 import os 44 stat = os.fstat(file_obj.fileno()) 61 is not supported either by the kernel or the file-system. 98 self.image_size = os.fstat(self._f_image.fileno()).st_size 109 self.blocks_cnt = self.image_size + self.block_size - 1 [all …]
|
/openbmc/u-boot/doc/uImage.FIT/ |
H A D | source_file_format.txt | 1 U-Boot new uImage source file format (bindings definition) 5 External data additions, 25/1/16 Simon Glass <sjg@chromium.org> 8 --------------- 15 replace direct passing of 'struct bd_info' which was used to boot pre-FDT 18 However, U-Boot needs to support both techniques to provide backward 21 blob. Kernel image, FDT blob and possibly ramdisk image - all must be placed 24 Additionally, old uImage format has been extended to support multi sub-images 34 -------------------------------- 40 (3) increases code reuse as it is already part of the U-Boot source tree. 45 uImage internals. Bindings are defined from U-Boot perspective, i.e. describe [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | nvram.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 * lnx,oops-log partition max size is 4000, header version > 4000 will 29 long size; /* size of data portion (excluding err_log_info) */ 30 long index; /* offset of data portion of partition */ 31 bool os_partition; /* partition initialized by OS, not FW */ 58 return -ENODEV; in mmio_nvram_init() 70 /* Return partition offset in nvram */ 75 extern void pmac_xpram_write(int xpaddr, u8 data); 77 /* Initialize NVRAM OS partition */ 88 /* Write to NVRAM OS partition */
|
/openbmc/linux/fs/adfs/ |
H A D | adfs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 /* Internal data structures for ADFS */ 14 /* RISC OS 12-bit filetype is stored in load_address[19:8] */ 30 * adfs file system inode data in memory 36 __u32 loadaddr; /* RISC OS load address */ 37 __u32 execaddr; /* RISC OS exec address */ 38 unsigned int attr; /* RISC OS permissions */ 49 return (ADFS_I(inode)->loadaddr & 0xfff00000) == 0xfff00000; in adfs_inode_is_stamped() 53 * Forward-declare this 59 * ADFS file system superblock data in memory [all …]
|
/openbmc/u-boot/tools/dtoc/ |
H A D | test_fdt | 2 # SPDX-License-Identifier: GPL-2.0+ 9 import os 14 our_path = os.path.dirname(os.path.realpath(__file__)) 16 sys.path.insert(0, os.path.join(our_path, dirname)) 28 """Low-level function to get the property value based on its offset 30 This looks directly in the device tree at the property's offset to find 41 Value of property as a string (found using property offset) 45 # Add 12, which is sizeof(struct fdt_property), to get to start of data 46 offset = prop.GetOffset() + 12 47 data = dtb.GetContents()[offset:offset + len(prop.value)] [all …]
|