Deleted Added
full compact
uart_kbd_sun.h (139749) uart_kbd_sun.h (163890)
1/*-
2 * Copyright (c) 2002 Jason L. Wright (jason@thought.net)
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 18 unchanged lines hidden (view full) ---

27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 *
31 * Effort sponsored in part by the Defense Advanced Research Projects
32 * Agency (DARPA) and Air Force Research Laboratory, Air Force
33 * Materiel Command, USAF, under agreement number F30602-01-2-0537.
34 *
1/*-
2 * Copyright (c) 2002 Jason L. Wright (jason@thought.net)
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 18 unchanged lines hidden (view full) ---

27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 *
31 * Effort sponsored in part by the Defense Advanced Research Projects
32 * Agency (DARPA) and Air Force Research Laboratory, Air Force
33 * Materiel Command, USAF, under agreement number F30602-01-2-0537.
34 *
35 * $FreeBSD: head/sys/dev/uart/uart_kbd_sun.h 139749 2005-01-06 01:43:34Z imp $
35 * $FreeBSD: head/sys/dev/uart/uart_kbd_sun.h 163890 2006-11-02 00:01:15Z marius $
36 */
37
38/* keyboard commands (host->kbd) */
39#define SKBD_CMD_RESET 0x01
40#define SKBD_CMD_BELLON 0x02
41#define SKBD_CMD_BELLOFF 0x03
42#define SKBD_CMD_CLICKON 0x0a
43#define SKBD_CMD_CLICKOFF 0x0b

--- 14 unchanged lines hidden (view full) ---

58#define SKBD_STATE_RESET 0
59#define SKBD_STATE_LAYOUT 1
60#define SKBD_STATE_GETKEY 2
61
62/* keyboard types */
63#define KB_SUN2 2 /* type 2 keyboard */
64#define KB_SUN3 3 /* type 3 keyboard */
65#define KB_SUN4 4 /* type 4/5/6 keyboard */
36 */
37
38/* keyboard commands (host->kbd) */
39#define SKBD_CMD_RESET 0x01
40#define SKBD_CMD_BELLON 0x02
41#define SKBD_CMD_BELLOFF 0x03
42#define SKBD_CMD_CLICKON 0x0a
43#define SKBD_CMD_CLICKOFF 0x0b

--- 14 unchanged lines hidden (view full) ---

58#define SKBD_STATE_RESET 0
59#define SKBD_STATE_LAYOUT 1
60#define SKBD_STATE_GETKEY 2
61
62/* keyboard types */
63#define KB_SUN2 2 /* type 2 keyboard */
64#define KB_SUN3 3 /* type 3 keyboard */
65#define KB_SUN4 4 /* type 4/5/6 keyboard */
66
67#define SKBD_KEY_RELEASE 0x80
68#define SKBD_KEY_CHAR(c) ((c) & 0x7f)