summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/sunserial.h
blob: 8877d4b566d2ab75b962f8c68bf8bd7cb034520f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* $Id: sunserial.h,v 1.13 1997/09/03 11:55:00 ecd Exp $
 * sunserial.h: SUN serial driver infrastructure.
 *
 * Copyright (C) 1997  Eddie C. Dost  (ecd@skynet.be)
 */

#ifndef _SPARC_SUNSERIAL_H
#define _SPARC_SUNSERIAL_H 1

#include <linux/tty.h>

struct rs_initfunc {
	int	(*rs_init) (void);
	struct rs_initfunc *next;
};

struct sunserial_operations {
	struct rs_initfunc	*rs_init;
	void	(*rs_cons_hook) (int, int, int);
	void	(*rs_kgdb_hook) (int);
	void	(*rs_change_mouse_baud) (int);
	int	(*rs_read_proc) (char *, char **, off_t, int, int *, void *);
};

/*
 * XXX: Work in progress, don't worry this will go away in a few days. (ecd)
 * 
 * To support multiple keyboards in one binary we have to take care
 * about (at least) the following:
 * 
 * int	shift_state;
 * 
 * char	*func_buf;
 * char	*func_bufptr;
 * int	 funcbufsize;
 * int	 funcbufleft;
 * char	**func_table;
 * 
 * XXX: keymaps need to be handled...
 * 
 * struct kbd_struct	*kbd_table;
 * int	(*kbd_init)(void);
 */

extern struct sunserial_operations rs_ops;
extern void sunserial_setinitfunc(unsigned long *, int (*) (void));

#endif /* !(_SPARC_SUNSERIAL_H) */