Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0+ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /* spk_priv.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * review functions for the speakup screen review package.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * originally written by: Kirk Reiser and Andy Berdan.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * extensively modified by David Borowski.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * Copyright (C) 1998  Kirk Reiser.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * Copyright (C) 2003  David Borowski.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef _SPEAKUP_PRIVATE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define _SPEAKUP_PRIVATE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/printk.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include "spk_types.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include "spk_priv_keyinfo.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define V_LAST_VAR { MAXVARS }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define SPACE 0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define SYNTH_CHECK 20030716 /* today's date ought to do for check value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) /* synth flags, for odd synths */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define SF_DEC 1 /* to fiddle puncs in alpha strings so it doesn't spell */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #ifdef MODULE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define SYNTH_START 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define SYNTH_START 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define KT_SPKUP 15
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define SPK_SYNTH_TIMEOUT 100000 /* in micro-seconds */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define SYNTH_DEFAULT_DEV "ttyS0"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define SYNTH_DEFAULT_SER 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) const struct old_serial_port *spk_serial_init(int index);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) void spk_stop_serial_interrupt(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) void spk_serial_release(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) void spk_ttyio_release(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) void spk_ttyio_register_ldisc(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) void spk_ttyio_unregister_ldisc(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) void synth_buffer_skip_nonlatin1(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) u16 synth_buffer_getc(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) u16 synth_buffer_peek(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) int synth_buffer_empty(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) struct var_t *spk_get_var(enum var_id_t var_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 		     char *buf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 		      const char *buf, size_t count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) int spk_serial_synth_probe(struct spk_synth *synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) int spk_ttyio_synth_probe(struct spk_synth *synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) const char *spk_serial_synth_immediate(struct spk_synth *synth,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 				       const char *buff);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) const char *spk_ttyio_synth_immediate(struct spk_synth *synth,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 				      const char *buff);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) void spk_do_catch_up(struct spk_synth *synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) void spk_do_catch_up_unicode(struct spk_synth *synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) void spk_synth_flush(struct spk_synth *synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) unsigned char spk_synth_get_index(struct spk_synth *synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) int spk_synth_is_alive_nop(struct spk_synth *synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) int spk_synth_is_alive_restart(struct spk_synth *synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) __printf(1, 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) void synth_printf(const char *buf, ...);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) void synth_putwc(u16 wc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) void synth_putwc_s(u16 wc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) void synth_putws(const u16 *buf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) void synth_putws_s(const u16 *buf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) int synth_request_region(unsigned long start, unsigned long n);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) int synth_release_region(unsigned long start, unsigned long n);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) int synth_add(struct spk_synth *in_synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) void synth_remove(struct spk_synth *in_synth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) struct spk_synth *synth_current(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) extern struct speakup_info_t speakup_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) extern struct var_t synth_time_vars[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) extern struct spk_io_ops spk_serial_io_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) extern struct spk_io_ops spk_ttyio_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) #endif