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

Go to the source code of this file.

Macros

#define usbhs_priv_to_modinfo(priv)   (&priv->mod_info)
 
#define usbhs_mod_info_call(priv, func, param...)
 
#define INTSTS0_MAGIC   0xF800 /* acknowledge magical interrupt sources */
 
#define INTSTS1_MAGIC   0xA870 /* acknowledge magical interrupt sources */
 

Functions

void usbhs_mod_autonomy_mode (struct usbhs_priv *priv)
 
void usbhs_mod_register (struct usbhs_priv *priv, struct usbhs_mod *mod, int id)
 
struct usbhs_modusbhs_mod_get (struct usbhs_priv *priv, int id)
 
int usbhs_mod_is_host (struct usbhs_priv *priv)
 
struct usbhs_modusbhs_mod_get_current (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)
 
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 INTSTS0_MAGIC   0xF800 /* acknowledge magical interrupt sources */

Definition at line 252 of file mod.c.

#define INTSTS1_MAGIC   0xA870 /* acknowledge magical interrupt sources */

Definition at line 253 of file mod.c.

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

Definition at line 23 of file mod.c.

#define usbhs_priv_to_modinfo (   priv)    (&priv->mod_info)

Definition at line 22 of file mod.c.

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 mod,
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.