spk_priv.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22. */
  23. #ifndef _SPEAKUP_PRIVATE_H
  24. #define _SPEAKUP_PRIVATE_H
  25. #include "spk_types.h"
  26. #include "spk_priv_keyinfo.h"
  27. #ifndef pr_warn
  28. #define pr_warn(fmt, arg...) printk(KERN_WARNING fmt, ##arg)
  29. #endif
  30. #define V_LAST_VAR { MAXVARS }
  31. #define SPACE 0x20
  32. #define SYNTH_CHECK 20030716 /* today's date ought to do for check value */
  33. /* synth flags, for odd synths */
  34. #define SF_DEC 1 /* to fiddle puncs in alpha strings so it doesn't spell */
  35. #ifdef MODULE
  36. #define SYNTH_START 1
  37. #else
  38. #define SYNTH_START 0
  39. #endif
  40. #define KT_SPKUP 15
  41. const struct old_serial_port *spk_serial_init(int index);
  42. void spk_stop_serial_interrupt(void);
  43. int spk_wait_for_xmitr(void);
  44. unsigned char spk_serial_in(void);
  45. unsigned char spk_serial_in_nowait(void);
  46. int spk_serial_out(const char ch);
  47. void spk_serial_release(void);
  48. char synth_buffer_getc(void);
  49. char synth_buffer_peek(void);
  50. int synth_buffer_empty(void);
  51. struct var_t *spk_get_var(enum var_id_t var_id);
  52. ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr,
  53. char *buf);
  54. ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr,
  55. const char *buf, size_t count);
  56. int spk_serial_synth_probe(struct spk_synth *synth);
  57. const char *spk_synth_immediate(struct spk_synth *synth, const char *buff);
  58. void spk_do_catch_up(struct spk_synth *synth);
  59. void spk_synth_flush(struct spk_synth *synth);
  60. int spk_synth_is_alive_nop(struct spk_synth *synth);
  61. int spk_synth_is_alive_restart(struct spk_synth *synth);
  62. void synth_printf(const char *buf, ...);
  63. int synth_request_region(u_long, u_long);
  64. int synth_release_region(u_long, u_long);
  65. int synth_add(struct spk_synth *in_synth);
  66. void synth_remove(struct spk_synth *in_synth);
  67. extern struct speakup_info_t speakup_info;
  68. extern struct var_t synth_time_vars[];
  69. #endif