/openbmc/qemu/docs/ |
H A D | pcie_pci_bridge.txt | 1 Generic PCI Express to PCI Bridge 6 PCIE-to-PCI bridge is a new method for legacy PCI 9 Previously Intel DMI-to-PCI bridge was used for this purpose. 12 PCIE-to-PCI bridge should now be used for any legacy PCI device usage 15 This generic PCIE-PCI bridge is a cross-platform device, 17 see 'PCIE-PCI bridge hot-plug' section), 18 and supports devices hot-plug into the bridge itself 21 Hot-plug of legacy PCI devices into the bridge 22 is provided by bridge's built-in Standard hot-plug Controller. 25 PCIE-PCI bridge hot-plug [all …]
|
H A D | pci_expander_bridge.txt | 1 PCI EXPANDER BRIDGE (PXB) 6 PXB is a "light-weight" host bridge in the same PCI domain 7 as the main host bridge whose purpose is to enable 8 the main host bridge to support multiple PCI root buses. 12 As opposed to PCI-2-PCI bridge's secondary bus, PXB's bus 14 (different from the main host bridge) allowing the guest OS 32 - a pxb host bridge attached to NUMA 1 with an e1000 behind it 33 - a pxb host bridge attached to NUMA 0 with an e1000 behind it 34 - a pxb host bridge not attached to any NUMA with a hard drive behind it. 46 The host bridge allows to register and query the PXB's PCI root bus in QEMU. [all …]
|
H A D | bypass-iommu.txt | 14 determine whether the devices attached on the PCI host bridge will bypass 17 bypass vIOMMU. When bypass_iommu property is not set for a host bridge, 22 The bypass iommu feature support PXB host bridge and default main host 23 bridge, we add a bypass_iommu property for PXB and default_bus_bypass_iommu 30 (1) PCI expander bridge 32 (2) Arm default host bridge 46 - a default host bridge which bypass SMMUv3 47 - a pxb host bridge which go through SMMUv3 48 - a pxb host bridge which bypass SMMUv3 60 - a default host bridge which bypass iommu [all …]
|
H A D | multiseat.txt | 30 -device pci-bridge,addr=12.0,chassis_nr=2,id=head.2 \ 36 This places a pci bridge in slot 12, connects a display adapter and 37 xhci (usb) controller to the bridge. Then it adds a usb keyboard and 47 -device pci-bridge,addr=12.0,chassis_nr=2,id=head.2 \ 91 should list the pci bridge with the display adapter and usb controller: 99 Good. Now lets tell the system that the pci bridge and all devices 123 guest side with pci-bridge-seat 126 QEMU version 2.4 and newer has a new pci-bridge-seat device which 127 can be used instead of pci-bridge. Just swap the device name in the 133 [root@fedora ~]# cat /etc/udev/rules.d/70-qemu-pci-bridge-seat.rules
|
H A D | pcie.txt | 54 (3) PCI Express to PCI Bridge (pcie-pci-bridge), for starting legacy PCI 64 | PCI Dev | | PCIe Root Port | | PCIe-PCI Bridge | | pxb-pcie | 74 -device pcie-pci-bridge,id=pcie_pci_bridge1,bus=pcie.1 138 Besides that use PCI Express to PCI Bridges (pcie-pci-bridge) in 139 combination with PCI-PCI Bridges (pci-bridge) to start PCI hierarchies. 141 Prefer flat hierarchies. For most scenarios a single PCI Express to PCI Bridge 144 The recommendation is to populate one PCI-PCI Bridge under the 145 PCI Express to PCI Bridge until is full and then plug a new PCI-PCI Bridge... 151 | PCI Dev | | PCIe-PCI Bridge | 155 | PCI-PCI Bridge | | PCI-PCI Bridge | [all …]
|
/openbmc/qemu/tests/rocker/ |
H A D | all | 5 printf "Running bridge test... " 6 ./bridge 9 printf "Running bridge STP test... " 10 ./bridge-stp 13 printf "Running bridge VLAN test... " 14 ./bridge-vlan 17 printf "Running bridge VLAN STP test... " 18 ./bridge-vlan-stp
|
H A D | bridge-vlan | 9 # configure a 2-port bridge 11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge" 18 simp ssh tut sw1 --cmd "echo 0 | sudo dd of=/sys/class/net/br0/bridge/default_pvid 2> /dev/null" 19 simp ssh tut sw1 --cmd "echo 1 | sudo dd of=/sys/class/net/br0/bridge/vlan_filtering 2> /dev/null" 23 simp ssh tut sw1 --cmd "sudo /sbin/bridge vlan add vid 57 dev sw1p1" 24 simp ssh tut sw1 --cmd "sudo /sbin/bridge vlan add vid 57 dev sw1p2" 28 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 learning off" 29 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 learning off" 31 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 flood off" 32 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 flood off" [all …]
|
H A D | bridge-vlan-stp | 9 # configure a 2-port bridge 11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge" 19 simp ssh tut sw1 --cmd "echo 0 | sudo dd of=/sys/class/net/br0/bridge/default_pvid 2> /dev/null" 20 simp ssh tut sw1 --cmd "echo 1 | sudo dd of=/sys/class/net/br0/bridge/vlan_filtering 2> /dev/null" 24 simp ssh tut sw1 --cmd "sudo /sbin/bridge vlan add vid 57 dev sw1p1" 25 simp ssh tut sw1 --cmd "sudo /sbin/bridge vlan add vid 57 dev sw1p2" 29 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 learning off" 30 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 learning off" 32 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 flood off" 33 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 flood off" [all …]
|
H A D | bridge | 9 # configure a 2-port bridge 11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge" 17 simp ssh tut sw1 --cmd "echo 0 | sudo dd of=/sys/class/net/br0/bridge/default_pvid 2> /dev/null" 21 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 learning off" 22 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 learning off" 24 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 flood off" 25 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 flood off" 27 # bring up bridge and ports
|
H A D | bridge-stp | 9 # configure a 2-port bridge 11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge" 18 simp ssh tut sw1 --cmd "echo 0 | sudo dd of=/sys/class/net/br0/bridge/default_pvid 2> /dev/null" 22 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 learning off" 23 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 learning off" 25 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 flood off" 26 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 flood off" 33 # bring up bridge and ports
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_internal.h | 13 * dm_pciauto_prescan_setup_bridge() - Set up a bridge for scanning 15 * This gets a bridge ready so that its downstream devices can be scanned. 19 * @dev: Bridge device to be scanned 20 * @sub_bus: Bus number of the 'other side' of the bridge 25 * dm_pciauto_postscan_setup_bridge() - Finish set up of a bridge after scanning 29 * of the bridge. 31 * @dev: Bridge device that was scanned 32 * @sub_bus: Bus number of the 'other side' of the bridge 39 * If the device is a bridge, downstream devices will be probed. 44 * bridge then it will return a larger number, depending on the devices on [all …]
|
/openbmc/qemu/ |
H A D | qemu-bridge-helper.c | 2 * QEMU Bridge Helper 51 #define DEFAULT_ACL_FILE CONFIG_QEMU_CONFDIR "/bridge.conf" 71 "Usage: qemu-bridge-helper [--use-vnet] --br=bridge --fd=unixfd\n"); in usage() 242 const char *bridge = NULL; in main() local 269 bridge = &argv[index][5]; in main() 278 if (bridge == NULL || unixfd == -1) { in main() 282 if (strlen(bridge) >= IFNAMSIZ) { in main() 283 fprintf(stderr, "name `%s' too long: %zu\n", bridge, strlen(bridge)); in main() 297 /* validate bridge against acl -- default policy is to deny in main() 309 if (strcmp(bridge, acl_rule->iface) == 0) { in main() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/bridge-utils/ |
H A D | bridge-utils_1.7.1.bb | 2 HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge" 11 git://git.kernel.org/pub/scm/network/bridge/bridge-utils.git;branch=main \ 22 CVE_PRODUCT = "kernel:bridge-utils" 33 install -d ${D}/${datadir}/bridge-utils 38 RRECOMMENDS:${PN} = "kernel-module-bridge"
|
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/ |
H A D | qemu-helper-native_1.0.bb | 5 LIC_FILES_CHKSUM = "file://${S}/qemu-oe-bridge-helper.c;endline=4;md5=ae00a3bab86f2caaa8462eacda77f… 7 SRC_URI = "file://qemu-oe-bridge-helper.c" 15 ${CC} ${CFLAGS} ${LDFLAGS} -Wall qemu-oe-bridge-helper.c -o qemu-oe-bridge-helper 20 install qemu-oe-bridge-helper ${D}${bindir}/
|
/openbmc/qemu/hw/pci/ |
H A D | pci_bridge.c | 43 /* PCI bridge subsystem vendor ID helper functions */ 65 /* Accessor function to get parent bridge device from pci bus. */ 71 /* Accessor function to get secondary bus from pci-to-pci bridge device */ 109 /* accessor function to get bridge filtering base address */ 110 pcibus_t pci_bridge_get_base(const PCIDevice *bridge, uint8_t type) in pci_bridge_get_base() argument 114 base = pci_config_get_io_base(bridge, in pci_bridge_get_base() 119 bridge, PCI_PREF_MEMORY_BASE, PCI_PREF_BASE_UPPER32); in pci_bridge_get_base() 121 base = pci_config_get_memory_base(bridge, PCI_MEMORY_BASE); in pci_bridge_get_base() 128 /* accessor function to get bridge filtering limit */ 129 pcibus_t pci_bridge_get_limit(const PCIDevice *bridge, uint8_t type) in pci_bridge_get_limit() argument [all …]
|
/openbmc/u-boot/include/ |
H A D | video_bridge.h | 15 * @sleep: GPIO to assert to power down the bridge 16 * @reset: GPIO to assert to reset the bridge 17 * @hotplug: Optional GPIO to check if bridge is connected 30 * attach() - attach a video bridge 37 * check_attached() - check if a bridge is correctly attached 71 * video_bridge_attach() - attach a video bridge 86 * video_bridge_set_active() - take the bridge in/out of reset/powerdown 94 * check_attached() - check if a bridge is correctly attached
|
/openbmc/phosphor-ipmi-flash/tools/test/ |
H A D | tools_pci_unittest.cpp | 137 /* Second bit determines whether bridge is enabled */ 180 /* Lower bit determines whether bridge is enabled */ 183 static constexpr int bridge = 0x0f004; member in host_tool::__anond86d8cb60111::AspeedDevice 349 std::unique_ptr<PciBridgeIntf> bridge = nuvotonDevice.getBridge(&pciMock); in TEST() local 350 EXPECT_THROW(bridge->write(std::span<std::uint8_t>(data)), ToolException); in TEST() 364 std::unique_ptr<PciBridgeIntf> bridge = nuvotonDevice.getBridge(&pciMock); in TEST() local 365 bridge->write(std::span<std::uint8_t>(data)); in TEST() 380 std::unique_ptr<PciBridgeIntf> bridge = nuvotonDevice.getBridge(&pciMock); in TEST() local 381 bridge->configure(config); in TEST() 395 std::unique_ptr<PciBridgeIntf> bridge = nuvotonDevice.getBridge(&pciMock); in TEST() local [all …]
|
/openbmc/phosphor-ipmi-flash/tools/ |
H A D | pci.cpp | 136 ret = pci->pci_device_cfg_read_u8(dev, &value, bridge); in enableBridge() 140 "Error reading bridge status"); in enableBridge() 145 std::fprintf(stderr, "Bridge already enabled\n"); in enableBridge() 151 ret = pci->pci_device_cfg_write_u8(dev, value, bridge); in enableBridge() 155 "Error enabling bridge"); in enableBridge() 164 ret = pci->pci_device_cfg_read_u8(dev, &value, bridge); in disableBridge() 167 std::fprintf(stderr, "Error reading bridge status: %s\n", in disableBridge() 173 ret = pci->pci_device_cfg_write_u8(dev, value, bridge); in disableBridge() 176 std::fprintf(stderr, "Error disabling bridge: %s\n", in disableBridge() 184 * the bridge enabled on the BMC. in enableBridge() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu-helper/ |
H A D | qemu-oe-bridge-helper.c | 6 * Attempts to find and exec the host qemu-bridge-helper program 30 …fprintf(stderr, "Helper function to find and exec qemu-bridge-helper. Set QEMU_BRIDGE_HELPER to ov… in main() 34 try_program("/usr/libexec/qemu-bridge-helper", argv); in main() 35 try_program("/usr/lib/qemu/qemu-bridge-helper", argv); in main() 37 fprintf(stderr, "No bridge helper found\n"); in main()
|
/openbmc/qemu/include/hw/pci/ |
H A D | pci_bridge.h | 2 * QEMU PCI bridge 37 * Aliases for each of the address space windows that the bridge 38 * can forward. Mapped into the bridge's parent's address space, 46 * When bridge control VGA forwarding is enabled, bridges will 49 * I/O and memory enable bits in the bridge command register. 54 #define TYPE_PCI_BRIDGE "base-pci-bridge" 66 * Memory regions for the bridge's address spaces. These regions are not 68 * Bridge's secondary bus points to these, so that devices 69 * under the bridge see these regions as its address spaces. 130 pcibus_t pci_bridge_get_base(const PCIDevice *bridge, uint8_t type); [all …]
|
/openbmc/u-boot/board/freescale/common/ |
H A D | cds_via.c | 13 pci_dev_t bridge; in mpc85xx_config_via() local 26 * Force the backplane P2P bridge to have a window in mpc85xx_config_via() 31 bridge = PCI_BDF(0,BRIDGE_ID,0); in mpc85xx_config_via() 32 pci_hose_write_config_byte(hose, bridge, PCI_IO_BASE, 0); in mpc85xx_config_via() 33 pci_hose_write_config_word(hose, bridge, PCI_IO_BASE_UPPER16, 0); in mpc85xx_config_via() 34 pci_hose_write_config_byte(hose, bridge, PCI_IO_LIMIT, 0x10); in mpc85xx_config_via() 35 pci_hose_write_config_word(hose, bridge, PCI_IO_LIMIT_UPPER16, 0); in mpc85xx_config_via()
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | ppc64_pseries-machine.c | 37 QSPAPR_pci_host bridge; member 82 if (!g_strcmp0(device, "spapr-pci-host-bridge")) { in spapr_get_device() 83 return &machine->bridge.obj; in spapr_get_device() 98 qos_create_QSPAPR_host(&machine->bridge, qts, &machine->alloc); in qos_create_machine_spapr() 106 qos_node_create_driver("spapr-pci-host-bridge", NULL); in spapr_machine_register_nodes() 107 qos_node_contains("ppc64/pseries", "spapr-pci-host-bridge", NULL); in spapr_machine_register_nodes() 108 qos_node_contains("spapr-pci-host-bridge", "pci-bus-spapr", NULL); in spapr_machine_register_nodes()
|
/openbmc/qemu/qapi/ |
H A D | pci.json | 55 # Information about a bus of a PCI Bridge device 61 # the main bus for the bridge 64 # bridge. 66 # @io_range: The PIO range for all devices on this bridge 68 # @memory_range: The MMIO range for all devices on this bridge 71 # on this bridge 84 # Information about a PCI Bridge device 88 # @devices: a list of `PciDeviceInfo` for each device on this bridge 150 # @pci_bridge: if the device is a PCI bridge, the bridge information 200 # "desc": "Host bridge" [all …]
|
/openbmc/qemu/docs/specs/ |
H A D | pci-ids.rst | 64 PCI-PCI bridge 78 PCIe host bridge 80 PCI Expander Bridge (``-device pxb``) 82 PCI-PCI bridge (multiseat) 84 PCIe Expander Bridge (``-device pxb-pcie``) 90 PCIe-to-PCI bridge (``-device pcie-pci-bridge``)
|
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/ |
H A D | pcie.c | 57 struct pex_outbound_window *out_win = &pex->bridge.pex_outbound_win[0]; in mpc83xx_pcie_remap_cfg() 190 /* Enable pex csb bridge inbound & outbound transactions */ in mpc83xx_pcie_init_bus() 191 out_le32(&pex->bridge.pex_csb_ctrl, in mpc83xx_pcie_init_bus() 192 in_le32(&pex->bridge.pex_csb_ctrl) | PEX_CSB_CTRL_OBPIOE | in mpc83xx_pcie_init_bus() 195 /* Enable bridge outbound */ in mpc83xx_pcie_init_bus() 196 out_le32(&pex->bridge.pex_csb_obctrl, PEX_CSB_OBCTRL_PIOE | in mpc83xx_pcie_init_bus() 200 out_win = &pex->bridge.pex_outbound_win[0]; in mpc83xx_pcie_init_bus() 213 out_win = &pex->bridge.pex_outbound_win[i + 1]; in mpc83xx_pcie_init_bus() 225 out_le32(&pex->bridge.pex_csb_ibctrl, PEX_CSB_IBCTRL_PIOE); in mpc83xx_pcie_init_bus() 232 in_win = &pex->bridge.pex_inbound_win[i]; in mpc83xx_pcie_init_bus() [all …]
|