/freebsd/share/man/man4/ |
H A D | spigen.4 | 33 To compile this driver into the kernel, 35 kernel configuration file: 36 .Bd -ragged -offset indent 45 .Bd -literal -offset indent 51 driver provides direct access to a slave device on the SPI bus. 54 device is associated with a single chip-select 56 with that chip-select line asserted. 58 SPI data transfers are inherently bi-directional; there are no separate 71 driver provides access to the SPI slave device with the following 75 .Bl -tag -width indent [all …]
|
H A D | iicmux.4 | 1 .\"- 2 .\" SPDX-License-Identifier: BSD-2-Clause 34 To compile this driver into the kernel, 36 kernel configuration file: 37 .Bd -ragged -offset indent 44 .Bd -literal -offset indent 73 framework operates automatically when I2C slave devices initiate I/O. 88 When an I2C slave device on a bus downstream of a mux initiates I/O, 97 slave device that requested bus ownership. 98 The mux hardware maintains that upstream-to-downstream connection until [all …]
|
H A D | mx25l.4 | 30 .Nd driver for SpiFlash(tm) compatible non-volatile storage devices 32 To compile this driver into the kernel, 34 kernel configuration file: 35 .Bd -ragged -offset indent 42 .Bd -literal -offset indent 48 driver provides support for the family of non-volatile storage 72 .Bl -bullet -compact 133 device is defined as a slave device subnode 140 The most commonly-used ones are documented below. 145 .Bl -tag -width indent [all …]
|
H A D | at45d.4 | 30 .Nd driver for DataFlash(tm) non-volatile storage devices 32 To compile this driver into the kernel, 34 kernel configuration file: 35 .Bd -ragged -offset indent 42 .Bd -literal -offset indent 48 driver provides support for the family of non-volatile storage 75 .Bl -bullet -compact 100 device is defined as a slave device subnode 107 The most commonly-used ones are documented below. 112 .Bl -tag -width indent [all …]
|
H A D | ltc430x.4 | 1 .\"- 2 .\" SPDX-License-Identifier: BSD-2-Clause 34 To compile this driver into the kernel, 36 kernel configuration file: 37 .Bd -ragged -offset indent 44 .Bd -literal -offset indent 52 buses as needed when slave devices on the downstream buses initiate I/O. 63 node are additional i2c buses, which will have their own i2c slave 69 .Bk -words 70 .Li i2c/i2c-mux-ltc4306.txt [all …]
|
H A D | iic_gpiomux.4 | 1 .\"- 2 .\" SPDX-License-Identifier: BSD-2-Clause 34 To compile this driver into the kernel, 36 kernel configuration file: 37 .Bd -ragged -offset indent 44 .Bd -literal -offset indent 53 buses as needed when slave devices on the downstream buses initiate I/O. 64 .Va i2c-parent 68 node are additional i2c buses, which will have their own i2c slave 74 .Bk -words [all …]
|
H A D | pca954x.4 | 2 .\" SPDX-License-Identifier: BSD-2-Clause 34 To compile this driver into the kernel, 36 kernel configuration file: 37 .Bd -ragged -offset indent 46 .Bd -literal -offset indent 55 buses as needed when slave devices on the downstream buses initiate I/O. 66 node are additional I2C buses, which will have their own I2C slave 74 .Bl -bullet 83 .Bl -tag -width i2c-mux-idle-disconnect 84 .It Va i2c-mux-idle-disconnect [all …]
|
H A D | gpioiic.4 | 30 .Nd GPIO I2C bit-banging device driver 32 To compile this driver into the kernel, 34 kernel configuration file: 35 .Bd -ragged -offset indent 45 .Bd -literal -offset indent 51 driver provides an IIC bit-banging interface using two GPIO pins for the 59 They are driven to '0' or switched to input mode (Hi-Z/tri-state), and 67 .Bl -tag -width ".Va hint.gpioiic.%d.atXXX" 77 bit-banging bus. 81 (any other bits - i.e., pins - will be ignored). [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/soc/qcom/ |
H A D | qcom,smp2p.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 12 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 16 of a single 32-bit value between two processors. Each value has a single 35 $ref: /schemas/types.yaml#/definitions/phandle-array 37 - items: 38 - description: phandle to a syscon node representing the APCS registers [all …]
|
H A D | qcom,smp2p.txt | 4 a single 32-bit value between two processors. Each value has a single writer 9 - compatible: 15 - interrupts: 17 Value type: <prop-encoded-array> 20 - mboxes: 22 Value type: <prop-encoded-array> 26 - qcom,ipc: 28 Value type: <prop-encoded-array> 31 - phandle to a syscon node representing the apcs registers 32 - u32 representing offset to the register within the syscon [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/spmi/ |
H A D | qcom,spmi-pmic-arb.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/spmi/qcom,spmi-pmic-arb.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Stephen Boyd <sboyd@kernel.org> 14 controller with wrapping arbitration logic to allow for multiple on-chip 18 to slave devices. 21 - $ref: spmi.yaml 25 const: qcom,spmi-pmic-arb 29 - items: # V1 [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/spi/ |
H A D | spi-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mark Brown <broonie@kernel.org> 14 and a set of child nodes for each SPI slave on the bus. The system SPI 15 controller may be described for use in SPI master mode or in SPI slave mode, 20 pattern: "^spi(@.*|-([0-9]|[1-9][0-9]+))?$" 22 "#address-cells": 25 "#size-cells": [all …]
|
/freebsd/sys/dev/iicbus/controller/opencores/ |
H A D | iicoc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2003-2012 Broadcom Corporation 34 #include <sys/kernel.h> 56 bus_write_1(sc->mem_res, reg<<sc->reg_shift, value); in iicoc_dev_write() 66 val = bus_read_1(sc->mem_res, reg<<sc->reg_shift); in iicoc_dev_read() 78 } while ((status & bit) != 0 && --tries > 0); in iicoc_wait_on_status() 80 return (tries == 0 ? -1: 0); in iicoc_wait_on_status() 91 return (-1); in iicoc_rd_cmd() 105 return (-1); in iicoc_wr_cmd() [all …]
|
/freebsd/share/doc/psd/21.ipc/ |
H A D | 5.t | 58 support only in-band signaling (i.e. the urgent data is 75 of the out-of-band data, but only notification that it is pending. 101 then reads the out-of-band byte. 135 A process may also read or peek at the out-of-band data 138 the urgent data in-band with the normal data, and only sends 141 With such protocols, the out-of-band byte may not yet have arrived 144 Worse, there may be enough in-band data in the input buffer 153 This treatment is available as a socket-level option, SO_OOBINLINE; 159 but no out-of-band data are lost. 161 Non-Blocking Sockets [all …]
|
/freebsd/sys/dev/iicbus/ |
H A D | iicsmb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 50 #include <sys/kernel.h> 74 u_char devaddr; /* slave device address */ 90 static int iicsmb_quick(device_t dev, u_char slave, int how); 91 static int iicsmb_sendb(device_t dev, u_char slave, char byte); 92 static int iicsmb_recvb(device_t dev, u_char slave, char *byte); 93 static int iicsmb_writeb(device_t dev, u_char slave, char cmd, char byte); 94 static int iicsmb_writew(device_t dev, u_char slave, char cmd, short word); 95 static int iicsmb_readb(device_t dev, u_char slave, char cmd, char *byte); [all …]
|
H A D | iic.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 36 #include <sys/kernel.h> 64 uint16_t slave; member 71 u_char slave; member 87 #define IIC_LOCK(cdp) sx_xlock(&(cdp)->lock) 88 #define IIC_UNLOCK(cdp) sx_xunlock(&(cdp)->loc [all...] |
H A D | icee.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 38 #include <sys/kernel.h> 57 * AT24 parts have a "write page size" that differs per-device, and a "read page 68 int addr; /* Slave address on the bus */ 112 #define CDEV2SOFTC(dev) ((dev)->si_drv1) 135 ofw_bus_search_compatible(dev, compat_data)->ocd_data; in icee_probe() 137 device_set_desc(dev, d->name); in icee_probe() 154 ofw_bus_search_compatible(sc->dev, compat_data)->ocd_data; in icee_init() 156 sc->size = d->size; in icee_init() [all …]
|
H A D | iiconf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 44 * system errno value later. This lets controller- and bus-layer code get 54 * Translate IIC_Exxxxx status values to vaguely-equivelent errno values. 75 * IIC_ERRNO marker bit. If lots of high-order bits are set, in iic2errno() 76 * then it's one of the negative pseudo-errors such as ERESTART in iic2errno() 77 * and we return it as-is. Otherwise it's a plain "small in iic2errno() 99 if (sc->owner) in iicbus_intr() 100 IICBUS_INTR(sc->owner, event, buf); in iicbus_intr() 113 error = mtx_sleep(sc, &sc->lock, IICPRI|PCATCH, "iicreq", 0); in iicbus_poll() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/serial/ |
H A D | serial.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schema [all...] |
/freebsd/sys/dev/smbus/ |
H A D | smb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 31 #include <sys/kernel.h> 61 int slave; member 129 if (device_find_child(parent, "smb", -1) == NULL) in smb_identify() 136 if (smbus_get_addr(dev) != -1) in smb_probe() 151 sc->sc_de in smb_attach() [all...] |
/freebsd/sys/dev/iicbus/pmic/ |
H A D | act8846.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 36 #include <sys/kernel.h> 56 {"active-semi,act8846", 1}, 60 #define LOCK(_sc) sx_xlock(&(_sc)->lock) 61 #define UNLOCK(_sc) sx_xunlock(&(_sc)->lock) 62 #define LOCK_INIT(_sc) sx_init(&(_sc)->lock, "act8846") 63 #define LOCK_DESTROY(_sc) sx_destroy(&(_sc)->lock); 64 #define ASSERT_LOCKED(_sc) sx_assert(&(_sc)->lock, SA_XLOCKED); 65 #define ASSERT_UNLOCKED(_sc) sx_assert(&(_sc)->lock, SA_UNLOCKED); [all …]
|
/freebsd/sys/dev/iicbus/sensor/ |
H A D | max44009.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 34 #include <sys/kernel.h> 80 msgs[0].slave = sc->sc_addr; in max44009_get_reading() 84 msgs[1].slave = sc->sc_addr; in max44009_get_reading() 88 msgs[2].slave = sc->sc_addr; in max44009_get_reading() 92 msgs[3].slave = sc->sc_addr; in max44009_get_reading() 115 if (req->oldptr != NULL) { in max44009_lux_sysctl() 134 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data) in max44009_probe() 152 sc->sc_dev = dev; in max44009_attach() [all …]
|
/freebsd/sys/dev/amdsmb/ |
H A D | amdsmb.c | 1 /*- 29 #include <sys/kernel.h> 94 #define SMB_STS_PEC 0x1f /* PEC (CRC-8) Error */ 114 #define AMDSMB_LOCK(amdsmb) mtx_lock(&(amdsmb)->lock) 115 #define AMDSMB_UNLOCK(amdsmb) mtx_unlock(&(amdsmb)->lock) 116 #define AMDSMB_LOCK_ASSERT(amdsmb) mtx_assert(&(amdsmb)->lock, MA_OWNED) 119 (bus_read_1(amdsmb->res, register)) 121 (bus_write_1(amdsmb->res, register, value)) 127 PCI_DESCR("AMD-8111 SMBus 2.0 Controller") } 138 device_set_desc(dev, tbl->descr); in amdsmb_probe() [all …]
|
/freebsd/sys/dev/imcsmb/ |
H A D | imcsmb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2017-2018 Panasas 34 #include <sys/kernel.h> 61 static int imcsmb_readb(device_t dev, u_char slave, char cmd, char *byte); 62 static int imcsmb_readw(device_t dev, u_char slave, char cmd, short *word); 63 static int imcsmb_writeb(device_t dev, u_char slave, char cmd, char byte); 64 static int imcsmb_writew(device_t dev, u_char slave, char cmd, short word); 67 static int imcsmb_transfer(device_t dev, u_char slave, char cmd, void *data, 73 * which any SMBus slave device drivers will connect to. [all …]
|
/freebsd/sys/dev/alpm/ |
H A D | alpm.c | 1 /*- 33 #include <sys/kernel.h> 60 * I/O registers offsets - the base address is programmed via the 63 #define SMBSTS 0x0 /* SMBus host/slave status register */ 64 #define SMBCMD 0x1 /* SMBus host/slave command register */ 130 #define ALPM_LOCK(alpm) mtx_lock(&(alpm)->lock) 131 #define ALPM_UNLOCK(alpm) mtx_unlock(&(alpm)->lock) 132 #define ALPM_LOCK_ASSERT(alpm) mtx_assert(&(alpm)->lock, MA_OWNED) 135 (bus_space_read_1(alpm->smbst, alpm->smbsh, register)) 137 (bus_space_write_1(alpm->smbst, alpm->smbsh, register, value)) [all …]
|