ppc/pnv: Introduce support for user created PHB3 devices
[qemu.git] / hw / usb / hcd-xhci-sysbus.h
blobfdfcbbee3bf4cbe1cfbc91713c9ba6941422a35f
1 /*
2 * USB xHCI controller for system-bus interface
4 * SPDX-FileCopyrightText: 2020 Xilinx
5 * SPDX-FileContributor: Author: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
6 * SPDX-sourceInfo: Based on hcd-echi-sysbus
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #ifndef HW_USB_HCD_XHCI_SYSBUS_H
12 #define HW_USB_HCD_XHCI_SYSBUS_H
14 #include "hw/usb.h"
15 #include "hcd-xhci.h"
16 #include "hw/sysbus.h"
18 #define XHCI_SYSBUS(obj) \
19 OBJECT_CHECK(XHCISysbusState, (obj), TYPE_XHCI_SYSBUS)
22 typedef struct XHCISysbusState {
23 /*< private >*/
24 SysBusDevice parent_obj;
25 /*< public >*/
26 XHCIState xhci;
27 qemu_irq *irq;
28 } XHCISysbusState;
30 void xhci_sysbus_reset(DeviceState *dev);
31 #endif