#ifndef __DWC3_DEBUG_H
#define __DWC3_DEBUG_H
#include "core.h"
static inline const char *
dwc3_gadget_ep_cmd_string(u8 cmd)
{ … }
static inline const char *
dwc3_gadget_generic_cmd_string(u8 cmd)
{ … }
static inline const char *
dwc3_gadget_link_string(enum dwc3_link_state link_state)
{ … }
static inline const char *
dwc3_gadget_hs_link_string(enum dwc3_link_state link_state)
{ … }
static inline const char *dwc3_trb_type_string(unsigned int type)
{ … }
static inline const char *dwc3_ep0_state_string(enum dwc3_ep0_state state)
{ … }
static inline const char *dwc3_gadget_event_string(char *str, size_t size,
const struct dwc3_event_devt *event)
{ … }
static inline const char *dwc3_ep_event_string(char *str, size_t size,
const struct dwc3_event_depevt *event, u32 ep0state)
{ … }
static inline const char *dwc3_gadget_event_type_string(u8 event)
{ … }
static inline const char *dwc3_decode_event(char *str, size_t size, u32 event,
u32 ep0state)
{ … }
static inline const char *dwc3_ep_cmd_status_string(int status)
{ … }
static inline const char *dwc3_gadget_generic_cmd_status_string(int status)
{ … }
#ifdef CONFIG_DEBUG_FS
extern void dwc3_debugfs_create_endpoint_dir(struct dwc3_ep *dep);
extern void dwc3_debugfs_remove_endpoint_dir(struct dwc3_ep *dep);
extern void dwc3_debugfs_init(struct dwc3 *d);
extern void dwc3_debugfs_exit(struct dwc3 *d);
#else
static inline void dwc3_debugfs_create_endpoint_dir(struct dwc3_ep *dep)
{ }
static inline void dwc3_debugfs_remove_endpoint_dir(struct dwc3_ep *dep)
{ }
static inline void dwc3_debugfs_init(struct dwc3 *d)
{ }
static inline void dwc3_debugfs_exit(struct dwc3 *d)
{ }
#endif
#endif