Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
hw.c File Reference
#include <linux/kernel.h>
#include <linux/dma-mapping.h>
#include <linux/uwb/umc.h>
#include "../../wusbcore/wusbhc.h"
#include "whcd.h"

Go to the source code of this file.

Functions

void whc_write_wusbcmd (struct whc *whc, u32 mask, u32 val)
 
int whc_do_gencmd (struct whc *whc, u32 cmd, u32 params, void *addr, size_t len)
 
void whc_hw_error (struct whc *whc, const char *reason)
 

Function Documentation

int whc_do_gencmd ( struct whc whc,
u32  cmd,
u32  params,
void addr,
size_t  len 
)

whc_do_gencmd - start a generic command via the WUSBGENCMDSTS register : the WHCI HC : command to start. : parameters for the command (the WUSBGENCMDPARAMS register value). : pointer to any data for the command (may be NULL). : length of the data (if any).

Definition at line 48 of file hw.c.

void whc_hw_error ( struct whc whc,
const char reason 
)

whc_hw_error - recover from a hardware error : the WHCI HC that broke. : a description of the failure.

Recover from broken hardware with a full reset.

Definition at line 98 of file hw.c.

void whc_write_wusbcmd ( struct whc whc,
u32  mask,
u32  val 
)

Definition at line 26 of file hw.c.