/openbmc/linux/drivers/pci/hotplug/ |
H A D | ibmphp_res.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 49 newbus->busno = busno; in alloc_error_bus() 51 newbus->busno = curr->bus_num; in alloc_error_bus() 52 list_add_tail(&newbus->bus_list, &gbuses); in alloc_error_bus() 69 rs->busno = curr->bus_num; in alloc_resources() 70 rs->devfunc = curr->dev_fun; in alloc_resources() 71 rs->start = curr->start_addr; in alloc_resources() 72 rs->end = curr->end_addr; in alloc_resources() 73 rs->len = curr->end_addr - curr->start_addr + 1; in alloc_resources() [all …]
|
/openbmc/linux/arch/x86/pci/ |
H A D | amd_bus.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/range.h> 11 #include <asm/pci-direct.h> 23 u32 bus; member 31 * It only supports K8, Fam10h, Fam11h, and Fam15h_00h-0fh . 48 if (info->node == node && info->link == link) in find_pci_root_info() 66 * to the LDT Bus Number Registers found in the northbridge. 71 unsigned bus; in early_root_info_init() local 81 struct range range[RANGE_NUM]; in early_root_info_init() local 90 return -1; in early_root_info_init() [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | of.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * PCI <-> OF mapping helpers 20 * pci_set_of_node - Find and set device's DT device_node 24 * DT. Returns -ENODEV if the device is present, but disabled in the DT. 30 if (!dev->bus->dev.of_node) in pci_set_of_node() 33 node = of_pci_find_child_device(dev->bus->dev.of_node, dev->devfn); in pci_set_of_node() 37 device_set_node(&dev->dev, of_fwnode_handle(node)); in pci_set_of_node() 43 of_node_put(dev->dev.of_node); in pci_release_of_node() 44 device_set_node(&dev->dev, NULL); in pci_release_of_node() 47 void pci_set_bus_of_node(struct pci_bus *bus) in pci_set_bus_of_node() argument [all …]
|
/openbmc/linux/drivers/of/ |
H A D | address.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/dma-direct.h> /* for bus_dma_region */ 31 while (na--) in of_dump_addr() 39 /* Callbacks for bus specific translators */ 46 u64 (*map)(__be32 *addr, const __be32 *range, 54 * Default translator (generic bus) 66 static u64 of_bus_default_map(__be32 *addr, const __be32 *range, in of_bus_default_map() argument 71 cp = of_read_number(range, na); in of_bus_default_map() 72 s = of_read_number(range + na + pna, ns); in of_bus_default_map() 79 return da - cp; in of_bus_default_map() [all …]
|
/openbmc/qemu/hw/pci/ |
H A D | pci-qmp-cmds.c | 28 #include "pci-internal.h" 29 #include "qapi/qapi-commands-pci.h" 31 static PciDeviceInfoList *qmp_query_pci_devices(PCIBus *bus, int bus_num); 39 const PCIIORegion *r = &dev->io_regions[i]; in qmp_query_pci_regions() 42 if (!r->size) { in qmp_query_pci_regions() 48 if (r->type & PCI_BASE_ADDRESS_SPACE_IO) { in qmp_query_pci_regions() 49 region->type = g_strdup("io"); in qmp_query_pci_regions() 51 region->type = g_strdup("memory"); in qmp_query_pci_regions() 52 region->has_prefetch = true; in qmp_query_pci_regions() 53 region->prefetch = !!(r->type & PCI_BASE_ADDRESS_MEM_PREFETCH); in qmp_query_pci_regions() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | pci-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 * Common pmac/prep/chrp pci routines. -- Cort 37 #include <asm/pci-bridge.h> 40 #include <asm/ppc-pci.h> 73 int ret, phb_id = -1; in get_phb_number() 78 * the respective device-tree properties. Firstly, try reading in get_phb_number() 79 * standard "linux,pci-domain", then try reading "ibm,opal-phbid" in get_phb_number() 80 * (only present in powernv OPAL environment), then try device-tree in get_phb_number() 89 ret = of_property_read_u64(dn, "ibm,opal-phbid", &prop); in get_phb_number() 105 phb_id = (int)(prop & (MAX_PHBS - 1)); in get_phb_number() [all …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | mmconf-fam10h_64.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/range.h> 14 #include <asm/pci-direct.h> 23 u32 bus; member 38 const struct range *r1 = x1; in cmp_range() 39 const struct range *r2 = x2; in cmp_range() 42 start1 = r1->start >> 32; in cmp_range() 43 start2 = r2->start >> 32; in cmp_range() 45 return start1 - start2; in cmp_range() 49 #define MMCONF_MASK (~(MMCONF_UNIT - 1)) [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | tmp513.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 Eric Tremblay <etremblay@distech-controls.com> 25 ----------- 28 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors 29 that include remote sensors, a local temperature sensor, and a high-side current 31 temperatures, on-chip temperatures, and system voltage/power/current 34 The temperatures are measured in degrees Celsius with a range of 35 -40 to + 125 degrees with a resolution of 0.0625 degree C. 39 hysteresis value. The hysteresis is in degrees Celsius with a range of 44 **temp[1-4]_input** [all …]
|
/openbmc/linux/arch/mips/pci/ |
H A D | pci-legacy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2003, 04, 11 Ralf Baechle (ralf@linux-mips.org) 6 * written by Ralf Baechle (ralf@linux-mips.org) 18 #include <asm/cpu-info.h> 35 * addresses to be allocated in the 0x000-0x0ff region 39 * the low 10 bits of the IO address. The 0x00-0xff region 41 * bits, so it's ok to allocate at, say, 0x2800-0x28ff, 42 * but we want to try to avoid allocating at 0x2900-0x2bff 43 * which might have be mirrored at 0x0100-0x03ff.. 50 struct pci_controller *hose = dev->sysdata; in pcibios_align_resource() [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | of_device_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 if (!op || index >= op->archdata.num_irqs) in irq_of_parse_and_map() 23 return op->archdata.irqs[index]; in irq_of_parse_and_map() 32 if (!op || index >= op->num_resources) in of_address_to_resource() 33 return -EINVAL; in of_address_to_resource() 35 memcpy(r, &op->archdata.resource[index], sizeof(*r)); in of_address_to_resource() 45 if (!op || index >= op->num_resources) in of_iomap() 48 r = &op->archdata.resource[index]; in of_iomap() 50 return of_ioremap(r, 0, resource_size(r), (char *) r->name); in of_iomap() 55 * BUS and propagate to all child platform_device objects. [all …]
|
H A D | of_device_32.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/dma-mapping.h> 20 * PCI bus specific translator 29 * parent as-is, not with the PCI translate in of_bus_pci_match() 50 static int of_bus_pci_map(u32 *addr, const u32 *range, in of_bus_pci_map() argument 57 if ((addr[0] ^ range[0]) & 0x03000000) in of_bus_pci_map() 58 return -EINVAL; in of_bus_pci_map() 60 if (of_out_of_range(addr + 1, range + 1, range + na + pna, in of_bus_pci_map() 61 na - 1, ns)) in of_bus_pci_map() 62 return -EINVAL; in of_bus_pci_map() [all …]
|
H A D | of_device_64.c | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <linux/dma-mapping.h> 20 unsigned long ret = res->start + offset; in of_ioremap() 23 if (res->flags & IORESOURCE_MEM) in of_ioremap() 36 if (res->flags & IORESOURCE_MEM) in of_iounmap() 44 * PCI bus specific translator 58 * parent as-is, not with the PCI translate in of_bus_pci_match() 88 static int of_bus_simba_map(u32 *addr, const u32 *range, in of_bus_simba_map() argument 103 static int of_bus_pci_map(u32 *addr, const u32 *range, in of_bus_pci_map() argument 110 if (!((addr[0] ^ range[0]) & 0x03000000)) in of_bus_pci_map() [all …]
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-xgene.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * APM X-Gene PCIe Driver 19 #include <linux/pci-acpi.h> 20 #include <linux/pci-ecam.h> 74 return readl(port->csr_base + reg); in xgene_pcie_readl() 79 writel(val, port->csr_base + reg); in xgene_pcie_writel() 87 static inline struct xgene_pcie *pcie_bus_to_port(struct pci_bus *bus) in pcie_bus_to_port() argument 92 return (struct xgene_pcie *)(bus->sysdata); in pcie_bus_to_port() 94 cfg = bus->sysdata; in pcie_bus_to_port() 95 return (struct xgene_pcie *)(cfg->priv); in pcie_bus_to_port() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pci/ |
H A D | renesas,pci-rcar-gen2.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/renesas,pci-rcar-gen2.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marek Vasut <marek.vasut+renesas@gmail.com> 11 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> 21 - items: 22 - enum: 23 - renesas,pci-r8a7742 # RZ/G1H 24 - renesas,pci-r8a7743 # RZ/G1M [all …]
|
H A D | host-generic-pci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/host-generic-pci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Will Deacon <will@kernel.org> 13 Firmware-initialised PCI host controllers and PCI emulations, such as the 14 virtio-pci implementations found in kvmtool and other para-virtualised 21 Configuration Space is assumed to be memory-mapped (as opposed to being 23 geography of a PCI bus address by concatenating the various components to 26 For CAM, this 24-bit offset is: [all …]
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | pci-cxl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2014-2016 IBM Corp. 7 #include <misc/cxl-base.h> 8 #include <asm/pnv-pci.h> 15 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_phb_to_cxl_mode() 16 struct pnv_phb *phb = hose->private_data; in pnv_phb_to_cxl_mode() 22 return -ENODEV; in pnv_phb_to_cxl_mode() 26 rc = opal_pci_set_phb_cxl_mode(phb->opal_id, mode, pe->pe_number); in pnv_phb_to_cxl_mode() 28 dev_err(&dev->dev, "Required cxl mode not supported by firmware - update skiboot\n"); in pnv_phb_to_cxl_mode() 30 dev_err(&dev->dev, "opal_pci_set_phb_cxl_mode failed: %i\n", rc); in pnv_phb_to_cxl_mode() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-cxl | 1 What: /sys/bus/cxl/flush 4 Contact: linux-cxl@vger.kernel.org 11 What: /sys/bus/cxl/devices/memX/firmware_version 14 Contact: linux-cxl@vger.kernel.org 17 Memory Device Output Payload in the CXL-2.0 21 What: /sys/bus/cxl/devices/memX/ram/size 24 Contact: linux-cxl@vger.kernel.org 28 Payload in the CXL-2.0 specification. 31 What: /sys/bus/cxl/devices/memX/pmem/size 34 Contact: linux-cxl@vger.kernel.org [all …]
|
/openbmc/linux/drivers/base/regmap/ |
H A D | regmap.c | 1 // SPDX-License-Identifier: GPL-2.0 38 return (map->dev && strcmp(dev_name(map->dev), LOG_DEVICE) == 0); in regmap_should_log() 78 if (regmap_reg_in_ranges(reg, table->no_ranges, table->n_no_ranges)) in regmap_check_range_table() 82 if (!table->n_yes_ranges) in regmap_check_range_table() 85 return regmap_reg_in_ranges(reg, table->yes_ranges, in regmap_check_range_table() 86 table->n_yes_ranges); in regmap_check_range_table() 92 if (map->max_register && reg > map->max_register) in regmap_writeable() 95 if (map->writeable_reg) in regmap_writeable() 96 return map->writeable_reg(map->dev, reg); in regmap_writeable() 98 if (map->wr_table) in regmap_writeable() [all …]
|
/openbmc/linux/drivers/cdx/controller/ |
H A D | mc_cdx_pcol.h | 1 /* SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc. 22 * | | \--- Response 23 * | \------- Error 24 * \------------------------------ Resync (always set) 76 * - To advance a shared memory request if XFLAGS_EVREQ was set 77 * - As a notification (link state, i2c event), controlled 89 * - LEVEL==INFO Command succeeded 90 * - LEVEL==ERR Command failed 101 * non-existent MCDI command MC_CMD_DEBUG_LOG. [all …]
|
/openbmc/linux/Documentation/input/devices/ |
H A D | cma3000_d0x.rst | 1 CMA3000-D0x Accelerometer 5 * VTI CMA3000-D0x 8 CMA3000-D0X Product Family Specification 8281000A.02.pdf 15 ----------- 17 CMA3000 Tri-axis accelerometer supports Motion detect, Measurement and 38 Initial configuration for bus mode is set in non volatile memory and can later 39 be modified through bus interface command. 47 ------------- 59 G range in milli g i.e 2000 or 8000 65 Motion detect g range threshold value [all …]
|
/openbmc/linux/drivers/bus/ |
H A D | uniphier-system-bus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 /* System Bus Controller registers */ 43 dev_dbg(priv->dev, in uniphier_system_bus_add_bank() 44 "range found: bank = %d, addr = %08x, paddr = %08llx, size = %08x\n", in uniphier_system_bus_add_bank() 47 if (bank >= ARRAY_SIZE(priv->bank)) { in uniphier_system_bus_add_bank() 48 dev_err(priv->dev, "unsupported bank number %d\n", bank); in uniphier_system_bus_add_bank() 49 return -EINVAL; in uniphier_system_bus_add_bank() 52 if (priv->bank[bank].base || priv->bank[bank].end) { in uniphier_system_bus_add_bank() 53 dev_err(priv->dev, in uniphier_system_bus_add_bank() 54 "range for bank %d has already been specified\n", bank); in uniphier_system_bus_add_bank() [all …]
|
/openbmc/phosphor-fan-presence/monitor/ |
H A D | fan.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 24 #include <phosphor-logging/log.hpp> 36 using namespace sdbusplus::bus::match; 38 Fan::Fan(Mode mode, sdbusplus::bus_t& bus, const sdeventplus::Event& event, in Fan() argument 41 _bus(bus), _name(def.name), _deviation(def.deviation), in Fan() 50 _presenceMatch(bus, in Fan() 56 bus, in Fan() 68 mode, bus, *this, s.name, s.hasTarget, def.funcDelay, in Fan() 73 _trustManager->registerSensor(_sensors.back()); in Fan() 82 // the inventory update threw an exception, possibly because D-Bus in Fan() [all …]
|
/openbmc/u-boot/include/ |
H A D | regmap.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 14 * register maps irrespective of the underlying bus architecture. This entails 17 * instantiate a regmap with a backend depending on the bus the device is 19 * bus transparently. 25 * tree settings via the boolean "little-endian", "big-endian", and 26 * "native-endian" properties. 34 * accesses the register map as regular IO-mapped memory. 38 * enum regmap_size_t - Access sizes for regmap reads and writes 40 * @REGMAP_SIZE_8: 8-bit read/write access size 41 * @REGMAP_SIZE_16: 16-bit read/write access size [all …]
|
/openbmc/linux/arch/arm64/boot/dts/apple/ |
H A D | t8112-j473.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 5 * target-type: J473 10 /dts-v1/; 13 #include "t8112-jxxx.dtsi" 16 compatible = "apple,j473", "apple,t8112", "apple,arm-platform"; 25 * Force the bus number assignments so that we can declare some of the 26 * on-board devices and properties that are populated by the bootloader 30 bus-range = <1 1>; 34 bus-range = <2 2>; 39 bus-range = <3 3>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | ti,tmp513.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Eric Tremblay <etremblay@distech-controls.com> 14 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors 15 that include remote sensors, a local temperature sensor, and a high-side 17 remote temperatures, on-chip temperatures, and system voltage/power/current 28 - ti,tmp512 29 - ti,tmp513 34 shunt-resistor-micro-ohms: [all …]
|