1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20#ifndef _SPEAKUP_PRIVATE_H
21#define _SPEAKUP_PRIVATE_H
22
23#include "spk_types.h"
24#include "spk_priv_keyinfo.h"
25
26#ifndef pr_warn
27#define pr_warn(fmt, arg...) printk(KERN_WARNING fmt, ##arg)
28#endif
29
30#define V_LAST_VAR { MAXVARS }
31#define SPACE 0x20
32#define SYNTH_CHECK 20030716
33
34#define SF_DEC 1
35#ifdef MODULE
36#define SYNTH_START 1
37#else
38#define SYNTH_START 0
39#endif
40
41#define KT_SPKUP 15
42
43const struct old_serial_port *spk_serial_init(int index);
44void spk_stop_serial_interrupt(void);
45int spk_wait_for_xmitr(void);
46unsigned char spk_serial_in(void);
47unsigned char spk_serial_in_nowait(void);
48int spk_serial_out(const char ch);
49void spk_serial_release(void);
50
51char synth_buffer_getc(void);
52char synth_buffer_peek(void);
53int synth_buffer_empty(void);
54struct var_t *spk_get_var(enum var_id_t var_id);
55ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr,
56 char *buf);
57ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr,
58 const char *buf, size_t count);
59
60int spk_serial_synth_probe(struct spk_synth *synth);
61const char *spk_synth_immediate(struct spk_synth *synth, const char *buff);
62void spk_do_catch_up(struct spk_synth *synth);
63void spk_synth_flush(struct spk_synth *synth);
64int spk_synth_is_alive_nop(struct spk_synth *synth);
65int spk_synth_is_alive_restart(struct spk_synth *synth);
66void synth_printf(const char *buf, ...);
67int synth_request_region(u_long, u_long);
68int synth_release_region(u_long, u_long);
69int synth_add(struct spk_synth *in_synth);
70void synth_remove(struct spk_synth *in_synth);
71
72extern struct speakup_info_t speakup_info;
73
74extern struct var_t synth_time_vars[];
75
76#endif
77