linux/drivers/accessibility/speakup/speakup_dectlk.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * originally written by: Kirk Reiser <[email protected]>
 * this version considerably modified by David Borowski, [email protected]
 *
 * Copyright (C) 1998-99  Kirk Reiser.
 * Copyright (C) 2003 David Borowski.
 *
 * specifically written as a driver for the speakup screenreview
 * s not a general device driver.
 */
#include <linux/unistd.h>
#include <linux/proc_fs.h>
#include <linux/jiffies.h>
#include <linux/spinlock.h>
#include <linux/sched.h>
#include <linux/timer.h>
#include <linux/kthread.h>
#include "speakup.h"
#include "spk_priv.h"

#define DRV_VERSION
#define SYNTH_CLEAR
#define PROCSPEECH
static int xoff;

static inline int synth_full(void)
{}

static void do_catch_up(struct spk_synth *synth);
static void synth_flush(struct spk_synth *synth);
static void read_buff_add(u_char c);
static unsigned char get_index(struct spk_synth *synth);

static int in_escape;
static int is_flushing;

static DEFINE_SPINLOCK(flush_lock);
static DECLARE_WAIT_QUEUE_HEAD(flush);

enum default_vars_id {};

static struct var_t vars[NB_ID] =;

/*
 * These attributes will appear in /sys/accessibility/speakup/dectlk.
 */
static struct kobj_attribute caps_start_attribute =;
static struct kobj_attribute caps_stop_attribute =;
static struct kobj_attribute pitch_attribute =;
static struct kobj_attribute inflection_attribute =;
static struct kobj_attribute punct_attribute =;
static struct kobj_attribute rate_attribute =;
static struct kobj_attribute voice_attribute =;
static struct kobj_attribute vol_attribute =;

static struct kobj_attribute delay_time_attribute =;
static struct kobj_attribute direct_attribute =;
static struct kobj_attribute full_time_attribute =;
static struct kobj_attribute flush_time_attribute =;
static struct kobj_attribute jiffy_delta_attribute =;
static struct kobj_attribute trigger_time_attribute =;

/*
 * Create a group of attributes so that we can create and destroy them all
 * at once.
 */
static struct attribute *synth_attrs[] =;

static int ap_defaults[] =;
static int g5_defaults[] =;

static struct spk_synth synth_dectlk =;

static int is_indnum(u_char *ch)
{}

static u_char lastind;

static unsigned char get_index(struct spk_synth *synth)
{}

static void read_buff_add(u_char c)
{}

static void do_catch_up(struct spk_synth *synth)
{}

static void synth_flush(struct spk_synth *synth)
{}

module_param_named(ser, synth_dectlk.ser, int, 0444);
module_param_named(dev, synth_dectlk.dev_name, charp, 0444);
module_param_named(start, synth_dectlk.startup, short, 0444);
module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
module_param_named(inflection, vars[INFLECTION_ID].u.n.default_val, int, 0444);
module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
module_param_named(punct, vars[PUNCT_ID].u.n.default_val, int, 0444);
module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);



MODULE_PARM_DESC();
MODULE_PARM_DESC();
MODULE_PARM_DESC();
MODULE_PARM_DESC();
MODULE_PARM_DESC();
MODULE_PARM_DESC();
MODULE_PARM_DESC();
MODULE_PARM_DESC();
MODULE_PARM_DESC();
MODULE_PARM_DESC();


module_spk_synth();

MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_VERSION();