Changeset 902fb856 in mainline
- Timestamp:
- 2005-11-28T12:36:14Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5803145
- Parents:
- 4a28943
- Location:
- arch/ia64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/drivers/keyboard.h
r4a28943 r902fb856 1 1 /* 2 2 * Copyright (C) 2005 Jakub Jermar 3 * Copyright (C) 2005 Jakub Vana 3 4 * All rights reserved. 4 5 * … … 34 35 35 36 extern void keyboard_init(void); 36 extern void keyboard(void);37 extern void poll_keyboard(void); 37 38 38 39 -
arch/ia64/src/drivers/it.c
r4a28943 r902fb856 30 30 31 31 #include <arch/drivers/it.h> 32 #include <arch/drivers/keyboard.h> 32 33 #include <arch/interrupt.h> 33 34 #include <arch/register.h> … … 36 37 #include <time/clock.h> 37 38 38 void keyboard(void);39 39 40 40 /** Initialize Interval Timer. */ … … 66 66 srlz_d(); /* propagate changes */ 67 67 clock(); 68 keyboard();68 poll_keyboard(); 69 69 } -
arch/ia64/src/drivers/keyboard.c
r4a28943 r902fb856 2 2 * Copyright (C) 2003 Josef Cejka 3 3 * Copyright (C) 2005 Jakub Jermar 4 * Copyright (C) 2005 Jakub Vana 4 5 * All rights reserved. 5 6 * … … 55 56 chardev_initialize(&kbrd, &ops); 56 57 stdin = &kbrd; 57 kb_disable = 0;58 kb_disable = false; 58 59 } 59 60 60 61 /** Process keyboard interrupt. */ 61 void keyboard(void)62 void poll_keyboard(void) 62 63 { 63 64 if(kb_disable) return; … … 65 66 66 67 ch = ski_getchar(); 67 if(ch== 13) ch=10;68 if(ch=='\r') ch='\n'; 68 69 if(ch) chardev_push_character(&kbrd, ch); 69 70 … … 73 74 void keyboard_enable(void) 74 75 { 75 kb_disable= 0;76 kb_disable=false; 76 77 } 77 78 … … 79 80 void keyboard_disable(void) 80 81 { 81 kb_disable= 1;82 kb_disable=true; 82 83 }
Note:
See TracChangeset
for help on using the changeset viewer.