/freebsd/sys/dev/iicbus/ |
H A D | iicbus.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 31 * Autoconfiguration and support routines for the Philips serial I2C bus 37 #include <sys/bus.h> 51 /* See comments below for why auto-scanning is a bad idea. */ 60 device_set_desc(dev, "Philips I2C bus"); in iicbus_probe() 68 iic_probe_device(device_t dev, u_char addr) in iic_probe_device() argument 73 if ((addr & 1) == 0) { in iic_probe_device() 75 if (!iicbus_start(dev, (u_char)addr, 0)) { in iic_probe_device() 81 if (!iicbus_block_read(dev, (u_char)addr, &byte, 1, &count)) in iic_probe_device() [all …]
|
H A D | iiconf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 35 #include <sys/bus.h> 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() 94 iicbus_intr(device_t bus, int event, char *buf) in iicbus_intr() argument 96 struct iicbus_softc *sc = (struct iicbus_softc *)device_get_softc(bus); in iicbus_intr() [all …]
|
/freebsd/sys/dev/smbus/ |
H A D | smbus.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 33 #include <sys/bus.h> 48 uint8_t addr; member 52 * Autoconfiguration and support routines for System Management bus 59 device_set_desc(dev, "System Management Bus"); in smbus_probe() 69 mtx_init(&sc->lock, device_get_nameunit(dev), "smbus", MTX_DEF); in smbus_attach() 86 mtx_destroy(&sc->lock); in smbus_detach() 121 smbus_hinted_child(device_t bus, const char *dname, int dunit) in smbus_hinted_child() argument 125 int addr; in smbus_hinted_child() local [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/leds/ |
H A D | leds-netxbig.txt | 1 Binding for the CPLD LEDs (GPIO extension bus) found on some LaCie/Seagate 5 - compatible: "lacie,netxbig-leds". 6 - gpio-ext: Phandle for the gpio-ext bus. 9 - timers: Timer array. Each timer entry is represented by three integers: 10 Mode (gpio-ext bus), delay_on and delay_off. 12 Each LED is represented as a sub-node of the netxbig-leds device. 14 Required sub-node properties: 15 - mode-addr: Mode register address on gpio-ext bus. 16 - mode-val: Mode to value mapping. Each entry is represented by two integers: 17 A mode and the corresponding value on the gpio-ext bus. [all …]
|
/freebsd/sys/dev/bhnd/ |
H A D | bhnd_erom.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 37 #include <sys/bus.h> 40 #include <machine/bus.h> 52 static int bhnd_erom_iores_map(struct bhnd_erom_io *eio, bhnd_addr_t addr, 55 bhnd_addr_t *addr, bhnd_size_t *size); 60 static int bhnd_erom_iobus_map(struct bhnd_erom_io *eio, bhnd_addr_t addr, 63 bhnd_addr_t *addr, bhnd_size_t *size); 76 int mapped_rid; /**< resource ID of current mapping, or -1 */ 80 * Fetch the device enumeration parser class from all bhnd(4)-compatible drivers [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/usr.sbin/bhyve/ |
H A D | pci_emul.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 150 #define PCI_EMUL_ECFG_SIZE (MAXBUSES * 1024 * 1024) /* 1MB per bus */ 162 static void pci_cfgrw(int in, int bus, int slot, int func, int coff, 208 * <bus>:<slot>:<func>,<emul>[,<config>] 213 * emul is a string describing the type of PCI device e.g. virtio-net 217 * 1,virtio-net,tap0 228 * Helper function to parse a list of comma-separated options where 259 * pci.<bus>.<slot>.<func> 261 * Where "bus", "slot", and "func" are all decimal values without [all …]
|
/freebsd/sys/x86/include/ |
H A D | bus.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause AND BSD-2-ClauseE 34 /* $NetBSD: bus.h,v 1.12 1997/10/01 08:25:15 fvdl Exp $ */ 36 /*- 66 /*- 105 * Values for the x86 bus space tag, not to be used directly by MI code. 137 * Map a region of device bus space into CPU virtual address space. 140 int bus_space_map(bus_space_tag_t tag, bus_addr_t addr, bus_size_t size, 144 * Unmap a region of device bus space. 151 * Get a new handle for a subregion of an already-mapped area of bus space. [all …]
|
/freebsd/tools/tools/dmardump/ |
H A D | dmardump.c | 1 /*- 58 pci_find_conf(int segment, int bus, int slot, int func) in pci_find_conf() argument 60 static int pcifd = -1; in pci_find_conf() 65 if (pcifd == -1) { in pci_find_conf() 76 patterns[0].pc_sel.pc_bus = bus; in pci_find_conf() 85 if (ioctl(pcifd, PCIOCGETCONF, &pc) == -1) in pci_find_conf() 96 dump_context_table(int segment, int bus, uint64_t base_addr) in dump_context_table() argument 109 printf("\tPCI bus %d:\n", bus); in dump_context_table() 114 conf = pci_find_conf(segment, bus, 0, idx); in dump_context_table() 116 conf = pci_find_conf(segment, bus, idx >> 3, idx & 7); in dump_context_table() [all …]
|
/freebsd/share/man/man9/ |
H A D | bhnd_erom.9 | 1 .\" Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 124 .Fa "bhnd_addr_t *addr" 128 .Ss Bus Space I/O 137 .Fa "bhnd_addr_t addr" 149 .Fa "bhnd_addr_t addr" 159 .Bd -literal 169 .Fa "bhnd_addr_t addr" 202 A pointer to a bus I/O instance mapping the device registers of the first 243 using the bus I/O instance 329 .Fa addr , [all …]
|
/freebsd/sys/arm64/cavium/ |
H A D | thunder_pcie_common.c | 1 /*- 38 #include <sys/bus.h> 41 #include <machine/bus.h> 69 range_addr_is_pci(struct pcie_range *ranges, uint64_t addr, uint64_t size) in range_addr_is_pci() argument 76 if (addr >= r->pci_base && in range_addr_is_pci() 77 addr < (r->pci_base + r->size) && in range_addr_is_pci() 78 size < r->size) { in range_addr_is_pci() 89 range_addr_is_phys(struct pcie_range *ranges, uint64_t addr, uint64_t size) in range_addr_is_phys() argument 96 if (addr >= r->phys_base && in range_addr_is_phys() 97 addr < (r->phys_base + r->size) && in range_addr_is_phys() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/examples/p2p/ |
H A D | p2p_connect.py | 17 print(" %s -i <interface_name> -m <wps_method> \ " \ 19 print(" -a <addr> [-p <pin>] [-g <go_intent>] \ ") 20 print(" [-w <wpas_dbus_interface>]") 22 print(" -i = interface name") 23 print(" -m = wps method") 24 print(" -a = peer address") 25 print(" -p = pin number (8 digits)") 26 print(" -g = group owner intent") 27 print(" -w = wpas dbus interface = fi.w1.wpa_supplicant1") 29 print(" %s -i wlan0 -a 0015008352c0 -m display -p 12345670" % sys.argv[0]) [all …]
|
H A D | p2p_invite.py | 15 print(" %s -i <interface_name> -a <addr> \ " \ 17 print(" [-o <persistent_group_object>] [-w <wpas_dbus_interface>]") 19 print(" -i = interface name") 20 print(" -a = address of peer") 21 print(" -o = persistent group object path") 22 print(" -w = wpas dbus interface = fi.w1.wpa_supplicant1") 24 print(" %s -i p2p-wlan0-0 -a 00150083523c" % sys.argv[0]) 41 global bus 49 global addr 62 def __init__(self,interface_name,wpas_dbus_interface,addr, argument [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/aspeed/ |
H A D | ibm-power10-dual.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 #address-cells = <2>; 8 #size-cells = <0>; 10 cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_HIGH>; 14 #address-cells = <1>; 15 #size-cells = <1>; 16 chip-id = <0>; 24 compatible = "ibm,fsi-i2c-master"; 26 #address-cells = <1>; 27 #size-cells = <0>; [all …]
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | lbc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2006-2008, Juniper Networks, Inc. 44 #include <sys/bus.h> 46 #include <machine/bus.h> 76 static int lbc_activate_resource(device_t bus, device_t child, 78 static int lbc_deactivate_resource(device_t bus, device_t child, 90 * Bus interface definition 98 /* Bus interface */ 112 /* OFW bus interface */ [all …]
|
/freebsd/sys/arm/mv/ |
H A D | mv_pci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 6 * Copyright (c) 2010-2015 Semihalf 40 * Marvell integrated PCI/PCI-Express controller driver. 51 #include <sys/bus.h> 74 #include <machine/bus.h> 87 * Code and data related to fdt-based PCI configuration. 90 * always Marvell-specific so that was deleted and the code now lives here. 107 printf(" base_pci = 0x%08lx\n", range->base_pci); in mv_pci_range_dump() 108 printf(" base_par = 0x%08lx\n", range->base_parent); in mv_pci_range_dump() [all …]
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_subr.c | 1 /*- 36 #include <sys/bus.h> 41 #include <machine/bus.h> 51 uint32_t addr, size; in get_addr_props() local 54 res = OF_getencprop(node, "#address-cells", &addr, sizeof(addr)); in get_addr_props() 55 if (res == -1) in get_addr_props() 56 addr = 2; in get_addr_props() 57 res = OF_getencprop(node, "#size-cells", &size, sizeof(size)); in get_addr_props() 58 if (res == -1) in get_addr_props() 61 if (addr == 3 && size == 2) { in get_addr_props() [all …]
|
/freebsd/sys/dev/glxiic/ |
H A D | glxiic.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 30 * AMD Geode LX CS5536 System Management Bus controller. 36 * The driver is implemented as an interrupt-driven state machine, 41 #include <sys/bus.h> 54 #include <machine/bus.h> 63 /* CS5536 PCI-ISA ID. */ 69 /* Bus speeds. */ 74 /* Default bus activity timeout in milliseconds. */ 130 device_t iicbus; /* IIC bus. */ [all …]
|
/freebsd/sys/dev/pci/ |
H A D | pci_host_generic_den0115.c | 1 /*- 29 #include <sys/bus.h> 68 root = (devinfo->Flags & ACPI_PCI_ROOT_BRIDGE) != 0; in pci_host_acpi_smccc_probe() 74 * Check if we have memory resources. We may have a non-memory in pci_host_acpi_smccc_probe() 160 sc->base.quirks |= PCIE_CUSTOM_CONFIG_SPACE_QUIRK; in pci_host_acpi_smccc_attach() 187 arm_smccc_invoke(SMCCC_PCI_GET_SEG_INFO, sc->base.ecam, in pci_host_acpi_smccc_attach() 192 sc->base.bus_start = MAX(sc->base.bus_start, start); in pci_host_acpi_smccc_attach() 193 sc->base.bus_end = MIN(sc->base.bus_end, end); in pci_host_acpi_smccc_attach() 196 device_add_child(dev, "pci", -1); in pci_host_acpi_smccc_attach() 202 pci_host_acpi_smccc_read_config(device_t dev, u_int bus, u_int slot, in pci_host_acpi_smccc_read_config() argument [all …]
|
/freebsd/sys/dev/acpica/ |
H A D | acpi_if.m | 1 #- 28 #include <sys/bus.h> 65 acpi_generic_id_probe(device_t bus, device_t dev, char **ids, 76 # device_t bus: parent bus for the device 91 device_t bus; 100 # device_t bus: parent bus for the device 116 device_t bus; 126 # device_t bus: parent bus for the device 138 device_t bus; 145 # Get the highest power state (D0-D3) that is usable for a device when [all …]
|
/freebsd/sys/powerpc/powermac/ |
H A D | grackle.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 33 #include <sys/bus.h> 48 #include <machine/bus.h> 116 device_set_desc(dev, "MPC106 (Grackle) Host-PCI bridge"); in grackle_probe() 128 * The Grackle PCI config addr/data registers are actually in in grackle_attach() 130 * PCI bus, use the fact that they are also available directly in grackle_attach() 131 * on the processor bus and map them in grackle_attach() 133 sc->sc_addr = (vm_offset_t)pmap_mapdev(GRACKLE_ADDR, PAGE_SIZE); in grackle_attach() 134 sc->sc_data = (vm_offset_t)pmap_mapdev(GRACKLE_DATA, PAGE_SIZE); in grackle_attach() [all …]
|
/freebsd/usr.bin/sdiotool/ |
H A D | sdiotool.c | 1 /*- 2 * Copyright (c) 2016-2017 Ilya Bakulin 79 …() which is defined as probe function in struct sdio_driver. http://lxr.free-electrons.com/source/… 83 …* ops_sdio_probe() then calls brcmf_sdio_probe() -- at this point it has filled in sdiodev struct … 89 …* Finally it calls brcmf_sdio_probe() http://lxr.free-electrons.com/source/drivers/net/wireless/br… 91 * Here high-level workqueues and sg tables are allocated. 94 …* Here at the beginning there is a pr_debug() call with brcmf_sdiod_regrl() inside to addr #define… 96 * Then turns off PLL: byte-write BRCMF_INIT_CLKCTL1 (0x28) -> SBSDIO_FUNC1_CHIPCLKCSR (0x1000E) 100 …* http://lxr.free-electrons.com/source/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c#L10… 102 * - brcmf_sdio_buscoreprep(): force clock to ALPAvail req only: [all …]
|
/freebsd/sys/dev/ahci/ |
H A D | ahci.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org> 5 * Copyright (c) 2009-2012 Alexander Motin <mav@FreeBSD.org> 62 #define ATA_I_RELEASE 0x04 /* released bus (1) */ 320 #define AHCI_WORK_SIZE (AHCI_CT_OFFSET + AHCI_CT_SIZE * ch->numslots) 371 bus_addr_t work_bus; /* bus address of work */ 375 bus_addr_t rfis_bus; /* bus address of rfis */ 428 uint16_t vendorid; /* Vendor ID from the bus */ 429 uint16_t deviceid; /* Device ID from the bus */ [all …]
|
/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_bo_util.c | 3 * Copyright (c) 2007-2009 VMware, Inc., Palo Alto, CA., USA 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 39 ttm_bo_mem_put(bo, &bo->mem); in ttm_bo_free_old_node() 46 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_ttm() 47 struct ttm_mem_reg *old_mem = &bo->mem; in ttm_bo_move_ttm() 50 if (old_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm() 53 ttm_flag_masked(&old_mem->placement, TTM_PL_FLAG_SYSTEM, in ttm_bo_move_ttm() 55 old_mem->mem_type = TTM_PL_SYSTEM; in ttm_bo_move_ttm() 58 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm() [all …]
|
/freebsd/sys/dev/e1000/ |
H A D | e1000_82542.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 50 static int e1000_rar_set_82542(struct e1000_hw *hw, u8 *addr, u32 index); 55 * e1000_init_phy_params_82542 - Init PHY func ptrs. 60 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82542() 65 phy->type = e1000_phy_none; in e1000_init_phy_params_82542() 71 * e1000_init_nvm_params_82542 - Init NVM func ptrs. 76 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_82542() 80 nvm->address_bits = 6; in e1000_init_nvm_params_82542() 81 nvm->delay_usec = 50; in e1000_init_nvm_params_82542() [all …]
|