/openbmc/linux/drivers/pci/controller/ |
H A D | pcie-mediatek.c | 1 // SPDX-License-Identifier: GPL-2.0 38 /* PCIe per port registers */ 74 /* PCIe V2 per-port registers */ 127 (GENMASK(((size) - 1), 0) << ((where) & 0x3)) 145 * struct mtk_pcie_soc - differentiate between host generations 160 int (*startup)(struct mtk_pcie_port *port); 161 int (*setup_irq)(struct mtk_pcie_port *port, struct device_node *node); 165 * struct mtk_pcie_port - PCIe port information 166 * @base: IO mapped register base 167 * @list: port list [all …]
|
H A D | pcie-apple.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCIe host bridge driver for Apple system-on-chips. 6 * the driver mostly deals MSI mapping and handling of per-port 31 #include <linux/pci-ecam.h> 43 #define CORE_LANE_CFG(port) (0x84000 + 0x4000 * (port)) argument 49 #define CORE_LANE_CTL(port) (0x84004 + 0x4000 * (port)) argument 127 * address (in the bottom 4GB, as the base register is only 32bit). 136 void __iomem *base; member 148 void __iomem *base; member 189 msg->address_hi = upper_32_bits(DOORBELL_ADDR); in apple_msi_compose_msg() [all …]
|
H A D | pcie-mt7621.c | 1 // SPDX-License-Identifier: GPL-2.0+ 35 /* MediaTek-specific configuration registers */ 40 /* Host-PCI bridge registers */ 67 * struct mt7621_pcie_port - PCIe port information 68 * @base: I/O mapped register base 69 * @list: port list 71 * @clk: pointer to the port clock gate 73 * @pcie_rst: pointer to port reset control 75 * @slot: port slot 76 * @enabled: indicates if port is enabled [all …]
|
H A D | pci-mvebu.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Author: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 27 #include "../pci-bridge-emul.h" 40 #define PCIE_BAR_CTRL_OFF(n) (0x1804 + (((n) - 1) * 4)) 94 phys_addr_t base; member 102 void __iomem *base; member 103 u32 port; member 128 static inline void mvebu_writel(struct mvebu_pcie_port *port, u32 val, u32 reg) in mvebu_writel() argument 130 writel(val, port->base + reg); in mvebu_writel() 133 static inline u32 mvebu_readl(struct mvebu_pcie_port *port, u32 reg) in mvebu_readl() argument [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-mxs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 // Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved. 25 #define PINCTRL_DOUT(p) ((is_imx23_gpio(p) ? 0x0500 : 0x0700) + (p->id) * 0x10) 26 #define PINCTRL_DIN(p) ((is_imx23_gpio(p) ? 0x0600 : 0x0900) + (p->id) * 0x10) 27 #define PINCTRL_DOE(p) ((is_imx23_gpio(p) ? 0x0700 : 0x0b00) + (p->id) * 0x10) 28 #define PINCTRL_PIN2IRQ(p) ((is_imx23_gpio(p) ? 0x0800 : 0x1000) + (p->id) * 0x10) 29 #define PINCTRL_IRQEN(p) ((is_imx23_gpio(p) ? 0x0900 : 0x1100) + (p->id) * 0x10) 30 #define PINCTRL_IRQLEV(p) ((is_imx23_gpio(p) ? 0x0a00 : 0x1200) + (p->id) * 0x10) 31 #define PINCTRL_IRQPOL(p) ((is_imx23_gpio(p) ? 0x0b00 : 0x1300) + (p->id) * 0x10) 32 #define PINCTRL_IRQSTAT(p) ((is_imx23_gpio(p) ? 0x0c00 : 0x1400) + (p->id) * 0x10) [all …]
|
H A D | gpio-mxc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 // Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved. 61 void __iomem *base; member 86 .edge_sel_reg = -EINVAL, 101 .edge_sel_reg = -EINVAL, 123 #define GPIO_DR (port->hwdata->dr_reg) 124 #define GPIO_GDIR (port->hwdata->gdir_reg) 125 #define GPIO_PSR (port->hwdata->psr_reg) 126 #define GPIO_ICR1 (port->hwdata->icr1_reg) 127 #define GPIO_ICR2 (port->hwdata->icr2_reg) [all …]
|
H A D | gpio-gpio-mm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GPIO driver for the Diamond Systems GPIO-MM 6 * This driver supports the following Diamond Systems devices: GPIO-MM and 7 * GPIO-MM-12. 19 #include "gpio-i8255.h" 26 static unsigned int base[MAX_NUM_GPIOMM]; variable 28 module_param_hw_array(base, uint, ioport, &num_gpiomm, 0); 29 MODULE_PARM_DESC(base, "Diamond Systems GPIO-MM base addresses"); 52 "Port 1A0", "Port 1A1", "Port 1A2", "Port 1A3", "Port 1A4", "Port 1A5", 53 "Port 1A6", "Port 1A7", "Port 1B0", "Port 1B1", "Port 1B2", "Port 1B3", [all …]
|
H A D | gpio-vf610.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Freescale vf610 GPIO support through PORT and GPIO 26 /* SoCs has a Port Data Direction Register (PDDR) */ 32 void __iomem *base; member 68 { .compatible = "fsl,vf610-gpio", .data = NULL, }, 69 { .compatible = "fsl,imx7ulp-gpio", .data = &imx_data, }, 85 struct vf610_gpio_port *port = gpiochip_get_data(gc); in vf610_gpio_get() local 89 if (port->sdata && port->sdata->have_paddr) { in vf610_gpio_get() 90 mask &= vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_get() 95 return !!(vf610_gpio_readl(port->gpio_base + offset) & BIT(gpio)); in vf610_gpio_get() [all …]
|
H A D | gpio-tegra186.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2016-2022 NVIDIA Corporation 18 #include <dt-bindings/gpio/tegra186-gpio.h> 19 #include <dt-bindings/gpio/tegra194-gpio.h> 20 #include <dt-bindings/gpio/tegra234-gpio.h> 21 #include <dt-bindings/gpio/tegra241-gpio.h> 73 unsigned int port; member 107 void __iomem *base; member 115 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_get_port() 116 const struct tegra_gpio_port *port = &gpio->soc->ports[i]; in tegra186_gpio_get_port() local [all …]
|
/openbmc/u-boot/drivers/bios_emulator/ |
H A D | biosemui.h | 9 * Copyright (C) 1996-1999 SciTech Software, Inc. 39 * Jason ported this file to u-boot, Added some architecture 49 /*---------------------- Macros and type definitions ----------------------*/ 67 #define readb_le(base) *((u8*)(base)) argument 68 #define readw_le(base) ((u16)readb_le(base) | ((u16)readb_le((base) + 1) << 8)) argument 69 #define readl_le(base) ((u32)readb_le((base) + 0) | ((u32)readb_le((base) + 1) << 8) | \ argument 70 ((u32)readb_le((base) + 2) << 16) | ((u32)readb_le((base) + 3) << 24)) 71 #define writeb_le(base, v) *((u8*)(base)) = (v) argument 72 #define writew_le(base, v) writeb_le(base + 0, (v >> 0) & 0xff), \ argument 73 writeb_le(base + 1, (v >> 8) & 0xff) [all …]
|
/openbmc/u-boot/board/intel/galileo/ |
H A D | galileo.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * We cannot use any public GPIO APIs in <asm-generic/gpio.h> to control this 19 * Check <asm/arch-quark/quark.h> for more details. 23 u32 base, port, val; in board_assert_perst() local 25 /* retrieve the GPIO IO base */ in board_assert_perst() 26 qrk_pci_read_config_dword(QUARK_LEGACY_BRIDGE, LB_GBA, &base); in board_assert_perst() 27 base = (base & 0xffff) & ~0x7f; in board_assert_perst() 30 port = base + 0x20; in board_assert_perst() 31 val = inl(port); in board_assert_perst() 33 outl(val, port); in board_assert_perst() [all …]
|
/openbmc/linux/drivers/hwtracing/intel_th/ |
H A D | gth.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2014-2015 Intel Corporation. 25 * struct gth_output - GTH view on an output port 28 * @index: output port number 29 * @port_type: one of GTH_* port type values 41 * struct gth_device - GTH device 43 * @base: register window base address 47 * @master: master/output port assignments 52 void __iomem *base; member 61 static void gth_output_set(struct gth_device *gth, int port, in gth_output_set() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_ddi.c | 96 level = intel_bios_hdmi_level_shift(encoder->devdata); in intel_ddi_hdmi_level() 98 level = trans->hdmi_default_entry; in intel_ddi_hdmi_level() 114 * Starting with Haswell, DDI port buffers must be programmed with correct 121 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in hsw_prepare_dp_ddi_buffers() 124 enum port port = encoder->port; in hsw_prepare_dp_ddi_buffers() local 127 trans = encoder->get_buf_trans(encoder, crtc_state, &n_entries); in hsw_prepare_dp_ddi_buffers() 128 if (drm_WARN_ON_ONCE(&dev_priv->drm, !trans)) in hsw_prepare_dp_ddi_buffers() 133 intel_bios_dp_boost_level(encoder->devdata)) in hsw_prepare_dp_ddi_buffers() 137 intel_de_write(dev_priv, DDI_BUF_TRANS_LO(port, i), in hsw_prepare_dp_ddi_buffers() 138 trans->entries[i].hsw.trans1 | iboost_bit); in hsw_prepare_dp_ddi_buffers() [all …]
|
H A D | intel_dvo.c | 3 * Copyright © 2006-2007 Intel Corporation 60 .port = PORT_C, 67 .port = PORT_C, 74 .port = PORT_C, 81 .port = PORT_A, 88 .port = PORT_C, 95 .port = PORT_C, 103 .port = PORT_B, 110 struct intel_encoder base; member 119 return container_of(encoder, struct intel_dvo, base); in enc_to_dvo() [all …]
|
/openbmc/linux/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Jan-Bernd Themann <themann@de.ibm.com> 23 struct ehea_port *port = netdev_priv(dev); in ehea_get_link_ksettings() local 28 ret = ehea_sense_port_attr(port); in ehea_get_link_ksettings() 34 switch (port->port_speed) { in ehea_get_link_ksettings() 48 speed = -1; in ehea_get_link_ksettings() 51 cmd->base.duplex = port->full_duplex == 1 ? in ehea_get_link_ksettings() 55 cmd->base.duplex = DUPLEX_UNKNOWN; in ehea_get_link_ksettings() 57 cmd->base.speed = speed; in ehea_get_link_ksettings() 59 if (cmd->base.speed == SPEED_10000) { in ehea_get_link_ksettings() [all …]
|
/openbmc/linux/drivers/phy/tegra/ |
H A D | xusb.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2014-2022, NVIDIA CORPORATION. All rights reserved. 19 /* legacy entry points for backwards-compatibility */ 59 struct tegra_xusb_lane base; member 65 return container_of(lane, struct tegra_xusb_usb3_lane, base); in to_usb3_lane() 69 struct tegra_xusb_lane base; member 78 return container_of(lane, struct tegra_xusb_usb2_lane, base); in to_usb2_lane() 82 struct tegra_xusb_lane base; member 88 return container_of(lane, struct tegra_xusb_ulpi_lane, base); in to_ulpi_lane() 92 struct tegra_xusb_lane base; member [all …]
|
H A D | xusb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2014-2022, NVIDIA CORPORATION. All rights reserved. 31 if (args->args_count != 0) in tegra_xusb_pad_of_xlate() 32 return ERR_PTR(-EINVAL); in tegra_xusb_pad_of_xlate() 34 for (i = 0; i < pad->soc->num_lanes; i++) { in tegra_xusb_pad_of_xlate() 35 if (!pad->lanes[i]) in tegra_xusb_pad_of_xlate() 38 if (pad->lanes[i]->dev.of_node == args->np) { in tegra_xusb_pad_of_xlate() 39 phy = pad->lanes[i]; in tegra_xusb_pad_of_xlate() 45 phy = ERR_PTR(-ENODEV); in tegra_xusb_pad_of_xlate() 53 .compatible = "nvidia,tegra124-xusb-padctl", [all …]
|
/openbmc/u-boot/arch/m68k/include/asm/ |
H A D | immap_5445x.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Copyright (C) 2004-2007 Freescale Semiconductor, Inc. 6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 12 /* Module Base Addresses */ 89 u16 ccr; /* Chip Configuration Register (256 TEPBGA, Read-only) */ 91 u16 rcon; /* Reset Configuration (256 TEPBGA, Read-only) */ 92 u16 cir; /* Chip Identification Register (Read-only) */ 96 u16 uocsr; /* USB On-the-Go Controller Status Register */ 101 u8 podr_fec0h; /* FEC0 High Port Output Data Register */ 102 u8 podr_fec0l; /* FEC0 Low Port Output Data Register */ [all …]
|
/openbmc/linux/drivers/net/ethernet/cortina/ |
H A D | gemini.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * Michał Mirosław <mirq-linux@rere.qmqm.pl> 22 #include <linux/dma-mapping.h> 46 #define DRV_NAME "gmac-gemini" 49 static int debug = -1; 86 * struct gmac_queue_page - page buffer per-page info 151 void __iomem *base; member 156 spinlock_t irq_lock; /* Locks IRQ-related registers */ 227 struct gemini_ethernet_port *port = netdev_priv(netdev); in gmac_update_config0_reg() local 231 spin_lock_irqsave(&port->config_lock, flags); in gmac_update_config0_reg() [all …]
|
/openbmc/linux/drivers/pinctrl/actions/ |
H A D | pinctrl-owl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Author: David Liu <liuwei@actions-semi.com> 25 #include <linux/pinctrl/pinconf-generic.h> 31 #include "../pinctrl-utils.h" 32 #include "pinctrl-owl.h" 35 * struct owl_pinctrl - pinctrl state of the device 42 * @base: pinctrl register base address 53 void __iomem *base; member 58 static void owl_update_bits(void __iomem *base, u32 mask, u32 val) in owl_update_bits() argument 62 reg_val = readl_relaxed(base); in owl_update_bits() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | hisilicon-hns-dsaf.txt | 4 - compatible: should be "hisilicon,hns-dsaf-v1" or "hisilicon,hns-dsaf-v2". 5 "hisilicon,hns-dsaf-v1" is for hip05. 6 "hisilicon,hns-dsaf-v2" is for Hi1610 and Hi1612. 7 - mode: dsa fabric mode string. only support one of dsaf modes like these: 8 "2port-64vf", 9 "6port-16rss", 10 "6port-16vf", 11 "single-port". 12 - interrupts: should contain the DSA Fabric and rcb interrupt. 13 - reg: specifies base physical address(es) and size of the device registers. [all …]
|
/openbmc/linux/drivers/tty/ |
H A D | goldfish.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <linux/dma-mapping.h> 37 struct tty_port port; member 39 void __iomem *base; member 59 void __iomem *base = qtty->base; in do_rw_io() local 61 spin_lock_irqsave(&qtty->lock, irq_flags); in do_rw_io() 62 gf_write_ptr((void *)address, base + GOLDFISH_TTY_REG_DATA_PTR, in do_rw_io() 63 base + GOLDFISH_TTY_REG_DATA_PTR_HIGH); in do_rw_io() 64 gf_iowrite32(count, base + GOLDFISH_TTY_REG_DATA_LEN); in do_rw_io() 68 base + GOLDFISH_TTY_REG_CMD); in do_rw_io() [all …]
|
/openbmc/linux/drivers/tty/serial/ |
H A D | rp2.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * rocketport_infinity_express-linux-1.20.tar.gz 13 * Copyright (C) 2004-2011 Comtrol, Inc. 44 #define ALL_PORTS_MASK (BIT(PORTS_PER_ASIC) - 1) 75 /* port registers */ 84 /* This lets uart_insert_char() drop bytes received on a !CREAD port */ 179 struct uart_port port; member 184 void __iomem *base; member 206 *ports = id->driver_data >> 8; in rp2_decode_cap() 207 *smpte = id->driver_data & 0xff; in rp2_decode_cap() [all …]
|
/openbmc/linux/drivers/hsi/controllers/ |
H A D | omap_ssi_port.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* OMAP SSI port driver. 12 #include <linux/dma-mapping.h> 33 static inline unsigned int ssi_wakein(struct hsi_port *port) in ssi_wakein() argument 35 struct omap_ssi_port *omap_port = hsi_port_drvdata(port); in ssi_wakein() 36 return gpiod_get_value(omap_port->wake_gpio); in ssi_wakein() 40 static void ssi_debug_remove_port(struct hsi_port *port) in ssi_debug_remove_port() argument 42 struct omap_ssi_port *omap_port = hsi_port_drvdata(port); in ssi_debug_remove_port() 44 debugfs_remove_recursive(omap_port->dir); in ssi_debug_remove_port() 49 struct hsi_port *port = m->private; in ssi_port_regs_show() local [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | bcm6368-eth.c | 1 // SPDX-License-Identifier: GPL-2.0+ 19 #define ETH_PORT_STR "brcm,enetsw-port" 28 /* Port traffic control */ 57 /* Port override Register */ 74 /* Port RGMII control register */ 84 /* Port RGMII timing register */ 106 /* Jumbo control register port mask register */ 112 /* ETH port data */ 126 void __iomem *base; member 150 writel_be(0, priv->base + MII_SC_REG); in bcm6368_mdio_read() [all …]
|