mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 06:53:43 +08:00
848db5257d
Move a bunch of defines which might be needed outside core xhci code to that place. Add XHCI_ prefixes to avoid name clashes. No functional change. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> Message-id: 20201020074844.5304-3-kraxel@redhat.com
32 lines
699 B
C
32 lines
699 B
C
/*
|
|
* USB xHCI controller for system-bus interface
|
|
*
|
|
* SPDX-FileCopyrightText: 2020 Xilinx
|
|
* SPDX-FileContributor: Author: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
|
|
* SPDX-sourceInfo: Based on hcd-echi-sysbus
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef HW_USB_HCD_XHCI_SYSBUS_H
|
|
#define HW_USB_HCD_XHCI_SYSBUS_H
|
|
|
|
#include "hw/usb.h"
|
|
#include "hcd-xhci.h"
|
|
#include "hw/sysbus.h"
|
|
|
|
#define XHCI_SYSBUS(obj) \
|
|
OBJECT_CHECK(XHCISysbusState, (obj), TYPE_XHCI_SYSBUS)
|
|
|
|
|
|
typedef struct XHCISysbusState {
|
|
/*< private >*/
|
|
SysBusDevice parent_obj;
|
|
/*< public >*/
|
|
XHCIState xhci;
|
|
qemu_irq *irq;
|
|
} XHCISysbusState;
|
|
|
|
void xhci_sysbus_reset(DeviceState *dev);
|
|
#endif
|