xref: /openbmc/qemu/hw/usb/hcd-xhci-sysbus.h (revision a6e03739)
1 /*
2  * USB xHCI controller for system-bus interface
3  *
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
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 
11 #ifndef HW_USB_HCD_XHCI_SYSBUS_H
12 #define HW_USB_HCD_XHCI_SYSBUS_H
13 
14 #include "hw/usb.h"
15 #include "hcd-xhci.h"
16 #include "hw/sysbus.h"
17 
18 #define XHCI_SYSBUS(obj) \
19     OBJECT_CHECK(XHCISysbusState, (obj), TYPE_XHCI_SYSBUS)
20 
21 
22 typedef struct XHCISysbusState {
23     /*< private >*/
24     SysBusDevice parent_obj;
25     /*< public >*/
26     XHCIState xhci;
27     qemu_irq *irq;
28 } XHCISysbusState;
29 
30 void xhci_sysbus_reset(DeviceState *dev);
31 #endif
32