linux/drivers/usb/renesas_usbhs/mod.c

// SPDX-License-Identifier: GPL-1.0+
/*
 * Renesas USB driver
 *
 * Copyright (C) 2011 Renesas Solutions Corp.
 * Copyright (C) 2019 Renesas Electronics Corporation
 * Kuninori Morimoto <[email protected]>
 */
#include <linux/interrupt.h>

#include "common.h"
#include "mod.h"

/*
 *		autonomy
 *
 * these functions are used if platform doesn't have external phy.
 *  -> there is no "notify_hotplug" callback from platform
 *  -> call "notify_hotplug" by itself
 *  -> use own interrupt to connect/disconnect
 *  -> it mean module clock is always ON
 *             ~~~~~~~~~~~~~~~~~~~~~~~~~
 */
static int usbhsm_autonomy_get_vbus(struct platform_device *pdev)
{}

static int usbhsm_autonomy_irq_vbus(struct usbhs_priv *priv,
				    struct usbhs_irq_state *irq_state)
{}

void usbhs_mod_autonomy_mode(struct usbhs_priv *priv)
{}

void usbhs_mod_non_autonomy_mode(struct usbhs_priv *priv)
{}

/*
 *		host / gadget functions
 *
 * renesas_usbhs host/gadget can register itself by below functions.
 * these functions are called when probe
 *
 */
void usbhs_mod_register(struct usbhs_priv *priv, struct usbhs_mod *mod, int id)
{}

struct usbhs_mod *usbhs_mod_get(struct usbhs_priv *priv, int id)
{}

int usbhs_mod_is_host(struct usbhs_priv *priv)
{}

struct usbhs_mod *usbhs_mod_get_current(struct usbhs_priv *priv)
{}

int usbhs_mod_change(struct usbhs_priv *priv, int id)
{}

static irqreturn_t usbhs_interrupt(int irq, void *data);
int usbhs_mod_probe(struct usbhs_priv *priv)
{}

void usbhs_mod_remove(struct usbhs_priv *priv)
{}

/*
 *		status functions
 */
int usbhs_status_get_device_state(struct usbhs_irq_state *irq_state)
{}

int usbhs_status_get_ctrl_stage(struct usbhs_irq_state *irq_state)
{}

static int usbhs_status_get_each_irq(struct usbhs_priv *priv,
				     struct usbhs_irq_state *state)
{}

/*
 *		interrupt
 */
#define INTSTS0_MAGIC
#define INTSTS1_MAGIC
static irqreturn_t usbhs_interrupt(int irq, void *data)
{}

void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod)
{}