Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mod.h File Reference
#include <linux/spinlock.h>
#include <linux/usb/renesas_usbhs.h>
#include "common.h"

Go to the source code of this file.

Data Structures

struct  usbhs_irq_state
 
struct  usbhs_mod
 
struct  usbhs_mod_info
 

Macros

#define usbhs_mod_call(priv, func, param...)
 

Functions

struct usbhs_modusbhs_mod_get (struct usbhs_priv *priv, int id)
 
struct usbhs_modusbhs_mod_get_current (struct usbhs_priv *priv)
 
void usbhs_mod_register (struct usbhs_priv *priv, struct usbhs_mod *usb, int id)
 
int usbhs_mod_is_host (struct usbhs_priv *priv)
 
int usbhs_mod_change (struct usbhs_priv *priv, int id)
 
int usbhs_mod_probe (struct usbhs_priv *priv)
 
void usbhs_mod_remove (struct usbhs_priv *priv)
 
void usbhs_mod_autonomy_mode (struct usbhs_priv *priv)
 
int usbhs_status_get_device_state (struct usbhs_irq_state *irq_state)
 
int usbhs_status_get_ctrl_stage (struct usbhs_irq_state *irq_state)
 
void usbhs_irq_callback_update (struct usbhs_priv *priv, struct usbhs_mod *mod)
 

Macro Definition Documentation

#define usbhs_mod_call (   priv,
  func,
  param... 
)
Value:
({ \
!mod ? -ENODEV : \
!mod->func ? 0 : \
mod->func(param); \
})

Definition at line 132 of file mod.h.

Function Documentation

void usbhs_irq_callback_update ( struct usbhs_priv priv,
struct usbhs_mod mod 
)

Definition at line 318 of file mod.c.

void usbhs_mod_autonomy_mode ( struct usbhs_priv priv)

Definition at line 58 of file mod.c.

int usbhs_mod_change ( struct usbhs_priv priv,
int  id 
)

Definition at line 116 of file mod.c.

struct usbhs_mod* usbhs_mod_get ( struct usbhs_priv priv,
int  id 
)
read

Definition at line 83 of file mod.c.

struct usbhs_mod* usbhs_mod_get_current ( struct usbhs_priv priv)
read

Definition at line 109 of file mod.c.

int usbhs_mod_is_host ( struct usbhs_priv priv)

Definition at line 98 of file mod.c.

int usbhs_mod_probe ( struct usbhs_priv priv)

Definition at line 137 of file mod.c.

void usbhs_mod_register ( struct usbhs_priv priv,
struct usbhs_mod usb,
int  id 
)

Definition at line 75 of file mod.c.

void usbhs_mod_remove ( struct usbhs_priv priv)

Definition at line 171 of file mod.c.

int usbhs_status_get_ctrl_stage ( struct usbhs_irq_state irq_state)

Definition at line 196 of file mod.c.

int usbhs_status_get_device_state ( struct usbhs_irq_state irq_state)

Definition at line 181 of file mod.c.