#include <linux/arm-smccc.h>
#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/gpio/consumer.h>
#include <linux/platform_device.h>
#include <linux/platform_data/atmel.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/usb.h>
#include <linux/usb/hcd.h>
#include <soc/at91/atmel-sfr.h>
#include "ohci.h"
#define valid_port(index) …
#define at91_for_each_port(index) …
#define hcd_to_ohci_at91_priv(h) …
#define AT91_MAX_USBH_PORTS …
struct at91_usbh_data { … };
struct ohci_at91_priv { … };
#define DRIVER_DESC …
static struct hc_driver __read_mostly ohci_at91_hc_driver;
static const struct ohci_driver_overrides ohci_at91_drv_overrides __initconst = …;
static void at91_start_clock(struct ohci_at91_priv *ohci_at91)
{ … }
static void at91_stop_clock(struct ohci_at91_priv *ohci_at91)
{ … }
static void at91_start_hc(struct platform_device *pdev)
{ … }
static void at91_stop_hc(struct platform_device *pdev)
{ … }
static void usb_hcd_at91_remove (struct usb_hcd *, struct platform_device *);
static u32 at91_dt_suspend_smc(struct device *dev)
{ … }
static struct regmap *at91_dt_syscon_sfr(void)
{ … }
static int usb_hcd_at91_probe(const struct hc_driver *driver,
struct platform_device *pdev)
{ … }
static void usb_hcd_at91_remove(struct usb_hcd *hcd,
struct platform_device *pdev)
{ … }
static void ohci_at91_usb_set_power(struct at91_usbh_data *pdata, int port, int enable)
{ … }
static int ohci_at91_usb_get_power(struct at91_usbh_data *pdata, int port)
{ … }
static int ohci_at91_hub_status_data(struct usb_hcd *hcd, char *buf)
{ … }
static int ohci_at91_port_suspend(struct ohci_at91_priv *ohci_at91, u8 set)
{ … }
static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
u16 wIndex, char *buf, u16 wLength)
{ … }
static irqreturn_t ohci_hcd_at91_overcurrent_irq(int irq, void *data)
{ … }
static const struct of_device_id at91_ohci_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, at91_ohci_dt_ids);
static int ohci_hcd_at91_drv_probe(struct platform_device *pdev)
{ … }
static void ohci_hcd_at91_drv_remove(struct platform_device *pdev)
{ … }
static int __maybe_unused
ohci_hcd_at91_drv_suspend(struct device *dev)
{ … }
static int __maybe_unused
ohci_hcd_at91_drv_resume(struct device *dev)
{ … }
static SIMPLE_DEV_PM_OPS(ohci_hcd_at91_pm_ops, ohci_hcd_at91_drv_suspend,
ohci_hcd_at91_drv_resume);
static struct platform_driver ohci_hcd_at91_driver = …;
static int __init ohci_at91_init(void)
{ … }
module_init(…) …;
static void __exit ohci_at91_cleanup(void)
{ … }
module_exit(ohci_at91_cleanup);
MODULE_DESCRIPTION(…);
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;