XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Enumerations
otg.h File Reference
#include <linux/kernel.h>
Include dependency graph for otg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  usb_otg_caps
 
struct  usb_otg
 

Macros

#define OTG_VERSION_1_3   0x0130
 
#define OTG_VERSION_2_0   0x0200
 

Enumerations

enum  usb_dr_mode { USB_DR_MODE_UNKNOWN , USB_DR_MODE_HOST , USB_DR_MODE_PERIPHERAL , USB_DR_MODE_OTG }
 
enum  usb_otg_state {
  OTG_STATE_UNDEFINED = 0 , OTG_STATE_B_IDLE , OTG_STATE_B_SRP_INIT , OTG_STATE_B_PERIPHERAL ,
  OTG_STATE_B_WAIT_ACON , OTG_STATE_B_HOST , OTG_STATE_A_IDLE , OTG_STATE_A_WAIT_VRISE ,
  OTG_STATE_A_WAIT_BCON , OTG_STATE_A_HOST , OTG_STATE_A_SUSPEND , OTG_STATE_A_PERIPHERAL ,
  OTG_STATE_A_WAIT_VFAIL , OTG_STATE_A_VBUS_ERR
}
 

Macro Definition Documentation

◆ OTG_VERSION_1_3

#define OTG_VERSION_1_3   0x0130

◆ OTG_VERSION_2_0

#define OTG_VERSION_2_0   0x0200

Enumeration Type Documentation

◆ usb_dr_mode

Enumerator
USB_DR_MODE_UNKNOWN 
USB_DR_MODE_HOST 
USB_DR_MODE_PERIPHERAL 
USB_DR_MODE_OTG 

◆ usb_otg_state

Enumerator
OTG_STATE_UNDEFINED 
OTG_STATE_B_IDLE 
OTG_STATE_B_SRP_INIT 
OTG_STATE_B_PERIPHERAL 
OTG_STATE_B_WAIT_ACON 
OTG_STATE_B_HOST 
OTG_STATE_A_IDLE 
OTG_STATE_A_WAIT_VRISE 
OTG_STATE_A_WAIT_BCON 
OTG_STATE_A_HOST 
OTG_STATE_A_SUSPEND 
OTG_STATE_A_PERIPHERAL 
OTG_STATE_A_WAIT_VFAIL 
OTG_STATE_A_VBUS_ERR