Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

dwc_otg_adp.h File Reference

This file contains the Attach Detect Protocol interfaces and defines (functions) and structures for Linux. More...

Go to the source code of this file.

Data Structures

struct  dwc_otg_adp

Defines

#define DWC_OTG_ADP_UNATTACHED   0
#define DWC_OTG_ADP_ATTACHED   1
#define DWC_OTG_ADP_UNKOWN   2

Typedefs

typedef dwc_otg_adp dwc_otg_adp_t

Functions

void dwc_otg_adp_write_reg (dwc_otg_core_if_t *core_if, uint32_t value)
 Attach Detect Protocol functions.
uint32_t dwc_otg_adp_read_reg (dwc_otg_core_if_t *core_if)
 Function is called to read ADP registers.
uint32_t dwc_otg_adp_probe_start (dwc_otg_core_if_t *core_if)
 Starts the ADP Probing.
uint32_t dwc_otg_adp_sense_start (dwc_otg_core_if_t *core_if)
 Starts the ADP Sense.
uint32_t dwc_otg_adp_probe_stop (dwc_otg_core_if_t *core_if)
 Stops the ADP Probing.
uint32_t dwc_otg_adp_sense_stop (dwc_otg_core_if_t *core_if)
 Stops the ADP Sensing.
void dwc_otg_adp_start (dwc_otg_core_if_t *core_if, uint8_t is_host)
 Called right after driver is loaded to perform initial actions for ADP.
void dwc_otg_adp_init (dwc_otg_core_if_t *core_if)
void dwc_otg_adp_remove (dwc_otg_core_if_t *core_if)
int32_t dwc_otg_adp_handle_intr (dwc_otg_core_if_t *core_if)
 ADP Interrupt handler.
int32_t dwc_otg_adp_handle_srp_intr (dwc_otg_core_if_t *core_if)


Detailed Description

This file contains the Attach Detect Protocol interfaces and defines (functions) and structures for Linux.

Definition in file dwc_otg_adp.h.


Function Documentation

uint32_t dwc_otg_adp_probe_start dwc_otg_core_if_t core_if  ) 
 

Starts the ADP Probing.

Parameters:
core_if the pointer to core_if structure.

Definition at line 296 of file dwc_otg_adp.c.

uint32_t dwc_otg_adp_sense_start dwc_otg_core_if_t core_if  ) 
 

Starts the ADP Sense.

Parameters:
core_if the pointer to core_if strucure.

Definition at line 357 of file dwc_otg_adp.c.

uint32_t dwc_otg_adp_probe_stop dwc_otg_core_if_t core_if  ) 
 

Stops the ADP Probing.

Parameters:
core_if the pointer to core_if strucure.

Definition at line 393 of file dwc_otg_adp.c.

uint32_t dwc_otg_adp_sense_stop dwc_otg_core_if_t core_if  ) 
 

Stops the ADP Sensing.

Parameters:
core_if the pointer to core_if strucure.

Definition at line 416 of file dwc_otg_adp.c.

void dwc_otg_adp_start dwc_otg_core_if_t core_if,
uint8_t  is_host
 

Called right after driver is loaded to perform initial actions for ADP.

Parameters:
core_if the pointer to core_if structure.
is_host - flag for current mode of operation either from GINTSTS or GPWRDN

Definition at line 458 of file dwc_otg_adp.c.

int32_t dwc_otg_adp_handle_srp_intr dwc_otg_core_if_t core_if  ) 
 

Parameters:
core_if Programming view of DWC_otg controller.

Definition at line 792 of file dwc_otg_adp.c.


Generated on Thu Oct 27 03:56:38 2011 for DesignWare USB 2.0 OTG Controller (DWC_otg) Device Driver by  doxygen 1.3.9.1