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)
7 #ifndef _SPARC_SUNSERIAL_H
8 #define _SPARC_SUNSERIAL_H 1
10 #include <linux/config.h>
11 #include <linux/tty.h>
13 #include <linux/kbd_kern.h>
14 #include <linux/console.h>
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
*);
48 extern void sunkbd_install_keymaps(ushort
**, unsigned int, char *,
49 char **, int, int, struct kbdiacr
*,
53 #endif /* !(_SPARC_SUNSERIAL_H) */