/freebsd/sys/contrib/device-tree/Bindings/power/supply/ |
H A D | sbs,sbs-battery.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 16 - $ref: power-supply.yaml# 21 - items: 22 - enum: 23 - ti,bq20z45 24 - ti,bq20z65 [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/ |
H A D | cros-ec-sbs.dtsi | 2 * Smart battery dts fragment for devices that use cros-ec-sbs 6 * This file is dual-licensed: you can use it either under the terms 46 battery: sbs-battery@b { 47 compatible = "sbs,sbs-battery"; 49 sbs,i2c-retry-count = <2>; 50 sbs,poll-retry-count = <1>;
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | rdma-ndd.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 38 #include <poll.h> 90 char *end = dest + len-1; in build_node_desc() 127 nd_file[sizeof(nd_file)-1] = '\0'; in update_node_desc() 132 return -EIO; in update_node_desc() 137 rc = -EIO; in update_node_desc() 147 syslog(LOG_INFO, "%s: change (%s) -> (%s)\n", in update_node_desc() 166 dev_dir[sizeof(dev_dir)-1] = '\0'; in set_rdma_node_desc() 171 return -ENOSYS; in set_rdma_node_desc() [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_acts.c | 2 * refclock_acts - clock driver for the NIST/USNO/PTB/NPL Computer Time 33 * This driver requires a modem with a Hayes-compatible command set and 35 * modem setup string is hard-coded in the driver and may require 41 * followed by the number itself, including the long-distance prefix 43 * when (a) fudge flag1 is set by ntpdc, (b) at each poll interval 45 * poll interval whether or not other synchronization sources are 69 * driver will send a single character 'T' at each poll event. If 76 * Phone: (303) 494-4774 (Boulder, CO); (808) 335-4721 (Hawaii) 85 * 47999 90-0 205 int retry; /* retry index */ global() member [all...] |
H A D | ntp_proto.c | 2 * ntp_proto.c - NTP version 4 protocol machinery 31 # define BDELAY_DEFAULT (-0.050) 38 x.l_ui &= ~((1 << SRVFUZ_SHIFT) - 1U); \ 50 AUTH_UNKNOWN = -1, /* Unknown */ 166 u_char sys_bcpollbstep = 0; /* Broadcast Poll backstep gate */ 167 int sys_ceiling = STRATUM_UNSPEC - 1; /* cluster stratum ceiling */ 179 * Statistics counters - first the good, then the bad 196 * The default way is "on-receipt". If this was a packet from a 197 * well-behaved source, on-receip [all...] |
H A D | refclock_dumbclock.c | 2 * refclock_dumbclock - clock driver for a unknown time distribution system 34 * hh:mm:ss -- what you'd expect, with a 24 hour clock. (Heck, that's the only 45 #define PRECISION (-13) /* precision assumed (about 100 us) */ 53 * worse than this number of seconds away, assume the next day and retry. 64 u_char linect; /* count ignored lines (for monitor */ 84 noentry, /* poll the driver -- a nice fabrication */ 93 * dumbclock_start - ope [all...] |
/freebsd/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211desc.h | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2006 Atheros Communications, Inc. 41 /* bits 12-17 are reserved */ 45 #define AR_VEOL 0x00800000 /* virtual end-of-list */ 62 #define AR_Frm_PSPOLL 0x00200000 /* PS poll frame */ 66 /* bits 24-31 are reserved */ 72 /* bits 14-31 are reserved */ 79 /* NB: the spec has the Short+Long retry counts reversed */ [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210desc.h | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2004 Atheros Communications, Inc. 61 #define AR_Frm_PSPOLL 0x08000000 /* PS poll frame */ 84 /* NB: the spec has the Short+Long retry counts reversed */ 85 #define AR_LongRetryCnt 0x000000f0 /* long retry count */ 87 #define AR_ShortRetryCnt 0x00000f00 /* short retry count */
|
H A D | ar5210reg.h | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2004 Atheros Communications, Inc. 24 * Processor for IEEE 802.11a 5-GHz Wireless LANs. 51 #define AR_RFCNT 0x0054 /* RX frame count limit register */ 72 #define AR_SLOT_TIME 0x8010 /* Length of a back-off */ 75 #define AR_RETRY_LMT 0x801c /* Short and long frame retry limit */ 97 #define AR_RETRY_CNT 0x8084 /* Current short or long retry cnt */ 98 #define AR_BACKOFF 0x8088 /* Back-off status */ [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/i2c/ |
H A D | i2c-cros-ec-tunnel.txt | 1 I2C bus that tunnels through the ChromeOS EC (cros-ec) 8 The node for this device should be under a cros-ec node like google,cros-ec-spi 9 or google,cros-ec-i2c. 13 - compatible: google,cros-ec-i2c-tunnel 14 - google,remote-bus: The EC bus we'd like to talk to. 17 - One node per I2C device connected to the tunnelled I2C bus. 21 cros-ec@0 { 22 compatible = "google,cros-ec-spi"; 26 i2c-tunnel { 27 compatible = "google,cros-ec-i2c-tunnel"; [all …]
|
H A D | google,cros-ec-i2c-tunnel.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $id: http://devicetree.org/schemas/i2c/google,cros-ec-i2c-tunnel.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: I2C bus that tunnels through the ChromeOS EC (cros-ec) 11 - Doug Anderson <dianders@chromium.org> 12 - Benson Leung <bleung@chromium.org> 20 The node for this device should be under a cros-ec node like 21 google,cros-ec-spi or google,cros-ec-i2c. 24 - $ref: i2c-controller.yaml# [all …]
|
/freebsd/contrib/ncurses/ncurses/tty/ |
H A D | lib_twait.c | 2 * Copyright 2018-2020,2023 Thomas E. Dickey * 3 * Copyright 1998-2015,2016 Free Software Foundation, Inc. * 31 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 * 33 * and: Thomas E. Dickey 1996-on * 42 ** comments, none of the original code remains - T.Dickey). 91 if (GetClockTime(&t1) == -1) { in _nc_gettime() 99 if (t0->sub_secs > t1.sub_secs) { in _nc_gettime() 101 t1.tv_sec--; in _nc_gettime() 103 res = (long) ((t1.tv_sec - t0->tv_sec) * 1000L in _nc_gettime() 104 + (t1.sub_secs - t0->sub_secs) / (TimeScale / 1000L)); in _nc_gettime() [all …]
|
/freebsd/sys/kern/ |
H A D | sys_eventfd.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 44 #include <sys/poll.h> 117 efd->efd_flags = flags; in eventfd_create_file() 118 efd->efd_count = initval; in eventfd_create_file() 119 mtx_init(&efd->efd_lock, "eventfd", NULL, MTX_DEF); in eventfd_create_file() 120 knlist_init_mtx(&efd->efd_sel.si_note, &efd->efd_lock); in eventfd_create_file() 135 efd = fp->f_data; in eventfd_close() 136 seldrain(&efd->efd_sel); in eventfd_close() 137 knlist_destroy(&efd->efd_sel.si_note); in eventfd_close() [all …]
|
H A D | sys_timerfd.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 41 #include <sys/poll.h> 88 timerfd_t tfd_count; /* (t) expiration count since read */ 143 mtx_lock(&tfd->tfd_lock); in timerfd_jumped() 144 if (tfd->tfd_clockid != CLOCK_REALTIME || in timerfd_jumped() 145 (tfd->tfd_timflags & TFD_TIMER_ABSTIME) == 0 || in timerfd_jumped() 146 timespeccmp(&boottime, &tfd->tfd_boottim, ==)) { in timerfd_jumped() 147 mtx_unlock(&tfd->tfd_lock); in timerfd_jumped() 151 if (callout_active(&tfd->tfd_callout)) { in timerfd_jumped() [all …]
|
/freebsd/sys/dev/le/ |
H A D | lancereg.h | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 34 /*- 70 * - Am7990 Local Area Network Controller for Ethernet (LANCE) 71 * (and its descendent Am79c90 C-LANCE). 73 * - Am79c900 Integrated Local Area Communications Controller (ILACC) 75 * - Am79c960 PCnet-ISA Single-Chip Ethernet Controller for ISA 77 * - Am79c961 PCnet-ISA+ Jumperless Single-Chip Ethernet Controller 80 * - Am79c961A PCnet-ISA II Jumperless Full-Duplex Single-Chip 83 * - Am79c965A PCnet-32 Single-Chip 32-bit Ethernet Controller [all …]
|
/freebsd/sys/dev/vge/ |
H A D | if_vgereg.h | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 18 * 4. Neither the name of the author nor the names of any co-contributors 37 * Definitions for the built-in copper PHY can be found in vgphy.h. 41 * using 32-bit I/O cycles, but some of them are less than 32 bits 105 #define VGE_RXDESC_RESIDUECNT 0x5E /* RX descriptor residue count */ 119 #define VGE_SSTIMER 0x74 /* single-shot timer */ 196 #define VGE_TXCTL_COLLCTL 0x0C /* collision retry control */ 205 #define VGE_TXCOLLS_INFINITE 0x0C /* retry forever */ 233 #define VGE_CR3_INT_SWPEND 0x01 /* disable multi-level int bits */ [all …]
|
/freebsd/contrib/ntp/include/ |
H A D | ntp.h | 2 * ntp.h - NTP definitions for the masses 21 * Calendar arithmetic - contributed by G. Healton 35 / 4 - ((year - 1) / 100) + ((year - 1) / \ 41 #define ntp0(year) (julian0(year) - julian0(1900)) 46 #define unix0(year) (julian0(year) - julian0(1970)) 49 * LEAP YEAR test for full 4-digit years (e.g, 1999, 2010) 61 * to convert simple two-digit years to tm_year style years: 66 * to convert either two-digi 348 int retry; /* retry counter */ global() member 790 int count; /* total packet count */ global() member 843 u_int32 count; /* number of packets matched */ global() member [all...] |
/freebsd/sys/contrib/device-tree/src/arm/nxp/imx/ |
H A D | imx6q-evi.dts | 4 * This file is dual-licensed: you can use it either under the terms 44 /dts-v1/; 46 #include <dt-bindings/gpio/gpio.h> 47 #include <dt-bindings/interrupt-controller/irq.h> 51 compatible = "uniwest,imx6q-evi", "fsl,imx6q"; 58 reg_usbh1_vbus: regulator-usbhubreset { 59 compatible = "regulator-fixed"; 60 regulator-name = "usbh1_vbus"; 61 regulator-min-microvolt = <5000000>; 62 regulator-max-microvolt = <5000000>; [all …]
|
/freebsd/sys/dev/isci/scil/ |
H A D | scif_sas_smp_remote_device.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 9 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 22 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 28 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 89 fw_device->protocol_device.smp_device.current_activity = in scif_sas_smp_remote_device_clear() 92 fw_device->protocol_device.smp_device.current_smp_request = in scif_sas_smp_remote_device_clear() 95 fw_device->protocol_device.smp_device.current_activity_phy_index = 0; in scif_sas_smp_remote_device_clear() 97 fw_device->protocol_device.smp_device.curr_config_route_index = 0; in scif_sas_smp_remote_device_clear() 99 fw_device->protocol_device.smp_device.config_route_smp_phy_anchor = NULL; in scif_sas_smp_remote_device_clear() [all …]
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_kernel.h | 1 /*- 2 * SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 5 * Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> 10 * This -- and only this -- header file may also be distributed under 13 * Copyright (C) 2001-2007 Miklos Szeredi. All rights reserved. 43 * - add the following messages: 49 * - add padding to messages to accommodate 32-bit servers on 64-bit kernels 52 * - add FOPEN_DIRECT_IO and FOPEN_KEEP_CACHE flags 53 * - add FUSE_FSYNCDIR message 56 * - add FUSE_ACCESS message [all …]
|
/freebsd/sys/dev/atkbdc/ |
H A D | atkbdc_isa.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 54 rman_res_t count, u_int flags); 100 rman_res_t count; in atkbdc_isa_probe() local 121 * (0x60 and 0x64). Some brain-damaged ACPI BIOS has reversed in atkbdc_isa_probe() 129 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0) in atkbdc_isa_probe() 133 count++; in atkbdc_isa_probe() 135 if (count > 1) /* adjust the count and/or start port */ in atkbdc_isa_probe() 152 * Check if we really have AT keyboard controller. Poll status in atkbdc_isa_probe() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212reg.h | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 37 #define AR_TOPS 0x0044 /* MAC timeout prescale count */ 41 #define AR_RPCNT 0x0054 /* MAC receive frame count limit */ 58 #define AR_ISR_RAC 0x00c0 /* ISR read-and-clear access */ 59 /* Shadow copies with read-and-clear access */ 97 #define AR_Q_TXE_M 0x000003FF /* Mask for TXE (QCU 0-9) */ 99 #define AR_Q_TXD_M 0x000003FF /* Mask for TXD (QCU 0-9) */ [all …]
|
/freebsd/sys/dev/tpm/ |
H A D | tpm.c | 3 * Copyright (c) 2009, 2010 Hans-Joerg Hoexer 49 #define IRQUNK -1 83 #define TPM_INTF_INT_LEVEL_LOW 0x0010 /* level-low ints supported */ 84 #define TPM_INTF_INT_LEVEL_HIGH 0x0008 /* level-high ints supported */ 85 #define TPM_INTF_LOCALITY_CHANGE_INT 0x0004 /* locality-change int (mb 1) */ 102 #define TPM_STS_BITS "\020\010VALID\07RDY\06GO\05DRDY\04EXPECT\02RETRY" 128 ((struct tpm_softc *)dev->si_drv1) 206 sc->mem_rid = 0; in tpm_attach() 207 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->mem_rid, in tpm_attach() 209 if (sc->mem_res == NULL) in tpm_attach() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
H A D | tx.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2016-2017 Intel Deutschland GmbH 11 * enum iwl_tx_flags - bitmasks for tx_flags in TX command 12 * @TX_CMD_FLG_PROT_REQUIRE: use RTS or CTS-t [all...] |
/freebsd/sys/dev/my/ |
H A D | if_myreg.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 33 #define MY_PAR0 0x0 /* physical address 0-3 */ 34 #define MY_PAR1 0x04 /* physical address 4-5 */ 35 #define MY_MAR0 0x08 /* multicast address 0-3 */ 36 #define MY_MAR1 0x0C /* multicast address 4-7 */ 37 #define MY_FAR0 0x10 /* flow-control address 0-3 */ 38 #define MY_FAR1 0x14 /* flow-control address 4-5 */ 116 * Transmit Poll Demand Register 121 * Receive Poll Demand Register [all …]
|