| /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| /* |
| * drivers/usb/gadget/fastboot/dwc_pcd_irq.h |
| * |
| * Copyright (C) 2020 Amlogic, Inc. All rights reserved. |
| * |
| */ |
| |
| #ifndef __DWC_PCD_IRQ_H__ |
| #define __DWC_PCD_IRQ_H__ |
| |
| #include "dwc_pcd.h" |
| |
| /** |
| * States of EP0. |
| */ |
| typedef enum ep0_state { |
| EP0_DISCONNECT, |
| EP0_IDLE, |
| EP0_IN_DATA_PHASE, |
| EP0_OUT_DATA_PHASE, |
| EP0_STATUS, |
| EP0_STALL, |
| } ep0state_e; |
| |
| extern int f_dwc_pcd_irq(void); |
| extern int f_dwc_otg_ep_req_start(pcd_struct_t *pcd, u32 ep_num, u32 is_in, struct usb_request *req); |
| |
| #endif |