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