Changeset 880de6e in mainline for arch/ia64/src
- Timestamp:
- 2005-11-28T16:12:35Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5ff4f6b
- Parents:
- 5803145
- Location:
- arch/ia64/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/src/drivers/keyboard.c
r5803145 r880de6e 1 1 /* 2 * Copyright (C) 2003 Josef Cejka3 * Copyright (C) 2005 Jakub Jermar4 2 * Copyright (C) 2005 Jakub Vana 5 3 * All rights reserved. … … 47 45 }; 48 46 49 50 int kb_disable; 51 47 bool kb_disable; 52 48 53 49 /** Initialize keyboard subsystem. */ … … 59 55 } 60 56 61 /** Process keyboard interrupt. */57 /** Ask keyboard if a key was pressed. */ 62 58 void poll_keyboard(void) 63 59 { 64 if(kb_disable) return;65 60 char ch; 66 61 62 if (kb_disable) 63 return; 64 67 65 ch = ski_getchar(); 68 if(ch=='\r') ch='\n'; 69 if(ch) chardev_push_character(&kbrd, ch); 70 66 if(ch == '\r') 67 ch = '\n'; 68 if (ch) 69 chardev_push_character(&kbrd, ch); 71 70 } 72 71 … … 74 73 void keyboard_enable(void) 75 74 { 76 kb_disable =false;75 kb_disable = false; 77 76 } 78 77 … … 80 79 void keyboard_disable(void) 81 80 { 82 kb_disable =true;81 kb_disable = true; 83 82 } -
arch/ia64/src/ski/ski.c
r5803145 r880de6e 66 66 } 67 67 68 69 /** Display character on debug console 68 /** Ask debug console if a key was pressed. 70 69 * 71 70 * Use SSC (Simulator System Call) to 72 71 * get character from debug console. 73 * Non blocking HW call 74 * @return Returns ascii code of pressed key or 0 if no key pressed 72 * 73 * This call is non-blocking. 74 * 75 * @return ASCII code of pressed key or 0 if no key pressed. 75 76 */ 76 77 __s32 ski_getchar(void)
Note:
See TracChangeset
for help on using the changeset viewer.