Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
wavefront_synth.c File Reference
#include <asm/io.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/firmware.h>
#include <linux/moduleparam.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/snd_wavefront.h>
#include <sound/initval.h>

Go to the source code of this file.

Data Structures

struct  wavefront_command
 

Macros

#define DEFAULT_OSPATH   "wavefront.os"
 
#define WF_DEBUG   1
 
#define DPRINT(cond,...)
 
#define LOGNAME   "WaveFront: "
 
#define STAT_RINTR_ENABLED   0x01
 
#define STAT_CAN_READ   0x02
 
#define STAT_INTR_READ   0x04
 
#define STAT_WINTR_ENABLED   0x10
 
#define STAT_CAN_WRITE   0x20
 
#define STAT_INTR_WRITE   0x40
 
#define NEEDS_ACK   1
 

Functions

 module_param (wf_raw, int, 0444)
 
 MODULE_PARM_DESC (wf_raw,"if non-zero, assume that we need to boot the OS")
 
 module_param (fx_raw, int, 0444)
 
 MODULE_PARM_DESC (fx_raw,"if non-zero, assume that the FX process needs help")
 
 module_param (debug_default, int, 0444)
 
 MODULE_PARM_DESC (debug_default,"debug parameters for card initialization")
 
 module_param (wait_usecs, int, 0444)
 
 MODULE_PARM_DESC (wait_usecs,"how long to wait without sleeping, usecs")
 
 module_param (sleep_interval, int, 0444)
 
 MODULE_PARM_DESC (sleep_interval,"how long to sleep when waiting for reply")
 
 module_param (sleep_tries, int, 0444)
 
 MODULE_PARM_DESC (sleep_tries,"how many times to try sleeping during a wait")
 
 module_param (ospath, charp, 0444)
 
 MODULE_PARM_DESC (ospath,"pathname to processed ICS2115 OS firmware")
 
 module_param (reset_time, int, 0444)
 
 MODULE_PARM_DESC (reset_time,"how long to wait for a reset to take effect")
 
 module_param (ramcheck_time, int, 0444)
 
 MODULE_PARM_DESC (ramcheck_time,"how many seconds to wait for the RAM test")
 
 module_param (osrun_time, int, 0444)
 
 MODULE_PARM_DESC (osrun_time,"how many seconds to wait for the ICS2115 OS")
 
int snd_wavefront_cmd (snd_wavefront_t *dev, int cmd, unsigned char *rbuf, unsigned char *wbuf)
 
int snd_wavefront_synth_open (struct snd_hwdep *hw, struct file *file)
 
int snd_wavefront_synth_release (struct snd_hwdep *hw, struct file *file)
 
int snd_wavefront_synth_ioctl (struct snd_hwdep *hw, struct file *file, unsigned int cmd, unsigned long arg)
 
void snd_wavefront_internal_interrupt (snd_wavefront_card_t *card)
 
int __devinit snd_wavefront_start (snd_wavefront_t *dev)
 
int __devinit snd_wavefront_detect (snd_wavefront_card_t *card)
 
 MODULE_FIRMWARE (DEFAULT_OSPATH)
 

Macro Definition Documentation

#define DEFAULT_OSPATH   "wavefront.os"

Definition at line 58 of file wavefront_synth.c.

#define DPRINT (   cond,
  ... 
)
Value:
if ((dev->debug & (cond)) == (cond)) { \
snd_printk (__VA_ARGS__); \
}

Definition at line 119 of file wavefront_synth.c.

#define LOGNAME   "WaveFront: "

Definition at line 127 of file wavefront_synth.c.

#define NEEDS_ACK   1

Definition at line 165 of file wavefront_synth.c.

#define STAT_CAN_READ   0x02

Definition at line 132 of file wavefront_synth.c.

#define STAT_CAN_WRITE   0x20

Definition at line 135 of file wavefront_synth.c.

#define STAT_INTR_READ   0x04

Definition at line 133 of file wavefront_synth.c.

#define STAT_INTR_WRITE   0x40

Definition at line 136 of file wavefront_synth.c.

#define STAT_RINTR_ENABLED   0x01

Definition at line 131 of file wavefront_synth.c.

#define STAT_WINTR_ENABLED   0x10

Definition at line 134 of file wavefront_synth.c.

#define WF_DEBUG   1

Definition at line 115 of file wavefront_synth.c.

Function Documentation

MODULE_FIRMWARE ( DEFAULT_OSPATH  )
module_param ( wf_raw  ,
int  ,
0444   
)
module_param ( fx_raw  ,
int  ,
0444   
)
module_param ( debug_default  ,
int  ,
0444   
)
module_param ( wait_usecs  ,
int  ,
0444   
)
module_param ( sleep_interval  ,
int  ,
0444   
)
module_param ( sleep_tries  ,
int  ,
0444   
)
module_param ( ospath  ,
charp  ,
0444   
)
module_param ( reset_time  ,
int  ,
0444   
)
module_param ( ramcheck_time  ,
int  ,
0444   
)
module_param ( osrun_time  ,
int  ,
0444   
)
MODULE_PARM_DESC ( wf_raw  ,
"if non-  zero,
assume that we need to boot the OS  
)
MODULE_PARM_DESC ( fx_raw  ,
"if non-  zero,
assume that the FX process needs help"   
)
MODULE_PARM_DESC ( debug_default  ,
"debug parameters for card initialization"   
)
MODULE_PARM_DESC ( wait_usecs  ,
"how long to wait without  sleeping,
usecs  
)
MODULE_PARM_DESC ( sleep_interval  ,
"how long to sleep when waiting for reply"   
)
MODULE_PARM_DESC ( sleep_tries  ,
"how many times to try sleeping during a wait  
)
MODULE_PARM_DESC ( ospath  ,
"pathname to processed ICS2115 OS firmware  
)
MODULE_PARM_DESC ( reset_time  ,
"how long to wait for a reset to take effect"   
)
MODULE_PARM_DESC ( ramcheck_time  ,
"how many seconds to wait for the RAM test  
)
MODULE_PARM_DESC ( osrun_time  ,
"how many seconds to wait for the ICS2115 OS  
)
int snd_wavefront_cmd ( snd_wavefront_t dev,
int  cmd,
unsigned char rbuf,
unsigned char wbuf 
)

Definition at line 335 of file wavefront_synth.c.

int __devinit snd_wavefront_detect ( snd_wavefront_card_t card)

Definition at line 2145 of file wavefront_synth.c.

void snd_wavefront_internal_interrupt ( snd_wavefront_card_t card)

Definition at line 1695 of file wavefront_synth.c.

int __devinit snd_wavefront_start ( snd_wavefront_t dev)

Definition at line 2103 of file wavefront_synth.c.

int snd_wavefront_synth_ioctl ( struct snd_hwdep hw,
struct file file,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 1640 of file wavefront_synth.c.

int snd_wavefront_synth_open ( struct snd_hwdep hw,
struct file file 
)

Definition at line 1622 of file wavefront_synth.c.

int snd_wavefront_synth_release ( struct snd_hwdep hw,
struct file file 
)

Definition at line 1632 of file wavefront_synth.c.

Variable Documentation

int errno

Definition at line 150 of file wavefront_synth.c.

const char* errstr

Definition at line 151 of file wavefront_synth.c.