Home
last modified time | relevance | path

Searched refs:ehci (Results 1 – 25 of 25) sorted by relevance

/qemu/hw/usb/
H A Dhcd-ehci.c373 static inline int get_dwords(EHCIState *ehci, uint32_t addr, in get_dwords() argument
378 if (!ehci->as) { in get_dwords()
379 ehci_raise_irq(ehci, USBSTS_HSE); in get_dwords()
380 ehci->usbcmd &= ~USBCMD_RUNSTOP; in get_dwords()
386 dma_memory_read(ehci->as, addr, buf, sizeof(*buf), in get_dwords()
395 static inline int put_dwords(EHCIState *ehci, uint32_t addr, in put_dwords() argument
400 if (!ehci->as) { in put_dwords()
401 ehci_raise_irq(ehci, USBSTS_HSE); in put_dwords()
402 ehci->usbcmd &= ~USBCMD_RUNSTOP; in put_dwords()
409 dma_memory_write(ehci->as, addr, &tmp, sizeof(tmp), in put_dwords()
[all …]
H A Dhcd-ehci-pci.c36 EHCIState *s = &i->ehci; in usb_ehci_pci_realize()
79 EHCIState *s = &i->ehci; in usb_ehci_pci_init()
98 EHCIState *s = &i->ehci; in usb_ehci_pci_finalize()
106 EHCIState *s = &i->ehci; in usb_ehci_pci_exit()
118 EHCIState *s = &i->ehci; in usb_ehci_pci_reset()
135 i->ehci.as = busmaster ? pci_get_address_space(dev) : &address_space_memory; in usb_ehci_pci_write_config()
139 DEFINE_PROP_UINT32("maxframes", EHCIPCIState, ehci.maxframes, 128),
148 VMSTATE_STRUCT(ehci, EHCIPCIState, 2, vmstate_ehci, EHCIState),
H A Dhcd-ehci-sysbus.c28 VMSTATE_STRUCT(ehci, EHCISysBusState, 2, vmstate_ehci, EHCIState),
34 DEFINE_PROP_UINT32("maxframes", EHCISysBusState, ehci.maxframes, 128),
35 DEFINE_PROP_BOOL("companion-enable", EHCISysBusState, ehci.companion_enable,
43 EHCIState *s = &i->ehci; in usb_ehci_sysbus_realize()
53 EHCIState *s = &i->ehci; in usb_ehci_sysbus_reset()
63 EHCIState *s = &i->ehci; in ehci_sysbus_init()
78 EHCIState *s = &i->ehci; in ehci_sysbus_finalize()
154 s->ehci.companion_enable = true; in ehci_ppc4xx_init()
214 EHCIState *s = &i->ehci; in fusbh200_ehci_init()
H A Dchipidea.c94 EHCIState *ehci = &SYS_BUS_EHCI(obj)->ehci; in chipidea_init() local
141 memory_region_add_subregion(&ehci->mem, in chipidea_init()
H A Dhcd-ehci.h233 EHCIState *ehci; member
338 EHCIState ehci; member
358 EHCIState ehci; member
H A Dmeson.build19 system_ss.add(when: 'CONFIG_USB_EHCI', if_true: files('hcd-ehci.c'))
20 system_ss.add(when: 'CONFIG_USB_EHCI_PCI', if_true: files('hcd-ehci-pci.c'))
21 system_ss.add(when: 'CONFIG_USB_EHCI_SYSBUS', if_true: files('hcd-ehci-sysbus.c'))
H A Dtrace-events78 # hcd-ehci.c
/qemu/docs/config/
H A Dich9-ehci-uhci.cfg9 # Specify "bus=ehci.0" when creating usb devices to hook them up
13 [device "ehci"]
22 masterbus = "ehci.0"
29 masterbus = "ehci.0"
36 masterbus = "ehci.0"
H A Dq35-emulated.cfg169 [device "ich9-ehci-1"]
180 masterbus = "ich9-ehci-1.0"
188 masterbus = "ich9-ehci-1.0"
196 masterbus = "ich9-ehci-1.0"
205 [device "ich9-ehci-2"]
216 masterbus = "ich9-ehci-2.0"
224 masterbus = "ich9-ehci-2.0"
232 masterbus = "ich9-ehci-2.0"
/qemu/hw/arm/
H A Dallwinner-a10.c87 object_initialize_child(obj, "ehci[*]", &s->ehci[i], in aw_a10_init()
166 object_property_set_bool(OBJECT(&s->ehci[i]), "companion-enable", in aw_a10_realize()
168 sysbus_realize(SYS_BUS_DEVICE(&s->ehci[i]), &error_fatal); in aw_a10_realize()
169 sysbus_mmio_map(SYS_BUS_DEVICE(&s->ehci[i]), 0, in aw_a10_realize()
171 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, in aw_a10_realize()
H A Dnpcm8xx.c442 for (i = 0; i < ARRAY_SIZE(s->ehci); i++) { in npcm8xx_init()
443 object_initialize_child(obj, "ehci[*]", &s->ehci[i], TYPE_NPCM7XX_EHCI); in npcm8xx_init()
645 QEMU_BUILD_BUG_ON(ARRAY_SIZE(s->ohci) != ARRAY_SIZE(s->ehci)); in npcm8xx_realize()
646 for (i = 0; i < ARRAY_SIZE(s->ehci); i++) { in npcm8xx_realize()
647 object_property_set_bool(OBJECT(&s->ehci[i]), "companion-enable", true, in npcm8xx_realize()
649 sysbus_realize(SYS_BUS_DEVICE(&s->ehci[i]), &error_abort); in npcm8xx_realize()
650 sysbus_mmio_map(SYS_BUS_DEVICE(&s->ehci[i]), 0, npcm8xx_ehci_addr[i]); in npcm8xx_realize()
651 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, in npcm8xx_realize()
H A Dallwinner-r40.c296 object_initialize_child(obj, "ehci[*]", &s->ehci[i], in allwinner_r40_init()
443 object_property_set_bool(OBJECT(&s->ehci[i]), "companion-enable", true, in allwinner_r40_realize()
445 sysbus_realize(SYS_BUS_DEVICE(&s->ehci[i]), &error_fatal); in allwinner_r40_realize()
446 sysbus_mmio_map(SYS_BUS_DEVICE(&s->ehci[i]), 0, in allwinner_r40_realize()
449 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, in allwinner_r40_realize()
H A Dnpcm7xx.c448 object_initialize_child(obj, "ehci", &s->ehci, TYPE_NPCM7XX_EHCI); in npcm7xx_init()
631 object_property_set_bool(OBJECT(&s->ehci), "companion-enable", true, in npcm7xx_realize()
633 sysbus_realize(SYS_BUS_DEVICE(&s->ehci), &error_abort); in npcm7xx_realize()
634 sysbus_mmio_map(SYS_BUS_DEVICE(&s->ehci), 0, NPCM7XX_EHCI_BA); in npcm7xx_realize()
635 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci), 0, in npcm7xx_realize()
H A Daspeed_ast2400.c198 object_initialize_child(obj, "ehci[*]", &s->ehci[i], in aspeed_ast2400_soc_init()
388 if (!sysbus_realize(SYS_BUS_DEVICE(&s->ehci[i]), errp)) { in aspeed_ast2400_soc_realize()
391 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->ehci[i]), 0, in aspeed_ast2400_soc_realize()
393 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, in aspeed_ast2400_soc_realize()
H A Daspeed_ast2600.c205 object_initialize_child(obj, "ehci[*]", &s->ehci[i], in aspeed_soc_ast2600_init()
474 if (!sysbus_realize(SYS_BUS_DEVICE(&s->ehci[i]), errp)) { in aspeed_soc_ast2600_realize()
477 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->ehci[i]), 0, in aspeed_soc_ast2600_realize()
479 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, in aspeed_soc_ast2600_realize()
H A Daspeed_ast27x0.c461 object_initialize_child(obj, "ehci[*]", &s->ehci[i], in aspeed_soc_ast2700_init()
763 if (!sysbus_realize(SYS_BUS_DEVICE(&s->ehci[i]), errp)) { in aspeed_soc_ast2700_realize()
766 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->ehci[i]), 0, in aspeed_soc_ast2700_realize()
768 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, in aspeed_soc_ast2700_realize()
/qemu/docs/system/devices/
H A Dusb.rst52 ``-device usb-ehci,id=ehci``. This will give you a USB 2.0 bus named
53 ``ehci.0``.
63 -device usb-ehci,id=ehci \\
65 -device usb-storage,bus=ehci.0,drive=usbstick
87 |qemu_system| -readconfig docs/config/ich9-ehci-uhci.cfg
89 Then use ``bus=ehci.0`` to assign your USB devices to that bus.
363 -device usb-ehci,id=ehci \\
365 -device usb-host,bus=ehci.0,hostbus=1,hostport=1
/qemu/include/hw/arm/
H A Dallwinner-a10.h48 EHCISysBusState ehci[AW_A10_NUM_USB]; member
H A Dallwinner-r40.h122 EHCISysBusState ehci[AW_R40_NUM_USB]; member
H A Dnpcm8xx.h100 EHCISysBusState ehci[2]; member
H A Dnpcm7xx.h104 EHCISysBusState ehci; member
H A Daspeed_soc.h75 EHCISysBusState ehci[ASPEED_EHCIS_NUM]; member
/qemu/hw/i386/
H A Dpc_q35.c95 PCIDevice *ehci, *uhci; in ehci_create_ich9_with_companions() local
113 ehci = pci_new_multifunction(PCI_DEVFN(slot, 7), name); in ehci_create_ich9_with_companions()
114 pci_realize_and_unref(ehci, bus, &error_fatal); in ehci_create_ich9_with_companions()
115 usbbus = QLIST_FIRST(&ehci->qdev.child_bus); in ehci_create_ich9_with_companions()
/qemu/pc-bios/dtb/
H A Dcanyonlands.dts166 USB0: ehci@bffd0400 {
167 compatible = "ibm,usb-ehci-460ex", "usb-ehci";
/qemu/tests/qtest/
H A Dmeson.build81 config_all_devices.has_key('CONFIG_USB_EHCI') ? ['usb-hcd-ehci-test'] : []) + \