Changeset 287920f in mainline
- Timestamp:
- 2006-08-09T13:27:55Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d46c6ecd
- Parents:
- da74747
- Location:
- kernel
- Files:
-
- 3 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/Makefile.inc
rda74747 r287920f 62 62 63 63 CONFIG_I8042 = y 64 CONFIG_I8042_PC = y65 DEFS += -DCONFIG_I8042_PC66 64 67 65 ## Accepted configuration directives -
kernel/arch/amd64/src/amd64.c
rda74747 r287920f 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 42 42 #include <arch/drivers/ega.h> 43 43 #include <arch/drivers/vesa.h> 44 #include <genarch/ i8042/i8042.h>44 #include <genarch/kbd/i8042.h> 45 45 #include <arch/drivers/i8254.h> 46 46 #include <arch/drivers/i8259.h> … … 209 209 } 210 210 211 /** @} 212 */ 213 211 /** @} 212 */ -
kernel/arch/ia32/Makefile.inc
rda74747 r287920f 81 81 82 82 CONFIG_I8042 = y 83 CONFIG_I8042_PC = y84 DEFS += -DCONFIG_I8042_PC85 83 86 84 ## Accepted configuration directives -
kernel/arch/ia32/src/ia32.c
rda74747 r287920f 42 42 #include <arch/drivers/ega.h> 43 43 #include <arch/drivers/vesa.h> 44 #include <genarch/ i8042/i8042.h>44 #include <genarch/kbd/i8042.h> 45 45 #include <arch/drivers/i8254.h> 46 46 #include <arch/drivers/i8259.h> -
kernel/arch/sparc64/Makefile.inc
rda74747 r287920f 65 65 66 66 CONFIG_Z8530 = y 67 CONFIG_KBD_SUN = y 68 DEFS += -DCONFIG_KBD_SUN 67 DEFS += -DCONFIG_Z8530 69 68 70 69 ARCH_SOURCES = \ -
kernel/arch/sparc64/include/drivers/z8530.h
rda74747 r287920f 37 37 38 38 #include <arch/types.h> 39 #include <arch/drivers/kbd.h> 39 40 40 41 #define STATUS_REG 4 … … 43 44 44 45 #define LAST_REG DATA_REG 45 46 extern volatile uint8_t *kbd_virt_address;47 46 48 47 static inline void z8530_data_write(uint8_t data) … … 66 65 } 67 66 68 extern void kbd_init(void);69 70 67 #endif 71 68 -
kernel/arch/sparc64/src/console.c
rda74747 r287920f 38 38 #include <genarch/fb/fb.h> 39 39 #include <arch/drivers/fb.h> 40 #include <arch/drivers/i8042.h> 41 #include <genarch/i8042/i8042.h> 40 41 #include <arch/drivers/kbd.h> 42 #ifdef CONFIG_Z8530 43 #include <genarch/kbd/z8530.h> 44 #endif 45 #ifdef CONFIG_16550A 46 #include <genarch/kbd/16550a.h> 47 #endif 48 42 49 #include <console/chardev.h> 43 50 #include <console/console.h> … … 72 79 73 80 while (1) { 74 i8042_poll(); 81 #ifdef CONFIG_Z8530 82 z8530_poll(); 83 #endif 84 #ifdef CONFIG_16550A 85 16550a_poll(); 86 #endif 75 87 thread_usleep(KEYBOARD_POLL_PAUSE); 76 88 } -
kernel/arch/sparc64/src/drivers/kbd.c
rda74747 r287920f 33 33 */ 34 34 35 #include <arch/drivers/kbd.h> 35 36 #ifdef CONFIG_Z8530 36 37 #include <genarch/kbd/z8530.h> … … 39 40 #include <genarch/kbd/16650a.h> 40 41 #endif 42 41 43 #include <arch/boot/boot.h> 42 44 #include <arch/mm/page.h> 43 45 #include <arch/types.h> 44 46 #include <typedefs.h> 47 #include <align.h> 45 48 46 49 volatile uint8_t *kbd_virt_address = NULL; … … 50 53 size_t offset; 51 54 uintptr_t aligned_addr; 55 56 /* FIXME: supply value read from OpenFirmware */ 57 bootinfo.keyboard.size = 8; 52 58 53 59 /* -
kernel/arch/sparc64/src/mm/tlb.c
rda74747 r287920f 48 48 #include <symtab.h> 49 49 50 #include <arch/drivers/fb.h>51 #include <arch/drivers/i8042.h>52 53 50 char *context_encoding[] = { 54 51 "Primary", … … 61 58 { 62 59 /* 63 * TLBs are actually initialized by 64 * take_over_tlb_and_tt() early 60 * TLBs are actually initialized early 65 61 * in start.S. 66 62 */ -
kernel/genarch/Makefile.inc
rda74747 r287920f 68 68 ifeq ($(CONFIG_I8042),y) 69 69 GENARCH_SOURCES += \ 70 genarch/src/i8042/i8042.c 71 72 ifeq ($(CONFIG_I8042_PC),y) 73 GENARCH_SOURCES += \ 74 genarch/src/i8042/scanc_pc.c 75 endif 76 ifeq ($(CONFIG_I8042_SUN),y) 77 GENARCH_SOURCES += \ 78 genarch/src/i8042/scanc_sun.c 79 endif 80 70 genarch/src/kbd/i8042.c \ 71 genarch/src/kbd/scanc_pc.c 81 72 endif 73 74 ## z8530 controller 75 ifeq ($(CONFIG_Z8530),y) 76 GENARCH_SOURCES += \ 77 genarch/src/kbd/z8530.c \ 78 genarch/src/kbd/scanc_sun.c 79 endif -
kernel/genarch/include/kbd/i8042.h
rda74747 r287920f 36 36 #define KERN_I8042_H_ 37 37 38 #include <genarch/kbd/scanc_pc.h>39 40 #define SPECIAL '?'41 42 extern char sc_primary_map[];43 extern char sc_secondary_map[];44 45 38 extern void i8042_init(void); 46 39 extern void i8042_poll(void); -
kernel/genarch/include/kbd/z8530.h
rda74747 r287920f 38 38 #define KERN_Z8530_H_ 39 39 40 #include <genarch/kbd/scanc_sun.h>41 42 #define SPECIAL '?'43 44 extern char sc_primary_map[];45 extern char sc_secondary_map[];46 47 40 extern void z8530_init(void); 48 41 extern void z8530_poll(void); -
kernel/genarch/src/kbd/i8042.c
rda74747 r287920f 37 37 */ 38 38 39 #include <genarch/i8042/i8042.h> 39 #include <genarch/kbd/i8042.h> 40 #include <genarch/kbd/scanc.h> 41 #include <genarch/kbd/scanc_pc.h> 40 42 #include <arch/drivers/i8042.h> 41 43 #include <arch/interrupt.h> … … 79 81 #define KEY_RELEASE 0x80 80 82 81 /**82 * These codes read from i8042 data register are silently ignored.83 */84 #define IGNORE_CODE 0x7f85 86 83 static void key_released(uint8_t sc); 87 84 static void key_pressed(uint8_t sc); … … 391 388 ; 392 389 x = i8042_data_read(); 393 if (x != IGNORE_CODE) { 394 if (x & KEY_RELEASE) 395 key_released(x ^ KEY_RELEASE); 396 else 397 active_read_key_pressed(x); 398 } 390 if (x & KEY_RELEASE) 391 key_released(x ^ KEY_RELEASE); 392 else 393 active_read_key_pressed(x); 399 394 } 400 395 return ch; … … 411 406 while (((x = i8042_status_read() & i8042_BUFFER_FULL_MASK))) { 412 407 x = i8042_data_read(); 413 if (x != IGNORE_CODE) { 414 if (x & KEY_RELEASE) 415 key_released(x ^ KEY_RELEASE); 416 else 417 key_pressed(x); 418 } 408 if (x & KEY_RELEASE) 409 key_released(x ^ KEY_RELEASE); 410 else 411 key_pressed(x); 419 412 } 420 413 } … … 422 415 /** @} 423 416 */ 424 -
kernel/genarch/src/kbd/scanc_pc.c
rda74747 r287920f 35 35 */ 36 36 37 #include <genarch/ i8042/i8042.h>37 #include <genarch/kbd/scanc.h> 38 38 39 39 /** Primary meaning of scancodes. */ -
kernel/genarch/src/kbd/scanc_sun.c
rda74747 r287920f 35 35 */ 36 36 37 #include <genarch/ i8042/i8042.h>37 #include <genarch/kbd/scanc.h> 38 38 39 39 /** Primary meaning of scancodes. */
Note:
See TracChangeset
for help on using the changeset viewer.