 6b3f4dc157
			
		
	
	
		6b3f4dc157
		
	
	
	
	
		
			
			This commit separates the low-level keyboard driver from TTY, putting it in a separate driver (PCKBD). The commit also separates management of raw input devices from TTY, and puts it in a separate server (INPUT). All keyboard and mouse input from hardware is sent by drivers to the INPUT server, which either sends it to a process that has opened a raw input device, or otherwise forwards it to TTY for standard processing. Design by Dirk Vogt. Prototype by Uli Kastlunger. Additional changes made to the prototype: - the event communication is now based on USB HID codes; all input drivers have to use USB codes to describe events; - all TTY keymaps have been converted to USB format, with the effect that a single keymap covers all keys; there is no (static) escaped keymap anymore; - further keymap tweaks now allow remapping of literally all keys; - input device renumbering and protocol rewrite; - INPUT server rewrite, with added support for cancel and select; - PCKBD reimplementation, including PC/AT-to-USB translation; - support for manipulating keyboard LEDs has been added; - keyboard and mouse multiplexer devices have been added to INPUT, primarily so that an X server need only open two devices; - a new "libinputdriver" library abstracts away protocol details from input drivers, and should be used by all future input drivers; - both INPUT and PCKBD can be restarted; - TTY is now scheduled by KERNEL, so that it won't be punished for running a lot; without this, simply running "yes" on the console kills the system; - the KIOCBELL IOCTL has been moved to /dev/console; - support for the SCANCODES termios setting has been removed; - obsolete keymap compression has been removed; - the obsolete Olivetti M24 keymap has been removed. Change-Id: I3a672fb8c4fd566734e4b46d3994b4b7fc96d578
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _PROCFS_INC_H
 | |
| #define _PROCFS_INC_H
 | |
| 
 | |
| #define _SYSTEM		1
 | |
| 
 | |
| #include <minix/config.h>
 | |
| #include <limits.h>
 | |
| #include <errno.h>
 | |
| #include <signal.h>
 | |
| #include <unistd.h>
 | |
| #include <stdlib.h>
 | |
| #include <stdio.h>
 | |
| #include <string.h>
 | |
| #include <assert.h>
 | |
| #include <fcntl.h>
 | |
| #include <lib.h>
 | |
| #include <minix/timers.h>
 | |
| #include <dirent.h>
 | |
| 
 | |
| #include <minix/callnr.h>
 | |
| #include <minix/type.h>
 | |
| #include <minix/const.h>
 | |
| #include <minix/com.h>
 | |
| #include <minix/syslib.h>
 | |
| #include <minix/sysutil.h>
 | |
| #include <minix/bitmap.h>
 | |
| #include <minix/vfsif.h>
 | |
| #include <minix/endpoint.h>
 | |
| #include <minix/sysinfo.h>
 | |
| #include <minix/u64.h>
 | |
| #include <minix/sysinfo.h>
 | |
| #include <minix/type.h>
 | |
| #include <minix/ipc.h>
 | |
| 
 | |
| #include <sys/utsname.h>
 | |
| #include <sys/time.h>
 | |
| #include <sys/times.h>
 | |
| #include <sys/types.h>
 | |
| #include <sys/param.h>
 | |
| #include <sys/stat.h>
 | |
| #include <sys/ioctl.h>
 | |
| 
 | |
| #include <machine/archtypes.h>
 | |
| #include "kernel/const.h"
 | |
| #include "kernel/type.h"
 | |
| #include "kernel/proc.h"
 | |
| #include "pm/mproc.h"
 | |
| #include "vfs/const.h"
 | |
| #include "vfs/fproc.h"
 | |
| #include "vfs/dmap.h"
 | |
| 
 | |
| #include <minix/vtreefs.h>
 | |
| #include <minix/procfs.h>
 | |
| 
 | |
| #include "const.h"
 | |
| #include "type.h"
 | |
| #include "proto.h"
 | |
| #include "glo.h"
 | |
| 
 | |
| #endif /* _PROCFS_INC_H */
 |