Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
synth.c File Reference
#include <linux/types.h>
#include <linux/ctype.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/kmod.h>
#include <linux/jiffies.h>
#include <linux/uaccess.h>
#include <linux/sched.h>
#include <linux/timer.h>
#include <linux/kthread.h>
#include "spk_priv.h"
#include "speakup.h"
#include "serialio.h"

Go to the source code of this file.

Macros

#define MAXSYNTHS   16 /* Max number of synths in array. */
 

Functions

 EXPORT_SYMBOL_GPL (speakup_info)
 
int serial_synth_probe (struct spk_synth *synth)
 
 EXPORT_SYMBOL_GPL (serial_synth_probe)
 
void spk_do_catch_up (struct spk_synth *synth)
 
 EXPORT_SYMBOL_GPL (spk_do_catch_up)
 
const charspk_synth_immediate (struct spk_synth *synth, const char *buff)
 
 EXPORT_SYMBOL_GPL (spk_synth_immediate)
 
void spk_synth_flush (struct spk_synth *synth)
 
 EXPORT_SYMBOL_GPL (spk_synth_flush)
 
int spk_synth_is_alive_nop (struct spk_synth *synth)
 
 EXPORT_SYMBOL_GPL (spk_synth_is_alive_nop)
 
int spk_synth_is_alive_restart (struct spk_synth *synth)
 
 EXPORT_SYMBOL_GPL (spk_synth_is_alive_restart)
 
void synth_start (void)
 
void do_flush (void)
 
void synth_write (const char *buf, size_t count)
 
void synth_printf (const char *fmt,...)
 
 EXPORT_SYMBOL_GPL (synth_printf)
 
void reset_index_count (int sc)
 
int synth_supports_indexing (void)
 
void synth_insert_next_index (int sent_num)
 
void get_index_count (int *linecount, int *sentcount)
 
int synth_request_region (unsigned long start, unsigned long n)
 
 EXPORT_SYMBOL_GPL (synth_request_region)
 
int synth_release_region (unsigned long start, unsigned long n)
 
 EXPORT_SYMBOL_GPL (synth_release_region)
 
int synth_init (char *synth_name)
 
void synth_release (void)
 
int synth_add (struct spk_synth *in_synth)
 
 EXPORT_SYMBOL_GPL (synth_add)
 
void synth_remove (struct spk_synth *in_synth)
 
 EXPORT_SYMBOL_GPL (synth_remove)
 

Variables

struct spk_synthsynth
 
char pitch_buff [32] = ""
 
bool quiet_boot
 
struct speakup_info_t speakup_info
 
struct var_t synth_time_vars []
 
short punc_masks [] = { 0, SOME, MOST, PUNC, PUNC|B_SYM }
 

Macro Definition Documentation

#define MAXSYNTHS   16 /* Max number of synths in array. */

Definition at line 20 of file synth.c.

Function Documentation

void do_flush ( void  )

Definition at line 201 of file synth.c.

EXPORT_SYMBOL_GPL ( speakup_info  )
EXPORT_SYMBOL_GPL ( serial_synth_probe  )
EXPORT_SYMBOL_GPL ( spk_do_catch_up  )
EXPORT_SYMBOL_GPL ( spk_synth_immediate  )
EXPORT_SYMBOL_GPL ( spk_synth_flush  )
EXPORT_SYMBOL_GPL ( spk_synth_is_alive_nop  )
EXPORT_SYMBOL_GPL ( spk_synth_is_alive_restart  )
EXPORT_SYMBOL_GPL ( synth_printf  )
EXPORT_SYMBOL_GPL ( synth_request_region  )
EXPORT_SYMBOL_GPL ( synth_release_region  )
EXPORT_SYMBOL_GPL ( synth_add  )
EXPORT_SYMBOL_GPL ( synth_remove  )
void get_index_count ( int linecount,
int sentcount 
)

Definition at line 280 of file synth.c.

void reset_index_count ( int  sc)

Definition at line 244 of file synth.c.

int serial_synth_probe ( struct spk_synth synth)

Definition at line 35 of file synth.c.

void spk_do_catch_up ( struct spk_synth synth)

Definition at line 70 of file synth.c.

void spk_synth_flush ( struct spk_synth synth)

Definition at line 152 of file synth.c.

const char* spk_synth_immediate ( struct spk_synth synth,
const char buff 
)

Definition at line 136 of file synth.c.

int spk_synth_is_alive_nop ( struct spk_synth synth)

Definition at line 158 of file synth.c.

int spk_synth_is_alive_restart ( struct spk_synth synth)

Definition at line 165 of file synth.c.

int synth_add ( struct spk_synth in_synth)

Definition at line 421 of file synth.c.

int synth_init ( char synth_name)

Definition at line 327 of file synth.c.

void synth_insert_next_index ( int  sent_num)

Definition at line 262 of file synth.c.

void synth_printf ( const char fmt,
  ... 
)

Definition at line 222 of file synth.c.

void synth_release ( void  )

Definition at line 399 of file synth.c.

int synth_release_region ( unsigned long  start,
unsigned long  n 
)

Definition at line 312 of file synth.c.

void synth_remove ( struct spk_synth in_synth)

Definition at line 446 of file synth.c.

int synth_request_region ( unsigned long  start,
unsigned long  n 
)

Definition at line 300 of file synth.c.

void synth_start ( void  )

Definition at line 187 of file synth.c.

int synth_supports_indexing ( void  )

Definition at line 255 of file synth.c.

void synth_write ( const char buf,
size_t  count 
)

Definition at line 215 of file synth.c.

Variable Documentation

char pitch_buff[32] = ""

Definition at line 23 of file synth.c.

short punc_masks[] = { 0, SOME, MOST, PUNC, PUNC|B_SYM }

Definition at line 463 of file synth.c.

bool quiet_boot

Definition at line 25 of file synth.c.

struct speakup_info_t speakup_info
Initial value:
= {
.spinlock = __SPIN_LOCK_UNLOCKED(speakup_info.spinlock),
.flushing = 0,
}

Definition at line 27 of file synth.c.

struct spk_synth* synth

Definition at line 22 of file synth.c.

struct var_t synth_time_vars[]
Initial value:
= {
{ DELAY, .u.n = {NULL, 100, 100, 2000, 0, 0, NULL } },
{ TRIGGER, .u.n = {NULL, 20, 10, 2000, 0, 0, NULL } },
{ JIFFY, .u.n = {NULL, 50, 20, 200, 0, 0, NULL } },
{ FULL, .u.n = {NULL, 400, 200, 60000, 0, 0, NULL } },
}

Definition at line 318 of file synth.c.