/freebsd/sys/contrib/device-tree/Bindings/iio/adc/ |
H A D | ingenic,adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 # Copyright 2019-2020 Artur Rojek 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Artur Rojek <contact@artur-rojek.eu> 17 ADC clients must use the format described in 18 https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml, 19 giving a phandle and IIO specifier pair ("io-channels") to the ADC controller. 24 - ingenic,jz4725b-adc 25 - ingenic,jz4740-adc [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/timer/ |
H A D | nxp,sysctr-timer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/timer/nxp,sysctr-timer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bai Ping <ping.bai@nxp.com> 15 etc. it is intended for use in applications where the counter 22 - nxp,imx95-sysctr-timer 23 - nxp,sysctr-timer 34 clock-names: 37 nxp,no-divider: [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/nxp/imx/ |
H A D | imx6qdl-gw5904.dtsi | 4 * This file is dual-licensed: you can use it either under the terms 22 * MA 02110-1301 USA 29 * restriction, including without limitation the rights to use, 44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 48 #include <dt-bindings/gpio/gpio.h> 49 #include <dt-bindings/input/linux-event-codes.h> 50 #include <dt-bindings/interrupt-controller/irq.h> 68 stdout-path = &uart2; 72 compatible = "pwm-backlight"; 74 brightness-levels = <0 4 8 16 32 64 128 255>; [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/clock/ |
H A D | silabs,si5341.txt | 6 https://www.silabs.com/documents/public/data-sheets/Si5341-40-D-DataSheet.pdf 8 https://www.silabs.com/documents/public/reference-manuals/Si5341-40-D-RM.pdf 10 https://www.silabs.com/documents/public/reference-manuals/Si5345-44-42-D-RM.pdf 14 in turn can be directed to any of the 10 (or 4) outputs through a divider. 15 The internal structure of the clock generators can be found in [2]. 21 chip at boot, in case you have a (pre-)programmed device. If the PLL is not 33 - compatible: shall be one of the following: 34 "silabs,si5340" - Si5340 A/B/C/D 35 "silabs,si5341" - Si5341 A/B/C/D 36 "silabs,si5342" - Si5342 A/B/C/D [all …]
|
H A D | stericsson,u8500-clks.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/clock/stericsson,u8500-clks.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ST-Ericsson DB8500 (U8500) clocks 10 - Ulf Hansson <ulf.hansson@linaro.org> 11 - Linus Walleij <linus.walleij@linaro.org> 14 DB8500 digital baseband system-on-chip and its siblings such as 16 itself, not off-chip clocks. There are four different on-chip 17 clocks - RTC (32 kHz), CPU clock (SMP TWD), PRCMU (power reset and [all …]
|
/freebsd/sys/dev/firmware/xilinx/ |
H A D | pm_defs.h | 2 * Copyright (c) 2013-2022, ARM Limited and Contributors. All rights reserved. 4 * SPDX-License-Identifier: BSD-3-Clause 266 * @PM_RET_ERROR_INTERNAL: internal error 273 * @PM_RET_ERROR_NODE_USED: node is already in use 363 * @PM_CLOCK_DIV0_ID: Clock divider 0 364 * @PM_CLOCK_DIV1_ID: Clock divider 1
|
/freebsd/sys/dev/mmc/host/ |
H A D | dwmmc_reg.h | 1 /*- 6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) 9 * Redistribution and use in source and binary forms, with or without 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 #define SDMMC_CTRL_USE_IDMAC (1 << 25) /* Use Internal DMAC */ 43 #define SDMMC_CLKDIV 0x8 /* Clock Divider Register */ 46 #define SDMMC_CLKENA_LP (1 << 16) /* Low-power mode */ 56 #define SDMMC_INTMASK_EBE (1 << 15) /* End-bit error */ 58 #define SDMMC_INTMASK_SBE (1 << 13) /* Start-bit error */ [all …]
|
/freebsd/sys/dev/sound/pci/ |
H A D | es137x.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 7 * Redistribution and use in source and binary forms, with or without 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 55 #define DAC2_SRTODIV(x) (((1411200 + (x) / 2) / (x) - 2) & 0x1fff) 62 #define CTRL_PCLKDIV 0x1fff0000 /* ADC/DAC2 clock divider */ 75 #define CTRL_BREQ 0x00000080 /* 1 = test mode (internal mem test) */ 180 /* Use ES1370_REG_CONTROL */ 183 /* Use ES1370_REG_STATUS */
|
/freebsd/sys/arm/xilinx/ |
H A D | zy7_qspi.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 7 * Redistribution and use in source and binary forms, with or without 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * This is a driver for the Quad-SPI Flash Controller in the Xilinx 32 * Zynq-7000 SoC. 64 {"xlnx,zynq-qspi-1.0", 1}, 98 #define QSPI_SC_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 99 #define QSPI_SC_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) [all …]
|
/freebsd/sys/arm64/qoriq/clk/ |
H A D | qoriq_clkgen.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 7 * Redistribution and use in source and binary forms, with or without 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 55 { -1, 0 } 96 if (sc->flags & QORIQ_LITTLE_ENDIAN) in qoriq_clkgen_write_4() 97 bus_write_4(sc->res, addr, htole32(val)); in qoriq_clkgen_write_4() 99 bus_write_4(sc->res, addr, htobe32(val)); in qoriq_clkgen_write_4() 110 if (sc->flags & QORIQ_LITTLE_ENDIAN) in qoriq_clkgen_read_4() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | BranchProbability.h | 1 //===- BranchProbability.h - Branch Probability Wrapper ---------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 26 // This class represents Branch Probability as a non-negative fraction that is 27 // no greater than 1. It uses a fixed-point-like implementation, in which the 28 // denominator is always a constant value (here we use 1<<31 for maximum 39 // is 1<<31. For internal use only. 55 // Create a BranchProbability object from 64-bit integers. 68 // Return (1 - Probability). [all …]
|
/freebsd/sys/amd64/vmm/io/ |
H A D | vrtc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 7 * Redistribution and use in source and binary forms, with or without 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 71 uint8_t nvram2[128 - 51]; 86 #define VRTC_LOCK(vrtc) mtx_lock(&((vrtc)->mtx)) 87 #define VRTC_UNLOCK(vrtc) mtx_unlock(&((vrtc)->mtx)) 88 #define VRTC_LOCKED(vrtc) mtx_owned(&((vrtc)->mtx)) 92 * - RTC updates are halted by the guest [all …]
|
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-matchers-comparisons_test.cc | 4 // Redistribution and use in source and binary forms, with or without 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 // Google Mock - a framework for writing C++ mock classes. 40 #include "test/gmock-matchers_test.h" 119 if (listener->stream() != nullptr) { in MatchAndExplain() 122 *listener->stream() << " == " << (x % 2); in MatchAndExplain() 140 // Tests default-constructing a matcher. 209 EXPECT_FALSE(m.MatchAndExplain(-9, &listener2)); in TEST_P() 213 // Tests that a C-string literal can be implicitly converted to a [all …]
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_rng.c | 5 * Redistribution and use in source and binary forms, with or without 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 61 #define RNG_JCLK_BYP_DIV_CNT 0x0000ff00 /* Jitter clk bypass divider 153 {"broadcom,bcm2835-rng", (uintptr_t)&bcm2835_rng_conf}, 154 {"brcm,bcm2835-rng", (uintptr_t)&bcm2835_rng_conf}, 156 {"brcm,bcm2711-rng200", (uintptr_t)&bcm2838_rng_conf}, 157 {"brcm,bcm2838-rng", (uintptr_t)&bcm2838_rng_conf}, 158 {"brcm,bcm2838-rng200", (uintptr_t)&bcm2838_rng_conf}, 159 {"brcm,bcm7211-rng", (uintptr_t)&bcm2838_rng_conf}, [all …]
|
/freebsd/sys/dev/rtsx/ |
H A D | rtsxreg.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 9 * Permission to use, copy, modify, and distribute this software for any 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 196 /* Internal clock. */ 201 /* Internal clock divisor values. */ 208 /* Internal clock selection. */ 241 /* RTS5229-only. */ 311 /* SD configuration register 1 (clock divider, bus mode and width). */ [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | ntp_calendar.c | 2 * ntp_calendar.c - calendar and helper functions 7 * --------- [all...] |
/freebsd/sys/dev/neta/ |
H A D | if_mvnetareg.h | 7 * Redistribution and use in source and binary forms, with or without 22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 46 /* XXX: Currently multi-queue can be used on the Tx side only */ 53 #if MVNETA_TX_QNUM_MAX & (MVNETA_TX_QNUM_MAX - 1) != 0 56 #if MVNETA_RX_QNUM_MAX & (MVNETA_RX_QNUM_MAX - 1) != 0 62 #define MVNETA_TX_QUEUE_ALL ((1<<MVNETA_TX_QNUM_MAX)-1) 63 #define MVNETA_RX_QUEUE_ALL ((1<<MVNETA_RX_QNUM_MAX)-1) 89 #define MVNETA_EUIAE 0x2098 /* Ethernet Unit Internal Addr Error */ 134 /* Rx DMA Wake on LAN Registers 0x3690 - 0x36b8 */ [all …]
|
/freebsd/lib/libpmc/ |
H A D | pmc.atom.3 | 3 .\" Redistribution and use in source and binary forms, with or without 18 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 44 .Bl -tag -width "Li PMC_CLASS_IAP" 46 Fixed-function counters that count only one hardware event per counter. 58 .%B "IA-32 Intel(R) Architecture Software Developer's Manual" 60 .%N "Order Number 253669-027US" 69 .Bl -column "PMC_CAP_INTERRUPT" "Support" 86 .Bl -tag -width indent 94 Configure the PMC to count the number of de-asserted to asserted [all …]
|
H A D | pmc.core2.3 | 3 .\" Redistribution and use in source and binary forms, with or without 18 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 44 .Bl -tag -width "Li PMC_CLASS_IAP" 46 Fixed-function counters that count only one hardware event per counter. 58 .%B "IA-32 Intel(R) Architecture Software Developer's Manual" 60 .%N "Order Number 253669-027US" 67 Not all CPUs in this family implement fixed-function counters. 70 .Bl -column "PMC_CAP_INTERRUPT" "Support" 87 .Bl -tag -width indent [all …]
|
/freebsd/sys/dev/sdhci/ |
H A D | sdhci_fsl_fdt.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2020 - 2021 Alstom Group. 5 * Copyright (c) 2020 - 2021 Semihalf. 7 * Redistribution and use in source and binary forms, with or without 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 56 #define RD4 (sc->read) 57 #define WR4 (sc->write) 167 * Use the smallest value, bigger than requested in that case. [all …]
|
H A D | sdhci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 8 * Redistribution and use in source and binary forms, with or without 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 81 #define RD1(slot, off) SDHCI_READ_1((slot)->bus, (slot), (off)) 82 #define RD2(slot, off) SDHCI_READ_2((slot)->bus, (slot), (off)) 83 #define RD4(slot, off) SDHCI_READ_4((slot)->bus, (slot), (off)) 85 SDHCI_READ_MULTI_4((slot)->bus, (slot), (off), (ptr), (count)) 87 #define WR1(slot, off, val) SDHCI_WRITE_1((slot)->bus, (slot), (off), (val)) [all …]
|
/freebsd/sys/arm/ti/ |
H A D | ti_i2c.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 8 * Redistribution and use in source and binary forms, with or without 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * This driver currently doesn't use DMA for the transfer, although I hope to 100 uint8_t psc; /* Fast/Standard mode prescale divider */ 117 /* { 3200000, 1, 113, 115, 7, 10}, - HS mode */ 138 #define TI_I2C_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 139 #define TI_I2C_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) [all …]
|
/freebsd/share/doc/papers/timecounter/ |
H A D | timecounter.ms | 5 .\" ---------------------------------------------------------------------------- 6 .\" "THE BEER-WARE LICENSE" (Revision 42): 9 .\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 10 .\" ---------------------------------------------------------------------------- 16 .A "Poul-Henning Kamp" "The FreeBSD Project" 18 The FreeBSD timecounters are an architecture-independent implementation 21 multiplication to canonical timescales based on micro- or nano-seconds 23 synchronisation. Timecounters are implemented using lock-less 24 stable-storage based primitives which scale efficiently in SMP 80 for instance transport or consumption of a substance at a well-known [all …]
|
/freebsd/sys/dev/bhnd/cores/chipc/ |
H A D | chipcreg.h | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2015-2016 Landon Fuller <landon@landonf.org> 5 * Copyright (c) 2010-2015 Broadcom Corporation 10 * distributed with the Asus RT-N16 firmware source code release. 12 * Permission to use, copy, modify, and/or distribute this software for any 20 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 22 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 77 /* siba backplane configuration broadcast (siba-only) */ 81 #define CHIPC_GPIOPU 0x58 /**< pull-up mask (rev >= 20) */ [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | reg_addr.h | 2 * Copyright (c) 2017-2018 Cavium, Inc. 5 * Redistribution and use in source and binary forms, with or without 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 78 …- For ending "endless completion". 0 - When receiving a completion timeout while receiving a compl… 79 … DataWidth:0x4 // 0 - TXCPL sync fifo pop underflow 1 - TXR sync fifo pop underflow 2 - TXW hea… 80 …s:R DataWidth:0x6 // 0 - RX target read and config sync fifo push overflow 1 - RX header syn… 81 …ataWidth:0x14 // 4:0 - TXCPL sync fifo pop status 9:5 - TXR sync fifo pop status 14:10 - TXW hea… 88 …ffff<<0) // Vendor ID. PCI-SIG assigned Manufacturer Identifier. Note: The access attributes of … 90 …ce Identifier. Note: The access attributes of this field are as follows: - Dbi: if (DBI_RO_WR_E… [all …]
|