/freebsd/sys/contrib/device-tree/Bindings/bus/ |
H A D | simple-pm-bus.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/bus/simple-pm-bus.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Simple Power-Managed Bus 10 - Geert Uytterhoeven <geert+renesas@glider.be> 13 A Simple Power-Managed Bus is a transparent bus that doesn't need a real 16 However, its bus controller is part of a PM domain, or under the control 17 of a functional clock. Hence, the bus controller's PM domain and/or 18 clock must be enabled for child devices connected to the bus (either [all …]
|
H A D | renesas,bsc.yaml | 2 --- 3 $id: http://devicetree.org/schemas/bus/renesas,bsc.yaml# 4 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 title: Renesas Bus State Controller (BSC) 9 - Geert Uytterhoeven <geert+renesas@glider.be> 12 The Renesas Bus State Controller (BSC, sometimes called "LBSC within Bus 13 Bridge", or "External Bus Interface") can be found in several Renesas ARM 14 SoCs. It provides an external bus for connecting multiple external 18 While the BSC is a fairly simple memory-mapped bus, it may be part of a 19 PM domain, and may have a gateable functional clock. Before a device [all …]
|
H A D | fsl,imx8qxp-pixel-link-msi-bus.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/bus/fs [all...] |
/freebsd/sys/dev/usb/controller/ |
H A D | usb_controller.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 40 #include <sys/bus.h> 139 /*------------------------------------------------------------------------* 143 *------------------------------------------------------------------------*/ 153 usb_root_mount_rel(struct usb_bus *bus) in usb_root_mount_rel() argument 155 if (bus->bus_roothold != NULL) { in usb_root_mount_rel() 156 DPRINTF("Releasing root mount hold %p\n", bus->bus_roothold); in usb_root_mount_rel() 157 root_mount_rel(bus->bus_roothold); in usb_root_mount_rel() 158 bus->bus_roothold = NULL; in usb_root_mount_rel() [all …]
|
/freebsd/sys/amd64/vmm/io/ |
H A D | ppt.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 34 #include <sys/bus.h> 59 * If the MSI-X table is located in the middle of a BAR then that MMIO 60 * region gets split into two segments - one segment above the MSI-X table 61 * and the other segment below the MSI-X table - with a hole in place of 62 * the MSI-X table so accesses to it can be trapped and emulated. 68 MALLOC_DEFINE(M_PPTMSIX, "pptmsix", "Passthru MSI-X resources"); 122 int bus, slot, func; in ppt_probe() local 127 bus = pci_get_bus(dev); in ppt_probe() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/remoteproc/ |
H A D | wkup_m3_rproc.txt | 4 The TI AM33xx and AM43xx family of devices use a small Cortex M3 co-processor 13 within the SoC. It is added as a child node of the parent interconnect bus 17 -------------------- 18 - compatible: Should be one of, 19 "ti,am3352-wkup-m3" for AM33xx SoCs 20 "ti,am4372-wkup-m3" for AM43xx SoCs 21 - reg: Should contain the address ranges for the two internal 24 translating these into bus addresses. 25 - reg-names: Contains the corresponding names for the two memory 27 - ti,hwmods: Name of the hwmod associated with the wkupm3 device. [all …]
|
/freebsd/share/man/man4/ |
H A D | ahci.4 | 1 .\" Copyright (c) 2009-2013 Alexander Motin <mav@FreeBSD.org> 35 .Bd -ragged -offset indent 44 .Bd -literal -offset indent 50 .Bl -ohang 54 .Bl -tag -width 4n -offset indent -compact 64 Non-zero value enables CCC and defines maximum time (in ms), request can wait 84 .Bl -tag -width 4n -offset indent -compact 88 device is allowed to initiate PM state change, host is passive; 90 host initiates PARTIAL PM state transition every time port becomes idle; 92 host initiates SLUMBER PM state transition every time port becomes idle. [all …]
|
H A D | mvs.4 | 35 .Bd -ragged -offset indent 44 .Bd -literal -offset indent 50 .Bl -ohang 55 Non-zero value enables CCC and defines maximum time (in us), request can wait 69 .Bl -tag -width 4n -offset indent -compact 73 device is allowed to initiate PM state change, host is passive; 75 driver initiates PARTIAL PM state transition 1ms after port becomes idle; 77 driver initiates SLUMBER PM state transition 125ms after port becomes idle. 82 A manual bus reset is needed on device hot-plug. 92 ports of several generations (Gen-I/II/IIe) of Marvell SATA controllers. [all …]
|
/freebsd/sys/dev/pci/ |
H A D | pci_user.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 54 #include <sys/bus.h> 55 #include <machine/bus.h> 68 struct pcisel pc_sel; /* domain+bus+slot+function */ 85 struct pcisel pc_sel; /* domain+bus+slot+function */ 132 error = securelevel_gt(td->td_ucred, 0); in pci_open() 175 && (match_buf->pc_sel.pc_domain != in pci_conf_match_native() 180 && (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) in pci_conf_match_native() 184 && (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) in pci_conf_match_native() [all …]
|
H A D | pci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 57 #include <sys/bus.h> 58 #include <machine/bus.h> 88 (((cfg)->hdrtype == PCIM_HDRTYPE_NORMAL && reg == PCIR_BIOS) || \ 89 ((cfg)->hdrtype == PCIM_HDRTYPE_BRIDGE && reg == PCIR_BIOS_1)) 112 static void pci_assign_interrupt(device_t bus, device_t dev, 114 static int pci_add_map(device_t bus, device_t dev, int reg, 137 static struct pci_devinfo * pci_fill_devinfo(device_t pcib, device_t bus, int d, 149 /* Bus interface */ [all …]
|
H A D | pcivar.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 35 /* some PCI bus constants */ 42 /* Config registers for PCI-PCI and PCI-Cardbus bridges. */ 54 uint8_t pp_status; /* conf. space addr. of PM control/status reg */ 55 uint8_t pp_bse; /* conf. space addr. of PM BSE reg */ 56 uint8_t pp_data; /* conf. space addr. of PM data reg */ 99 /* Interesting values for PCI MSI-X */ 107 u_int mte_vector; /* 1-based index into msix_vectors array. */ 113 uint8_t msix_location; /* Offset of MSI-X capability registers. */ [all …]
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_espi.c | 1 /*- 30 #include <sys/bus.h> 37 #include <machine/bus.h> 51 * Optimize FIFO reads and writes to do word-at-a-time instead of byte-at-a-time 105 #define FSL_ESPI_WRITE(sc,off,val) bus_write_4(sc->sc_mem_res, off, val) 106 #define FSL_ESPI_READ(sc,off) bus_read_4(sc->sc_mem_res, off) 107 #define FSL_ESPI_WRITE_FIFO(sc,off,val) bus_write_1(sc->sc_mem_res, off, val) 108 #define FSL_ESPI_READ_FIFO(sc,off) bus_read_1(sc->sc_mem_res, off) 111 mtx_lock(&(_sc)->sc_mtx) 113 mtx_unlock(&(_sc)->sc_mtx) [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/mips/loongson/ |
H A D | ls2k-reset.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mips/loongson/ls2k-rese [all...] |
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | sdio_mcu.c | 1 // SPDX-License-Identifier: ISC 27 * bus. in mt7921s_mcu_send_message() 29 if (dev->fw_assert) in mt7921s_mcu_send_message() 30 return -EBUSY; in mt7921s_mcu_send_message() 36 mdev->mcu.timeout = 3 * HZ; in mt7921s_mcu_send_message() 42 pad = round_up(skb->len, 4) - skb->len; in mt7921s_mcu_send_message() 45 ret = mt76_tx_queue_skb_raw(dev, mdev->q_mcu[txq], skb, 0); in mt7921s_mcu_send_message() 49 mt76_queue_kick(dev, mdev->q_mcu[txq]); in mt7921s_mcu_send_message() 56 struct mt76_sdio *sdio = &dev->mt76.sdio; in mt7921s_read_rm3r() 58 return sdio_readl(sdio->func, MCR_D2HRM3R, NULL); in mt7921s_read_rm3r() [all …]
|
H A D | sdio.c | 1 // SPDX-License-Identifier: ISC 32 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt7921s_txrx_worker() 33 queue_work(mdev->wq, &dev->pm.wake_work); in mt7921s_txrx_worker() 38 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7921s_txrx_worker() 43 struct mt76_connac_pm *pm = &dev->pm; in mt7921s_unregister_device() local 45 cancel_work_sync(&dev->init_work); in mt7921s_unregister_device() 46 mt76_unregister_device(&dev->mt76); in mt7921s_unregister_device() 47 cancel_delayed_work_sync(&pm->ps_work); in mt7921s_unregister_device() 48 cancel_work_sync(&pm->wake_work); in mt7921s_unregister_device() 50 mt76s_deinit(&dev->mt76); in mt7921s_unregister_device() [all …]
|
H A D | pci.c | 1 // SPDX-License-Identifier: ISC 43 struct mt76_connac_pm *pm = &dev->pm; in mt7921e_unregister_device() local 45 cancel_work_sync(&dev->init_work); in mt7921e_unregister_device() 46 mt76_unregister_device(&dev->mt76); in mt7921e_unregister_device() 47 mt76_for_each_q_rx(&dev->mt76, i) in mt7921e_unregister_device() 48 napi_disable(&dev->mt76.napi[i]); in mt7921e_unregister_device() 49 cancel_delayed_work_sync(&pm->ps_work); in mt7921e_unregister_device() 50 cancel_work_sync(&pm->wake_work); in mt7921e_unregister_device() 51 cancel_work_sync(&dev->reset_work); in mt7921e_unregister_device() 53 mt76_connac2_tx_token_put(&dev->mt76); in mt7921e_unregister_device() [all …]
|
/freebsd/sys/sys/ |
H A D | bus_dma.h | 1 /* $NetBSD: bus.h,v 1.12 1997/10/01 08:25:15 fvdl Exp $ */ 3 /*- 4 * SPDX-License-Identifier: (BSD-2-Clause AND BSD-4-Clause) 35 /*- 75 * bus 'physical' addresses, and assisting with DMA operations. 82 * Flags used in various bus DMA methods. 84 #define BUS_DMA_WAITOK 0x00 /* safe to sleep (pseudo-flag) */ 89 #define BUS_DMA_BUS1 0x10 /* placeholders for bus functions... */ 95 * The following two flags are non-standard or specific to only certain 169 * flags: Bus DMA flags. [all …]
|
/freebsd/sys/dev/ata/ |
H A D | ata-sata.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org> 33 #include <sys/bus.h> 43 #include <machine/bus.h> 45 #include <dev/ata/ata-all.h> 66 if ((error & ATA_SE_PHY_CHANGED) && (ch->pm_level == 0)) { in ata_sata_phy_check_events() 77 taskqueue_enqueue(taskqueue_thread, &ch->conntask); in ata_sata_phy_check_events() 85 if (ch->hw.pm_read != NULL) in ata_sata_scr_read() 86 return (ch->hw.pm_read(ch->dev, port, reg, val)); in ata_sata_scr_read() [all …]
|
/freebsd/sys/dev/iicbus/rtc/ |
H A D | isl12xx.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 30 * - ISL1209 = 2B sram, tamper/event timestamp 31 * - ISL1218 = 8B sram, DS13xx pin compatible (but not software compatible) 32 * - ISL1219 = 2B sram, tamper/event timestamp 33 * - ISL1220 = 8B sram, separate Fout 34 * - ISL1221 = 2B sram, separate Fout, tamper/event timestamp 43 #include <sys/bus.h> 63 * in 'B' that stands for "bar" and it is an active-low signal; something named 64 * "EVENB" implies 1=event-disable, 0=event-enable. [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/i2c/ |
H A D | i2c-davinci.txt | 7 - compatible: "ti,davinci-i2c" or "ti,keystone-i2c"; 8 - reg : Offset and length of the register set for the device 9 - clocks: I2C functional clock phandle. 11 Documentation/devicetree/bindings/clock/ti,sci-clk.yaml 13 SoC-specific Required Properties: 17 - power-domains: Should contain a phandle to a PM domain provider node 20 Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml 23 - interrupts : standard interrupt property. 24 - clock-frequency : desired I2C bus clock frequency in Hz. 25 - ti,has-pfunc: boolean; if defined, it indicates that SoC supports PFUNC [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/soc/ti/ |
H A D | wkup_m3_ipc.txt | 4 The TI AM33xx and AM43xx family of devices use a small Cortex M3 co-processor 7 C-states for CPU Idle. Once the wkup_m3_ipc driver uses the wkup_m3_rproc driver 10 API to allow the SoC PM code to execute specific PM tasks. 18 -------------------- 19 - compatible: Should be, 20 "ti,am3352-wkup-m3-ipc" for AM33xx SoCs 21 "ti,am4372-wkup-m3-ipc" for AM43xx SoCs 22 - reg: Contains the IPC register address space to communicate 24 - interrupts: Contains the interrupt information for the wkup_m3 26 - ti,rproc: phandle to the wkup_m3 rproc node so the IPC driver [all …]
|
/freebsd/sys/arm64/rockchip/ |
H A D | rk_pcie.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 33 #include <sys/bus.h> 43 #include <machine/bus.h> 78 #define ATU_OB_REGION_0_SIZE (( ATU_OB_REGIONS - 1) * ATU_OB_REGION_SIZE) 179 #define APB_WR4(_sc, _r, _v) bus_write_4((_sc)->apb_mem_res, (_r), (_v)) 180 #define APB_RD4(_sc, _r) bus_read_4((_sc)->apb_mem_res, (_r)) 240 {"rockchip,rk3399-pcie", 1}, 258 val = bus_read_4(sc->apb_mem_res, base + reg); in rk_pcie_local_cfg_read() 261 val = bus_read_2(sc->apb_mem_res, base + reg); in rk_pcie_local_cfg_read() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/pci/ |
H A D | rockchip-pcie-host.txt | 4 - #address-cells: Address representation for root ports, set to <3> 5 - #size-cells: Size representation for root ports, set to <2> 6 - #interrupt-cells: specifies the number of cells needed to encode an 8 - compatible: Should contain "rockchip,rk3399-pcie" 9 - reg: Two register ranges as listed in the reg-names property 10 - reg-names: Must include the following names 11 - "axi-base" 12 - "apb-base" 13 - clocks: Must contain an entry for each entry in clock-names. 14 See ../clocks/clock-bindings.txt for details. [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | pci.h | 1 /*- 5 * Copyright (c) 2013-2016 Mellanox Technologies, Ltd. 7 * Copyright (c) 2020-2022 The FreeBSD Foundation 42 #include <sys/bus.h> 54 #include <linux/dma-mapping.h> 61 #include <linux/pm.h> 75 /* Linux has an empty element at the end of the ID table -> nitems() - 1. */ 92 _bus, lkpi_ ## _table, _table, nitems(_table) - 1) 94 #define PCI_ANY_ID -1U 100 #define PCI_DEVID(bus, devfn) ((((uint16_t)(bus)) << 8) | (devfn)) argument [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/mmc/ |
H A D | ti-omap-hsmmc.txt | 10 ---------- [all...] |