William Hubbs | c6e3fd2 | 2010-10-07 13:20:02 -0500 | [diff] [blame] | 1 | /* spk_priv.h |
| 2 | review functions for the speakup screen review package. |
| 3 | originally written by: Kirk Reiser and Andy Berdan. |
| 4 | |
| 5 | extensively modified by David Borowski. |
| 6 | |
| 7 | Copyright (C) 1998 Kirk Reiser. |
| 8 | Copyright (C) 2003 David Borowski. |
| 9 | |
| 10 | This program is free software; you can redistribute it and/or modify |
| 11 | it under the terms of the GNU General Public License as published by |
| 12 | the Free Software Foundation; either version 2 of the License, or |
| 13 | (at your option) any later version. |
| 14 | |
| 15 | This program is distributed in the hope that it will be useful, |
| 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | GNU General Public License for more details. |
| 19 | |
| 20 | You should have received a copy of the GNU General Public License |
| 21 | along with this program; if not, write to the Free Software |
| 22 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 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 /* today's date ought to do for check value */ |
| 37 | /* synth flags, for odd synths */ |
| 38 | #define SF_DEC 1 /* to fiddle puncs in alpha strings so it doesn't spell */ |
| 39 | #ifdef MODULE |
| 40 | #define SYNTH_START 1 |
| 41 | #else |
| 42 | #define SYNTH_START 0 |
| 43 | #endif |
| 44 | |
| 45 | #define KT_SPKUP 15 |
| 46 | |
Katie Dunne | 13d932f | 2015-02-26 18:42:36 -0800 | [diff] [blame] | 47 | const struct old_serial_port *spk_serial_init(int index); |
| 48 | void spk_stop_serial_interrupt(void); |
| 49 | int spk_wait_for_xmitr(void); |
| 50 | unsigned char spk_serial_in(void); |
| 51 | unsigned char spk_serial_in_nowait(void); |
| 52 | int spk_serial_out(const char ch); |
| 53 | void spk_serial_release(void); |
William Hubbs | c6e3fd2 | 2010-10-07 13:20:02 -0500 | [diff] [blame] | 54 | |
Katie Dunne | 13d932f | 2015-02-26 18:42:36 -0800 | [diff] [blame] | 55 | char synth_buffer_getc(void); |
| 56 | char synth_buffer_peek(void); |
| 57 | int synth_buffer_empty(void); |
| 58 | struct var_t *spk_get_var(enum var_id_t var_id); |
| 59 | ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr, |
| 60 | char *buf); |
| 61 | ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr, |
| 62 | const char *buf, size_t count); |
William Hubbs | c6e3fd2 | 2010-10-07 13:20:02 -0500 | [diff] [blame] | 63 | |
Katie Dunne | 13d932f | 2015-02-26 18:42:36 -0800 | [diff] [blame] | 64 | int spk_serial_synth_probe(struct spk_synth *synth); |
| 65 | const char *spk_synth_immediate(struct spk_synth *synth, const char *buff); |
| 66 | void spk_do_catch_up(struct spk_synth *synth); |
| 67 | void spk_synth_flush(struct spk_synth *synth); |
| 68 | int spk_synth_is_alive_nop(struct spk_synth *synth); |
| 69 | int spk_synth_is_alive_restart(struct spk_synth *synth); |
| 70 | void synth_printf(const char *buf, ...); |
| 71 | int synth_request_region(u_long, u_long); |
| 72 | int synth_release_region(u_long, u_long); |
| 73 | int synth_add(struct spk_synth *in_synth); |
| 74 | void synth_remove(struct spk_synth *in_synth); |
William Hubbs | c6e3fd2 | 2010-10-07 13:20:02 -0500 | [diff] [blame] | 75 | |
| 76 | extern struct speakup_info_t speakup_info; |
| 77 | |
| 78 | extern struct var_t synth_time_vars[]; |
| 79 | |
William Hubbs | c6e3fd2 | 2010-10-07 13:20:02 -0500 | [diff] [blame] | 80 | #endif |