]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/speakup/spk_types.h
mmc: sdhci-xenon: kill xenon_clean_phy()
[karo-tx-linux.git] / drivers / staging / speakup / spk_types.h
index b07f6cc4f284ef615e8a1445a122c15d0e00e3e4..c156975392c8d3142464c78c7026d771fa39e37a 100644 (file)
@@ -55,7 +55,7 @@ struct spk_highlight_color_track {
        /* Count of each background color */
        unsigned int bgcount[8];
        /* Buffer for characters drawn with each background color */
-       char highbuf[8][COLOR_BUFFER_SIZE];
+       u16 highbuf[8][COLOR_BUFFER_SIZE];
        /* Current index into highbuf */
        unsigned int highsize[8];
        /* Reading Position for each color */
@@ -146,6 +146,14 @@ struct synth_indexing {
        unsigned char currindex;
 };
 
+struct spk_synth;
+
+struct spk_io_ops {
+       int (*synth_out)(struct spk_synth *synth, const char ch);
+       void (*send_xchar)(char ch);
+       void (*tiocmset)(unsigned int set, unsigned int clear);
+};
+
 struct spk_synth {
        const char *name;
        const char *version;
@@ -164,6 +172,7 @@ struct spk_synth {
        struct var_t *vars;
        int *default_pitch;
        int *default_vol;
+       struct spk_io_ops *io_ops;
        int (*probe)(struct spk_synth *synth);
        void (*release)(void);
        const char *(*synth_immediate)(struct spk_synth *synth,