HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: //lib/modules/3.10.0-1160.49.1.el7.x86_64/source/include/linux/usb/dwc3-omap.h
/*
 * Copyright (C) 2013 by Texas Instruments
 *
 * The Inventra Controller Driver for Linux is free software; you
 * can redistribute it and/or modify it under the terms of the GNU
 * General Public License version 2 as published by the Free Software
 * Foundation.
 */

#ifndef __DWC3_OMAP_H__
#define __DWC3_OMAP_H__

enum omap_dwc3_vbus_id_status {
	OMAP_DWC3_UNKNOWN = 0,
	OMAP_DWC3_ID_GROUND,
	OMAP_DWC3_ID_FLOAT,
	OMAP_DWC3_VBUS_VALID,
	OMAP_DWC3_VBUS_OFF,
};

#if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE))
extern int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status);
#else
static inline int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status)
{
	return -ENODEV;
}
#endif

#endif	/* __DWC3_OMAP_H__ */