2 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef EP0_MAX_PACKET_SIZE
8 #define EP0_MAX_PACKET_SIZE 64
11 #ifndef EP_MAX_PACKET_SIZE
12 #define EP_MAX_PACKET_SIZE 64
15 #if !defined(CONFIG_PPC)
16 /* mpc8xx_udc.h will set these values */
17 #define UDC_OUT_PACKET_SIZE EP_MAX_PACKET_SIZE
18 #define UDC_IN_PACKET_SIZE EP_MAX_PACKET_SIZE
19 #define UDC_INT_PACKET_SIZE EP_MAX_PACKET_SIZE
20 #define UDC_BULK_PACKET_SIZE EP_MAX_PACKET_SIZE
23 #define UDC_BULK_HS_PACKET_SIZE 512
25 #ifndef UDC_INT_ENDPOINT
26 #define UDC_INT_ENDPOINT 1
29 #ifndef UDC_OUT_ENDPOINT
30 #define UDC_OUT_ENDPOINT 2
33 #ifndef UDC_IN_ENDPOINT
34 #define UDC_IN_ENDPOINT 3
37 /* function declarations */
40 int udc_endpoint_write(struct usb_endpoint_instance *endpoint);
41 void udc_setup_ep(struct usb_device_instance *device, unsigned int ep,
42 struct usb_endpoint_instance *endpoint);
43 void udc_connect(void);
44 void udc_disconnect(void);
45 void udc_enable(struct usb_device_instance *device);
46 void udc_disable(void);
47 void udc_startup_events(struct usb_device_instance *device);
50 void udc_set_nak(int epid);
51 void udc_unset_nak(int epid);