Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
spk_priv.h File Reference
#include "spk_types.h"
#include "spk_priv_keyinfo.h"

Go to the source code of this file.

Macros

#define pr_warn(fmt, arg...)   printk(KERN_WARNING fmt, ##arg)
 
#define V_LAST_VAR   { MAXVARS }
 
#define SPACE   0x20
 
#define SYNTH_CHECK   20030716 /* today's date ought to do for check value */
 
#define SF_DEC   1 /* to fiddle puncs in alpha strings so it doesn't spell */
 
#define SYNTH_START   0
 
#define KT_SPKUP   15
 
#define spk_lock(flags)   spin_lock_irqsave(&speakup_info.spinlock, flags)
 
#define spk_trylock(flags)   spin_trylock_irqsave(&speakup_info.spinlock, flags)
 
#define spk_unlock(flags)   spin_unlock_irqrestore(&speakup_info.spinlock, flags)
 

Functions

struct old_serial_portspk_serial_init (int index)
 
void stop_serial_interrupt (void)
 
int wait_for_xmitr (void)
 
unsigned char spk_serial_in (void)
 
unsigned char spk_serial_in_nowait (void)
 
int spk_serial_out (const char ch)
 
void spk_serial_release (void)
 
char synth_buffer_getc (void)
 
char synth_buffer_peek (void)
 
int synth_buffer_empty (void)
 
struct var_tget_var (enum var_id_t var_id)
 
ssize_t spk_var_show (struct kobject *kobj, struct kobj_attribute *attr, char *buf)
 
ssize_t spk_var_store (struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count)
 
int serial_synth_probe (struct spk_synth *synth)
 
const charspk_synth_immediate (struct spk_synth *synth, const char *buff)
 
void spk_do_catch_up (struct spk_synth *synth)
 
void spk_synth_flush (struct spk_synth *synth)
 
int spk_synth_is_alive_nop (struct spk_synth *synth)
 
int spk_synth_is_alive_restart (struct spk_synth *synth)
 
void synth_printf (const char *buf,...)
 
int synth_request_region (u_long, u_long)
 
int synth_release_region (u_long, u_long)
 
int synth_add (struct spk_synth *in_synth)
 
void synth_remove (struct spk_synth *in_synth)
 

Variables

struct speakup_info_t speakup_info
 
struct var_t synth_time_vars []
 

Macro Definition Documentation

#define KT_SPKUP   15

Definition at line 45 of file spk_priv.h.

#define pr_warn (   fmt,
  arg... 
)    printk(KERN_WARNING fmt, ##arg)

Definition at line 31 of file spk_priv.h.

#define SF_DEC   1 /* to fiddle puncs in alpha strings so it doesn't spell */

Definition at line 38 of file spk_priv.h.

#define SPACE   0x20

Definition at line 35 of file spk_priv.h.

#define spk_lock (   flags)    spin_lock_irqsave(&speakup_info.spinlock, flags)

Definition at line 89 of file spk_priv.h.

#define spk_trylock (   flags)    spin_trylock_irqsave(&speakup_info.spinlock, flags)

Definition at line 90 of file spk_priv.h.

#define spk_unlock (   flags)    spin_unlock_irqrestore(&speakup_info.spinlock, flags)

Definition at line 91 of file spk_priv.h.

#define SYNTH_CHECK   20030716 /* today's date ought to do for check value */

Definition at line 36 of file spk_priv.h.

#define SYNTH_START   0

Definition at line 42 of file spk_priv.h.

#define V_LAST_VAR   { MAXVARS }

Definition at line 34 of file spk_priv.h.

Function Documentation

struct var_t* get_var ( enum var_id_t  var_id)
read

Definition at line 154 of file varhandlers.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.

unsigned char spk_serial_in ( void  )

Definition at line 170 of file serialio.c.

unsigned char spk_serial_in_nowait ( void  )

Definition at line 185 of file serialio.c.

struct old_serial_port* spk_serial_init ( int  index)
read

Definition at line 17 of file serialio.c.

int spk_serial_out ( const char  ch)

Definition at line 196 of file serialio.c.

void spk_serial_release ( void  )

Definition at line 206 of file serialio.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.

ssize_t spk_var_show ( struct kobject kobj,
struct kobj_attribute attr,
char buf 
)

Definition at line 534 of file kobjects.c.

ssize_t spk_var_store ( struct kobject kobj,
struct kobj_attribute attr,
const char buf,
size_t  count 
)

Definition at line 591 of file kobjects.c.

void stop_serial_interrupt ( void  )

Definition at line 119 of file serialio.c.

int synth_add ( struct spk_synth in_synth)

Definition at line 421 of file synth.c.

int synth_buffer_empty ( void  )

Definition at line 56 of file buffers.c.

char synth_buffer_getc ( void  )

Definition at line 80 of file buffers.c.

char synth_buffer_peek ( void  )

Definition at line 93 of file buffers.c.

void synth_printf ( const char buf,
  ... 
)

Definition at line 222 of file synth.c.

int synth_release_region ( u_long  ,
u_long   
)

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 ( u_long  ,
u_long   
)

Definition at line 300 of file synth.c.

int wait_for_xmitr ( void  )

Definition at line 133 of file serialio.c.

Variable Documentation

struct speakup_info_t speakup_info

Definition at line 27 of file synth.c.

struct var_t synth_time_vars[]

Definition at line 318 of file synth.c.