drivers/usb/cdns3/gadget-export.h

Source file repositories/reference/linux-study-clean/drivers/usb/cdns3/gadget-export.h

File Facts

System
Linux kernel
Corpus path
drivers/usb/cdns3/gadget-export.h
Extension
.h
Size
736 bytes
Lines
38
Domain
Driver Families
Bucket
drivers/usb
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __LINUX_CDNS3_GADGET_EXPORT
#define __LINUX_CDNS3_GADGET_EXPORT

#if IS_ENABLED(CONFIG_USB_CDNSP_GADGET)

int cdnsp_gadget_init(struct cdns *cdns);
#else

static inline int cdnsp_gadget_init(struct cdns *cdns)
{
	return -ENXIO;
}

#endif /* CONFIG_USB_CDNSP_GADGET */

#if IS_ENABLED(CONFIG_USB_CDNS3_GADGET)

int cdns3_gadget_init(struct cdns *cdns);
#else

static inline int cdns3_gadget_init(struct cdns *cdns)
{
	return -ENXIO;
}

#endif /* CONFIG_USB_CDNS3_GADGET */

#endif /* __LINUX_CDNS3_GADGET_EXPORT */

Annotation

Implementation Notes