/freebsd/sys/dev/drm2/ |
H A D | drm_fourcc.h | 30 #define DRM_FORMAT_BIG_ENDIAN (1<<31) /* format is big endian instead of little endian */ 40 #define DRM_FORMAT_XRGB4444 fourcc_code('X', 'R', '1', '2') /* [15:0] x:R:G:B 4:4:4:4 little endian… 41 #define DRM_FORMAT_XBGR4444 fourcc_code('X', 'B', '1', '2') /* [15:0] x:B:G:R 4:4:4:4 little endian… 42 #define DRM_FORMAT_RGBX4444 fourcc_code('R', 'X', '1', '2') /* [15:0] R:G:B:x 4:4:4:4 little endian… 43 #define DRM_FORMAT_BGRX4444 fourcc_code('B', 'X', '1', '2') /* [15:0] B:G:R:x 4:4:4:4 little endian… 45 #define DRM_FORMAT_ARGB4444 fourcc_code('A', 'R', '1', '2') /* [15:0] A:R:G:B 4:4:4:4 little endian… 46 #define DRM_FORMAT_ABGR4444 fourcc_code('A', 'B', '1', '2') /* [15:0] A:B:G:R 4:4:4:4 little endian… 47 #define DRM_FORMAT_RGBA4444 fourcc_code('R', 'A', '1', '2') /* [15:0] R:G:B:A 4:4:4:4 little endian… 48 #define DRM_FORMAT_BGRA4444 fourcc_code('B', 'A', '1', '2') /* [15:0] B:G:R:A 4:4:4:4 little endian… 50 #define DRM_FORMAT_XRGB1555 fourcc_code('X', 'R', '1', '5') /* [15:0] x:R:G:B 1:5:5:5 little endian… [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Endian.h | 1 //===- Endian.h - Utilities for IO with endian specific data ----*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // This file declares generic functions to read and write endian specific data. 11 //===----------------------------------------------------------------------===// 41 namespace endian { 44 [[nodiscard]] inline value_type byte_swap(value_type value, endianness endian) { in byte_swap() argument 45 if (endian != llvm::endianness::native) in byte_swap() 51 template <typename value_type, endianness endian> 53 return byte_swap(value, endian); in byte_swap() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/ |
H A D | common-properties.txt | 5 ---------- 13 - big-endian: Boolean; force big endian register accesses 15 know the peripheral always needs to be accessed in big endian (BE) mode. 16 - little-endian: Boolean; force little endian register accesses 18 peripheral always needs to be accessed in little endian (LE) mode. 19 - native-endian: Boolean; always use register accesses matched to the 20 endianness of the kernel binary (e.g. LE vmlinux -> readl/writel, 21 BE vmlinux -> ioread32be/iowrite32be). In this case no byte swaps 22 will ever be performed. Use this if the hardware "self-adjusts" 27 In such cases, little-endian is the preferred default, but it is not [all …]
|
/freebsd/contrib/file/doc/ |
H A D | magic.man | 37 .Bl -tag -width ".Dv message" 42 .Bl -bullet -compact 50 A continuation offset relative to the end of the last up-level field 60 .Bl -tag -width ".Dv lestring16" 62 A one-byte value. 64 A two-byte value in this machine's native byte order. 66 A four-byte value in this machine's native byte order. 68 An eight-byte value in this machine's native byte order. 70 A 32-bit single precision IEEE floating point number in this machine's native byte order. 72 A 64-bit double precision IEEE floating point number in this machine's native byte order. [all …]
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | lammps | 2 #------------------------------------------------------------------------------ 8 # Updated: 2021-03-14 by akohlmey@gmail.com 14 >>>0x10 lelong 0x0001 Little Endian 15 >>>0x10 lelong 0x1000 Big Endian 18 # written on a little endian machine 19 0 lequad -8 22 >>>0x10 lelong 0x0001 Little Endian, 25 # written on a big endian machine 26 0 bequad -8 29 >>>0x10 lelong 0x1000 Big Endian, [all …]
|
H A D | arm | 1 #------------------------------------------------------------------------------ 5 # https://docs.microsoft.com/en-us/windows/win32/debug/pe-format 11 # use little endian variant of subroutine to 13 >>0 use display-coff 14 !:strength -10 20 # use little endian variant of subroutine to 22 >>0 use display-coff 23 !:strength -10 29 # use little endian variant of subroutine to 31 >>0 use display-coff [all …]
|
H A D | scientific | 2 #------------------------------------------------------------------------------ 13 >52 byte 1 , Little-endian 14 >55 byte 1 , Big-endian 22 0 string/c :-)\040Origin BRIX Electron Density Map 32 >212 byte 17 \b, Big-endian 34 >212 byte 68 \b, Little-endian 38 # X-Ray Area Detector images 39 0 string R-AXIS4\ \ \ R-Axis Area Detector Image: 40 >796 lelong <20 Little-endian, IP #%d, 43 >796 belong <20 Big-endian, IP #%d, [all …]
|
H A D | aout | 2 #------------------------------------------------------------------------------ 9 # Little-endian 32-bit-int a.out, merged from bsdi (for BSD/OS, from 12 # XXX - is there anything we can look at to distinguish BSD/OS 386 from 18 0 lelong 0407 a.out little-endian 32-bit executable 22 0 lelong 0410 a.out little-endian 32-bit pure executable 26 0 lelong 0413 a.out little-endian 32-bit demand paged pure executable 31 # Big-endian 32-bit-int a.out, merged from sun (for old 68010 SunOS a.out), 32 # mips (for old 68020(!) SGI a.out), and netbsd (for old big-endian a.out). 34 # XXX - is there anything we can look at to distinguish old SunOS 68010 38 0 belong 0407 a.out big-endian 32-bit executable [all …]
|
H A D | cups | 2 #------------------------------------------------------------------------------ 6 # https://www.cups.org/documentation.php/spec-raster.html 9 0 name cups-le 41 # Cups Raster image format, Big Endian 43 >3 string t Cups Raster version 1, Big Endian 44 >3 string 2 Cups Raster version 2, Big Endian 45 >3 string 3 Cups Raster version 3, Big Endian 46 !:mime application/vnd.cups-raster 47 >0 use \^cups-le 50 # Cups Raster image format, Little Endian [all …]
|
H A D | mathematica | 2 #------------------------------------------------------------------------------ 6 # Mathematica a multi-purpose math program 21 0 search/1000 Content-type:\040application/mathematica Mathematica notebook version 2.x 73 # these start with "[0-9][0-9][0-9]\ A~[0-9][0-9][0-9]\ 78 …*********************\n\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Mathematica-Compatible Notebook M… 83 #0 string (* Mathematica, or Pascal, Modula-2 or 3 code text 89 # first 116 bytes of header contain text in human-readable form 92 #!:mime application/octet-stream 93 !:mime application/x-matlab-data 95 # https://de.mathworks.com/help/matlab/import_export/mat-file-versions.html [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/algs/skein/ |
H A D | skein_port.h | 1 // SPDX-License-Identifier: LicenseRef-OpenZFS-ThirdParty-PublicDomain 3 * Platform-specific definitions for Skein hash function. 22 #define RotL_64(x, N) (((x) << (N)) | ((x) >> (64 - (N)))) 26 * Skein is "natively" little-endian (unlike SHA-xxx), for optimal 30 * SKEIN_NEED_SWAP: 0 for little-endian, 1 for big-endian 39 * Otherwise, an "auto-detect" of endianness is attempted below. 41 * platform-specific code instead (e.g., for big-endian CPUs). 44 #ifndef SKEIN_NEED_SWAP /* compile-time "override" for endianness? */ 49 /* here for big-endian CPUs */ 52 /* here for x86 and x86-64 CPUs (and other detected little-endian CPUs) */ [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | DXContainerPSVInfo.cpp | 1 //===- llvm/MC/DXContainerPSVInfo.cpp - DXContainer PSVInfo -----*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 25 for (size_t Idx = 0; Idx <= Buffer.size() - Sequence.size(); ++Idx) { in FindSequence() 94 support::endian::write(OS, InfoSize, llvm::endianness::little); in write() 101 support::endian::write(OS, ResourceCount, llvm::endianness::little); in write() 103 support::endian::write(OS, BindingSize, llvm::endianness::little); in write() 112 support::endian::write(OS, in write() 114 llvm::endianness::little); in write() 120 support::endian::write(OS, static_cast<uint32_t>(IndexBuffer.size()), in write() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/APINotes/ |
H A D | APINotesReader.cpp | 1 //===--- APINotesReader.cpp - API Notes Reader ------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 // a separate input, such as the non-nil/nilable annotations for 14 //===----------------------------------------------------------------------===// 33 unsigned Major = endian::readNext<uint32_t, llvm::endianness::little>(Data); in ReadVersionTuple() 37 unsigned Minor = endian::readNext<uint32_t, llvm::endianness::little>(Data); in ReadVersionTuple() 42 endian::readNext<uint32_t, llvm::endianness::little>(Data); in ReadVersionTuple() 46 unsigned Build = endian::readNext<uint32_t, llvm::endianness::little>(Data); in ReadVersionTuple() 50 /// An on-disk hash table whose data is versioned based on the Swift version. [all …]
|
H A D | APINotesWriter.cpp | 1 //===-- APINotesWriter.cpp - API Notes Writer -------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 38 /// Information about contexts (Objective-C classes or protocols or C++ 56 /// Information about Objective-C properties. 65 /// Information about Objective-C methods. 127 return Known->second; in getIdentifier() 131 return Known->second; in getIdentifier() 146 return Known->second; in getSelector() 150 return Known->second; in getSelector() [all …]
|
/freebsd/sys/contrib/xz-embedded/ |
H A D | README | 27 make -C /path/to/kernel/source \ 28 KCPPFLAGS=-I"$(pwd)/../../include" M="$(pwd)" \ 35 make -C /path/to/kernel/source \ 36 KCPPFLAGS=-I"$(pwd)/../../include" M="$(pwd)" \ 51 XZ Embedded should compile as either GNU-C89 (used in the Linux 53 non-GNU C89 compiler or a C++ compiler should be quite easy as 54 long as there is a data type for unsigned 64-bit integer (or the 56 care than just using 32-bit integer instead of 64-bit). 58 If you use GCC, try to use a recent version. For example, on x86-32, 59 xz_dec_lzma2.c compiled with GCC 3.3.6 is 15-25 % slower than when [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/i2c/ |
H A D | i2c-mux-reg.txt | 1 Register-based I2C Bus Mux 7 - compatible: i2c-mux-reg 8 - i2c-parent: The phandle of the I2C bus that this multiplexer's master-side 10 * Standard I2C mux properties. See i2c-mux.yaml in this directory. 11 * I2C child bus nodes. See i2c-mux.yaml in this directory. 14 - reg: this pair of <offset size> specifies the register to control the mux. 15 The <offset size> depends on its parent node. It can be any memory-mapped 18 - little-endian: The existence indicates the register is in little endian. 19 - big-endian: The existence indicates the register is in big endian. 20 If both little-endian and big-endian are omitted, the endianness of the [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/regmap/ |
H A D | regmap.txt | 5 little-endian, 6 big-endian, 7 native-endian: See common-properties.txt for a definition 10 Regmap defaults to little-endian register access on MMIO based 12 architectures that typically run big-endian operating systems 13 (e.g. PowerPC), registers can be defined as big-endian and must 16 On SoCs that can be operated in both big-endian and little-endian 19 chips), "native-endian" is used to allow using the same device tree 23 Scenario 1 : a register set in big-endian mode. 27 big-endian;
|
/freebsd/sys/contrib/device-tree/src/arm64/freescale/ |
H A D | fsl-ls208xa.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-2080A family SoC. 6 * Copyright 2017-2020 NXP 12 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/interrupt-controller/arm-gic.h> 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; 32 #address-cells = <1>; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | MemProf.cpp | 7 #include "llvm/Support/Endian.h" 135 endian::Writer LE(OS, llvm::endianness::little); in serializeV0() 158 endian::Writer LE(OS, llvm::endianness::little); in serializeV2() 178 endian::Writer LE(OS, llvm::endianness::little); in serializeV3() 222 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserializeV0() 226 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserializeV0() 229 endian::readNext<FrameId, llvm::endianness::little>(Ptr); in deserializeV0() 240 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserializeV0() 243 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserializeV0() 248 endian::readNext<FrameId, llvm::endianness::little>(Ptr); in deserializeV0() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | MemProf.h | 10 #include "llvm/Support/Endian.h" 87 Name = endian::readNext<Type, llvm::endianness::little>(Ptr); \ in deserialize() 105 endian::Writer LE(OS, llvm::endianness::little); in serialize() 267 endian::Writer LE(OS, llvm::endianness::little); in serialize() 280 // Read a frame from char data which has been serialized as little endian. 285 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserialize() 287 endian::readNext<uint32_t, llvm::endianness::little>(Ptr); in deserialize() 289 endian::readNext<uint32_t, llvm::endianness::little>(Ptr); in deserialize() 290 const bool I = endian::readNext<bool, llvm::endianness::little>(Ptr); in deserialize() 303 OS << " -\n" in printYAML() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/gpio/ |
H A D | gpio-mpc8xxx.txt | 4 - compatible : Should be "fsl,<soc>-gpio" 8 - reg : Address and length of the register set for the device 9 - interrupts : Should be the port interrupt shared by all 32 pins. 10 - #gpio-cells : Should be two. The first cell is the pin number and 16 - little-endian : GPIO registers are used as little endian. If not 17 present registers are used as big endian by default. 19 Example of gpio-controller node for a mpc5125 SoC: 22 compatible = "fsl,mpc5125-gpio"; 23 #gpio-cells = <2>; 28 Example of gpio-controller node for a ls2080a SoC: [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGenData/ |
H A D | OutlinedHashTreeRecord.cpp | 1 //===-- OutlinedHashTreeRecord.cpp ----------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===// 18 #include "llvm/Support/Endian.h" 21 #define DEBUG_TYPE "outlined-hash-tree" 51 io.mapRequired(utostr(Iter->first).c_str(), Iter->second); in output() 61 support::endian::Writer Writer(OS, endianness::little); in serialize() 77 endian::readNext<uint32_t, endianness::little, unaligned>(Ptr); in deserialize() 80 auto Id = endian::readNext<uint32_t, endianness::little, unaligned>(Ptr); in deserialize() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/serial/ |
H A D | fsl-lpuart.txt | 4 - compatible : 5 - "fsl,vf610-lpuart" for lpuart compatible with the one integrated 6 on Vybrid vf610 SoC with 8-bit register organization 7 - "fsl,ls1021a-lpuart" for lpuart compatible with the one integrated 8 on LS1021A SoC with 32-bit big-endian register organization 9 - "fsl,ls1028a-lpuart" for lpuart compatible with the one integrated 10 on LS1028A SoC with 32-bit little-endian register organization 11 - "fsl,imx7ulp-lpuart" for lpuart compatible with the one integrated 12 on i.MX7ULP SoC with 32-bit little-endian register organization 13 - "fsl,imx8qxp-lpuart" for lpuart compatible with the one integrated [all …]
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_endian.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 31 #include <sys/endian.h> 35 /* On Little-Endian (LE) hosts, make all FIB data conversion functions empty. */ 37 /* Convert from Little-Endian to host order (TOH) */ 50 /* Convert from host order to Little-Endian (TOLE) */ 74 /* Convert from Little-Endian to host order (TOH) */ 87 /* Convert from host order to Little-Endian (TOLE) */
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/TargetInfo/ |
H A D | AArch64TargetInfo.cpp | 1 //===-- AArch64TargetInfo.cpp - AArch64 Target Implementation -----------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 35 // Now register the "arm64" name for use with "-march". We don't want it to in LLVMInitializeAArch64TargetInfo() 38 "ARM64 (little endian)", "AArch64", in LLVMInitializeAArch64TargetInfo() 41 "ARM64 (little endian ILP32)", "AArch64", in LLVMInitializeAArch64TargetInfo() 45 getTheAArch64leTarget(), "aarch64", "AArch64 (little endian)", "AArch64"); in LLVMInitializeAArch64TargetInfo() 47 getTheAArch64beTarget(), "aarch64_be", "AArch64 (big endian)", "AArch64"); in LLVMInitializeAArch64TargetInfo() 49 getTheAArch64_32Target(), "aarch64_32", "AArch64 (little endian ILP32)", "AArch64"); in LLVMInitializeAArch64TargetInfo()
|