2
0

hcd-xhci-pci.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * USB xHCI controller emulation
  3. *
  4. * Copyright (c) 2011 Securiforest
  5. * Date: 2011-05-11 ; Author: Hector Martin <hector@marcansoft.com>
  6. * Based on usb-ohci.c, emulates Renesas NEC USB 3.0
  7. * Date: 2020-01-1; Author: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
  8. * PCI hooks are moved from XHCIState to XHCIPciState
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation; either
  13. * version 2.1 of the License, or (at your option) any later version.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  22. */
  23. #ifndef HW_USB_HCD_XHCI_PCI_H
  24. #define HW_USB_HCD_XHCI_PCI_H
  25. #include "hw/pci/pci_device.h"
  26. #include "hw/usb.h"
  27. #include "hcd-xhci.h"
  28. #define TYPE_XHCI_PCI "pci-xhci"
  29. #define XHCI_PCI(obj) \
  30. OBJECT_CHECK(XHCIPciState, (obj), TYPE_XHCI_PCI)
  31. typedef struct XHCIPciState {
  32. /*< private >*/
  33. PCIDevice parent_obj;
  34. /*< public >*/
  35. XHCIState xhci;
  36. OnOffAuto msi;
  37. OnOffAuto msix;
  38. bool conditional_intr_mapping;
  39. } XHCIPciState;
  40. #endif