Original kernel 2.4.37.5
[tomato.git] / release / src / linux / linux / drivers / sbus / char / sunserial.h
blobe94a7e1dac0830b0853e40bb6cf1a4739b5d10ab
1 /* $Id: sunserial.h,v 1.19 1999/12/01 10:45:59 davem Exp $
2 * sunserial.h: SUN serial driver infrastructure (including keyboards).
4 * Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)
5 */
7 #ifndef _SPARC_SUNSERIAL_H
8 #define _SPARC_SUNSERIAL_H 1
10 #include <linux/config.h>
11 #include <linux/tty.h>
12 #include <linux/kd.h>
13 #include <linux/kbd_kern.h>
14 #include <linux/console.h>
16 struct initfunc {
17 int (*init) (void);
18 struct initfunc *next;
21 struct sunserial_operations {
22 struct initfunc *rs_init;
23 void (*rs_kgdb_hook) (int);
24 void (*rs_change_mouse_baud) (int);
25 int (*rs_read_proc) (char *, char **, off_t, int, int *, void *);
28 struct sunkbd_operations {
29 struct initfunc *kbd_init;
30 void (*compute_shiftstate) (void);
31 void (*setledstate) (struct kbd_struct *, unsigned int);
32 unsigned char (*getledstate) (void);
33 int (*setkeycode) (unsigned int, unsigned int);
34 int (*getkeycode) (unsigned int);
37 extern struct sunserial_operations rs_ops;
38 extern struct sunkbd_operations kbd_ops;
40 extern void sunserial_setinitfunc(int (*) (void));
41 extern void sunkbd_setinitfunc(int (*) (void));
43 extern int serial_console;
44 extern int stop_a_enabled;
45 extern void sunserial_console_termios(struct console *);
47 #ifdef CONFIG_PCI
48 extern void sunkbd_install_keymaps(ushort **, unsigned int, char *,
49 char **, int, int, struct kbdiacr *,
50 unsigned int);
51 #endif
53 #endif /* !(_SPARC_SUNSERIAL_H) */