/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/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/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/drivers/tee/optee/ |
H A D | optee_ffa.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 3 * Copyright (c) 2019-2021, Linaro Limited 7 * This file is exported by OP-TEE and is kept in sync between secure world 8 * and normal world drivers. We're using ARM FF-A 1.0 specification. 23 * defined in FF-A specification: 27 * w3-w7: Implementation defined, free to be used below 38 * Returns the API version implemented, currently follows the FF-A version. 41 * w4-w7: Not used (MBZ) 46 * w5-w7: Not used (MBZ) 51 * Returns the revision of OP-TEE. [all …]
|
/openbmc/linux/samples/seccomp/ |
H A D | bpf-helper.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2012 The Chromium OS Authors <chromium-os-dev@chromium.org> 8 * The code may be used by anyone for any purpose, 17 #include "bpf-helper.h" 25 return -1; in bpf_resolve_jumps() 31 size_t offset = count - i - 1; in bpf_resolve_jumps() local 32 struct sock_filter *instr = &filter[offset]; in bpf_resolve_jumps() 33 if (instr->code != (BPF_JMP+BPF_JA)) in bpf_resolve_jumps() 35 switch ((instr->jt<<8)|instr->jf) { in bpf_resolve_jumps() 37 if (labels->labels[instr->k].location == 0xffffffff) { in bpf_resolve_jumps() [all …]
|
/openbmc/linux/Documentation/livepatch/ |
H A D | module-elf-format.rst | 16 Formerly, livepatch required separate architecture-specific code to write 17 relocations. However, arch-specific code to write relocations already 19 code. So, instead of duplicating code and re-implementing what the module 20 loader can already do, livepatch leverages existing code in the module 21 loader to perform the all the arch-specific relocation work. Specifically, 26 of arch-specific code required to port livepatch to a particular 34 selected from OS-specific ranges according to the definitions from glibc. 37 ----------------------------------------------------- 39 reference non-exported global symbols and non-included local symbols. 40 Relocations referencing these types of symbols cannot be left in as-is [all …]
|
/openbmc/u-boot/include/ |
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 | 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 25 * \return number of bytes read, or -1 on error 30 * Access to the OS write() system call 35 * \return number of bytes written, or -1 on error 40 * Access to the OS lseek() system call 43 * \param offset File offset (based on whence) 44 * \param whence Position offset is relative to (see below) [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 */ 42 #define EI_OSABI 7 /* OS/ABI specific ELF extensions */ 57 #define ELFCLASS32 1 /* 32-bit objs */ 58 #define ELFCLASS64 2 /* 64-bit objs */ 63 #define ELFDATA2LSB 1 /* Little-Endian */ 64 #define ELFDATA2MSB 2 /* Big-Endian */ 67 /* e_ident[] OS/ABI specific ELF extensions */ [all …]
|
H A D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright (c) 2012 The Chromium OS Authors. 22 * our function list, which is the length of the code divided by 35 uint32_t offset; /* Function offset into code */ member 58 * @return 0 if ok, -1 on error (buffer exhausted) 71 #define TRACE_CALL_TYPE(call) ((call)->flags & 0xc0000000UL) 75 uint32_t func; /* Function offset */ 76 uint32_t caller; /* Caller function offset */ 97 * (typically as large as the U-Boot text area)
|
/openbmc/u-boot/arch/sandbox/include/asm/ |
H A D | gpio.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * This is the interface to the sandbox GPIO driver for test code which 4 * wants to change the GPIO values reported to U-Boot. 6 * Copyright (c) 2011 The Chromium OS Authors. 13 * We use the generic interface, and add a back-channel. 15 * The back-channel functions are declared in this file. They should not be used 16 * except in test code. 18 * Test code can, for example, call sandbox_gpio_set_value() to set the value of 19 * a simulated GPIO. From then on, normal code in U-Boot will see this new 22 * NOTE: DO NOT use the functions in this file except in test code! [all …]
|
/openbmc/u-boot/ |
H A D | Kconfig | 3 # see the file Documentation/kbuild/kconfig-language.txt in the 6 mainmenu "U-Boot $UBOOTVERSION Configuration" 12 # Allow defaults in arch-specific code to override any given here 24 string "Local version - append to U-Boot release" 26 Append an extra string to the end of your U-Boot version. 41 A string of the format -gxxxxxxxx will be added to the localversion 42 if a Git-based tree is found. The string generated by this will be 49 $ git rev-parse --verify HEAD 57 Enabling this option will pass "-Os" instead of "-O2" to gcc 58 resulting in a smaller U-Boot image. [all …]
|
/openbmc/u-boot/drivers/misc/ |
H A D | cros_ec_sandbox.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Chromium OS cros_ec driver - sandbox emulation 5 * Copyright (c) 2013 The Chromium OS Authors. 15 #include <os.h> 16 #include <u-boot/sha256.h> 23 * Ultimately it shold be possible to connect an Chrome OS EC emulation 24 * to U-Boot and remove all of this code. But this provides a test 34 * 2. Emulation of vboot context - so this can be read/written as required. 41 * to enter recovery mode. The EC passes this to U-Boot through the normal 50 * the EC image in with U-Boot (Vic has demonstrated a prototype for this). [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/core/utils/ |
H A D | concurrencytest.py | 5 # SPDX-License-Identifier: GPL-2.0-or-later 12 # Original code from: 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")) 154 def outSideTestaddError(self, offset, line): argument 156 test_name = line[offset:-1].decode('utf8') 169 def outSideTestaddSkip(self, offset, line): argument 171 test_name = line[offset:-1].decode('utf8') [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | gen_misc.py | 11 import os 15 # sys and os are needed to get the program dir path and program name. 57 return os.path.normpath(dir_path) + os.path.sep 62 Call os.makedirs with the caller's arguments. 64 This function offers 2 advantages over the base os.makedirs function: 66 2) It will print an "Issuing: os.makedirs" message. 74 gp.qprint_issuing("os.makedirs('" + path + "', mode=" + oct(mode) + ")") 76 os.makedirs(path, mode) 86 - I [all...] |
/openbmc/u-boot/tools/binman/ |
H A D | README.entries | 15 ------------------------------------------------------ 21 - filename: Filename of file to read into entry 22 - compress: Compression algorithm to use: 24 lz4: Use lz4 compression (via 'lz4' command-line utility) 28 example the 'u_boot' entry which provides the filename 'u-boot.bin'. 30 If compression is enabled, an extra 'uncomp-size' property is written to 31 the node (if enabled with -u) which provides the uncompressed size of the 36 Entry: blob-dtb: A blob that holds a device tree 37 ------------------------------------------------ 40 obtained from the list of available device-tree files, managed by the [all …]
|
/openbmc/qemu/tests/vm/ |
H A D | openbsd | 5 # Copyright 2017-2019 Red Hat Inc. 11 # This code is licensed under the GPL version 2 or later. See 12 # the COPYING file in the top-level directory. 15 import os 40 "gettext-tools", 43 "libusb1--", 66 set -e; 67 rm -rf /home/qemu/qemu-test.* 68 cd $(mktemp -d /home/qemu/qemu-test.XXXXXX); 70 tar -xf /dev/rsd1c; [all …]
|
/openbmc/linux/include/linux/ |
H A D | pe.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 * - 0x1: initrd loading from the LINUX_EFI_INITRD_MEDIA_GUID device path, 17 * - 0x2: initrd loading using the initrd= command line option, where the file 30 * (https://lore.kernel.org/all/efd6f2d4-547c-1378-1faa-53c044dbd297@gmail.com/) 36 * LINUX_PE_MAGIC appears at offset 0x38 into the MS-DOS header of EFI bootable 129 #define IMAGE_SCN_TYPE_NO_PAD 0x00000008 /* don't pad - obsolete */ 137 #define IMAGE_SCN_LNK_REMOVE 0x00000800 /* .o only - scn to be rm'd*/ 138 #define IMAGE_SCN_LNK_COMDAT 0x00001000 /* .o only - COMDAT data */ 147 /* and here they just stuck a 1-byte integer in the middle of a bitfield */ 167 #define IMAGE_SCN_MEM_EXECUTE 0x20000000 /* can be executed as code */ [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/linux/Documentation/arch/ia64/ |
H A D | mca.rst | 2 An ad-hoc collection of notes on IA64 MCA and INIT processing 7 --- 10 the OS is in any state. Including when one of the cpus is already 15 --- 48 have to use their own, per-cpu stacks. The MCA/INIT stacks are 97 --- 102 slaves. All the OS INIT handlers are entered at approximately the same 103 time. The OS monarch prints the state of all tasks and returns, after 109 cpu to return from the OS then drive the rest as slaves. Some versions 110 of SAL cannot even cope with returning from the OS, they spin inside [all …]
|
/openbmc/qemu/include/hw/rtc/ |
H A D | allwinner-rtc.h | 45 #define TYPE_AW_RTC "allwinner-rtc" 48 #define TYPE_AW_RTC_SUN4I TYPE_AW_RTC "-sun4i" 51 #define TYPE_AW_RTC_SUN6I TYPE_AW_RTC "-sun6i" 54 #define TYPE_AW_RTC_SUN7I TYPE_AW_RTC "-sun7i" 68 * Allwinner RTC per-object instance state. 78 * Can be overridden by the user using the corresponding 'base-year' 79 * property. The base year used by the target OS driver can vary, for 93 * Allwinner RTC class-level struct. 95 * This struct is filled by each sunxi device specific code 96 * such that the generic code can use this struct to support [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | omap_hwmod.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2011 Nokia Corporation 6 * Copyright (C) 2011-2012 Texas Instruments, Inc. 15 * ------------ 21 * TI's documentation, on-chip devices are referred to as "OMAP 26 * Most of the address and data flow between modules is via OCP-based 32 * OMAP hwmod provides a consistent way to describe the on-chip 37 * hwmod provides a way for other core code, such as the Linux device 38 * code or the OMAP power management and address space mapping code, 42 * ----------- [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 151 | 23 import os 30 source_img = os.path.join(iotests.test_dir, 'source.' + iotests.imgfmt) 31 target_img = os.path.join(iotests.test_dir, 'target.' + iotests.imgfmt) 38 qemu_img('create', '-f', iotests.imgfmt, source_img, '128M') 39 qemu_img('create', '-f', iotests.imgfmt, target_img, '128M') 43 'node-name': 'source-node', 49 blk_target = {'node-name': 'target-node', 57 self.vm.add_device('virtio-blk,id=vblk,drive=source') 67 os.remove(source_img) 68 os.remove(target_img) [all …]
|