xref: /qemu/hw/usb/hcd-xhci-sysbus.h (revision 94c7fefc)
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 TYPE_XHCI_SYSBUS "sysbus-xhci"
19 #define XHCI_SYSBUS(obj) \
20     OBJECT_CHECK(XHCISysbusState, (obj), TYPE_XHCI_SYSBUS)
21 
22 
23 typedef struct XHCISysbusState {
24     /*< private >*/
25     SysBusDevice parent_obj;
26     /*< public >*/
27     XHCIState xhci;
28     qemu_irq *irq;
29 } XHCISysbusState;
30 
31 void xhci_sysbus_reset(DeviceState *dev);
32 #endif
33