usb_hc_ohci.h 659 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2024, sakumisu
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef _USB_OHCI_PRIV_H
  7. #define _USB_OHCI_PRIV_H
  8. #include "usbh_core.h"
  9. #include "usbh_hub.h"
  10. #include "usb_ohci_reg.h"
  11. #define OHCI_HCOR ((struct ohci_hcor *)(uintptr_t)(bus->hcd.reg_base + CONFIG_USB_OHCI_HCOR_OFFSET))
  12. int ohci_init(struct usbh_bus *bus);
  13. int ohci_deinit(struct usbh_bus *bus);
  14. uint16_t ohci_get_frame_number(struct usbh_bus *bus);
  15. int ohci_roothub_control(struct usbh_bus *bus, struct usb_setup_packet *setup, uint8_t *buf);
  16. int ohci_submit_urb(struct usbh_urb *urb);
  17. int ohci_kill_urb(struct usbh_urb *urb);
  18. void OHCI_IRQHandler(uint8_t busid);
  19. #endif