Changeset d0688a3 in mainline for kernel/arch/ppc32/src/drivers/cuda.c
- Timestamp:
- 2009-03-13T10:08:39Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- afdce6eb
- Parents:
- 449d4ecc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/drivers/cuda.c
r449d4ecc rd0688a3 27 27 */ 28 28 29 /** @addtogroup ppc32 29 /** @addtogroup ppc32 30 30 * @{ 31 31 */ … … 205 205 206 206 207 /* Called from getc(). */ 208 static void cuda_resume(chardev_t *d) 209 { 210 } 211 212 213 /* Called from getc(). */ 214 static void cuda_suspend(chardev_t *d) 215 { 216 } 217 218 219 static char key_read(chardev_t *d) 220 { 221 char ch; 222 223 ch = 0; 224 return ch; 225 } 226 227 228 static chardev_t kbrd; 229 static chardev_operations_t ops = { 230 .suspend = cuda_suspend, 231 .resume = cuda_resume, 232 .read = key_read 207 static indev_t kbrd; 208 static indev_operations_t ops = { 209 .poll = NULL 233 210 }; 234 211 … … 252 229 { 253 230 int scan_code = cuda_get_scancode(); 254 231 255 232 if (scan_code != -1) { 256 233 uint8_t scancode = (uint8_t) scan_code; 257 234 if ((scancode & 0x80) != 0x80) 258 chardev_push_character(&kbrd, lchars[scancode & 0x7f]);235 indev_push_character(&kbrd, lchars[scancode & 0x7f]); 259 236 } 260 237 } … … 269 246 cuda = (uint8_t *) hw_map(base, size); 270 247 271 chardev_initialize("cuda_kbd", &kbrd, &ops);248 indev_initialize("cuda_kbd", &kbrd, &ops); 272 249 stdin = &kbrd; 273 250
Note:
See TracChangeset
for help on using the changeset viewer.