linux/drivers/usb/common/usb-otg-fsm.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * OTG Finite State Machine from OTG spec
 *
 * Copyright (C) 2007,2008 Freescale Semiconductor, Inc.
 *
 * Author:	Li Yang <[email protected]>
 *		Jerry Huang <[email protected]>
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/mutex.h>
#include <linux/delay.h>
#include <linux/usb.h>
#include <linux/usb/gadget.h>
#include <linux/usb/otg.h>
#include <linux/usb/otg-fsm.h>

#ifdef VERBOSE
#define VDBG
#else
#define VDBG(stuff...)
#endif

/* Change USB protocol when there is a protocol change */
static int otg_set_protocol(struct otg_fsm *fsm, int protocol)
{}

/* Called when leaving a state.  Do state clean up jobs here */
static void otg_leave_state(struct otg_fsm *fsm, enum usb_otg_state old_state)
{}

static void otg_hnp_polling_work(struct work_struct *work)
{}

static void otg_start_hnp_polling(struct otg_fsm *fsm)
{}

/* Called when entering a state */
static int otg_set_state(struct otg_fsm *fsm, enum usb_otg_state new_state)
{}

/* State change judgement */
int otg_statemachine(struct otg_fsm *fsm)
{}
EXPORT_SYMBOL_GPL();
MODULE_DESCRIPTION();
MODULE_LICENSE();