drv_usb_host_intf.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright 2012 Tilera Corporation. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation, version 2.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  11. * NON INFRINGEMENT. See the GNU General Public License for
  12. * more details.
  13. */
  14. /**
  15. * Interface definitions for the USB host driver.
  16. */
  17. #ifndef _SYS_HV_DRV_USB_HOST_INTF_H
  18. #define _SYS_HV_DRV_USB_HOST_INTF_H
  19. #include <arch/usb_host.h>
  20. /** Offset for the EHCI register MMIO region. */
  21. #define HV_USB_HOST_MMIO_OFFSET_EHCI ((uint64_t) USB_HOST_HCCAPBASE_REG)
  22. /** Offset for the OHCI register MMIO region. */
  23. #define HV_USB_HOST_MMIO_OFFSET_OHCI ((uint64_t) USB_HOST_OHCD_HC_REVISION_REG)
  24. /** Size of the register MMIO region. This turns out to be the same for
  25. * both EHCI and OHCI. */
  26. #define HV_USB_HOST_MMIO_SIZE ((uint64_t) 0x1000)
  27. /** The number of service domains supported by the USB host shim. */
  28. #define HV_USB_HOST_NUM_SVC_DOM 1
  29. #endif /* _SYS_HV_DRV_USB_HOST_INTF_H */