Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
phy.h File Reference
#include <linux/notifier.h>

Go to the source code of this file.

Data Structures

struct  usb_phy_io_ops
 
struct  usb_phy
 

Enumerations

enum  usb_phy_events {
  USB_EVENT_NONE, USB_EVENT_VBUS, USB_EVENT_ID, USB_EVENT_CHARGER,
  USB_EVENT_ENUMERATED
}
 
enum  usb_phy_type { USB_PHY_TYPE_UNDEFINED, USB_PHY_TYPE_USB2, USB_PHY_TYPE_USB3 }
 
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_VFALL, OTG_STATE_A_VBUS_ERR
}
 

Functions

int usb_add_phy (struct usb_phy *, enum usb_phy_type type)
 
void usb_remove_phy (struct usb_phy *)
 

Enumeration Type Documentation

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_VFALL 
OTG_STATE_A_VBUS_ERR 

Definition at line 30 of file phy.h.

Enumerator:
USB_EVENT_NONE 
USB_EVENT_VBUS 
USB_EVENT_ID 
USB_EVENT_CHARGER 
USB_EVENT_ENUMERATED 

Definition at line 14 of file phy.h.

Enumerator:
USB_PHY_TYPE_UNDEFINED 
USB_PHY_TYPE_USB2 
USB_PHY_TYPE_USB3 

Definition at line 23 of file phy.h.

Function Documentation

int usb_add_phy ( struct usb_phy x,
enum usb_phy_type  type 
)

usb_add_phy - declare the USB PHY : the USB phy to be used; or NULL - the type of this PHY

This call is exclusively for use by phy drivers, which coordinate the activities of drivers for host and peripheral controllers, and in some cases for VBUS current regulation.

Definition at line 156 of file otg.c.

void usb_remove_phy ( struct usb_phy x)

usb_remove_phy - remove the OTG PHY : the USB OTG PHY to be removed;

This reverts the effects of usb_add_phy

Definition at line 193 of file otg.c.