| /* SPDX-License-Identifier: GPL-2.0+ */ |
| #ifndef EP0_MAX_PACKET_SIZE |
| #define EP0_MAX_PACKET_SIZE 64 |
| #ifndef EP_MAX_PACKET_SIZE |
| #define EP_MAX_PACKET_SIZE 64 |
| /* mpc8xx_udc.h will set these values */ |
| #define UDC_OUT_PACKET_SIZE EP_MAX_PACKET_SIZE |
| #define UDC_IN_PACKET_SIZE EP_MAX_PACKET_SIZE |
| #define UDC_INT_PACKET_SIZE EP_MAX_PACKET_SIZE |
| #define UDC_BULK_PACKET_SIZE EP_MAX_PACKET_SIZE |
| #define UDC_BULK_HS_PACKET_SIZE 512 |
| #define UDC_INT_ENDPOINT 1 |
| #define UDC_OUT_ENDPOINT 2 |
| #define UDC_IN_ENDPOINT 3 |
| /* function declarations */ |
| int udc_endpoint_write(struct usb_endpoint_instance *endpoint); |
| void udc_setup_ep(struct usb_device_instance *device, unsigned int ep, |
| struct usb_endpoint_instance *endpoint); |
| void udc_disconnect(void); |
| void udc_enable(struct usb_device_instance *device); |
| void udc_startup_events(struct usb_device_instance *device); |
| void udc_set_nak(int epid); |
| void udc_unset_nak(int epid); |