Changeset 9be360ee in mainline for uspace/srv/hid/kbd/port/ski.c
- Timestamp:
- 2011-06-11T22:06:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f3f9659
- Parents:
- 56ad818
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/port/ski.c
r56ad818 r9be360ee 1 1 /* 2 2 * Copyright (c) 2005 Jakub Jermar 3 * Copyright (c) 20 09Jiri Svoboda3 * Copyright (c) 2011 Jiri Svoboda 4 4 * All rights reserved. 5 5 * … … 45 45 #include <bool.h> 46 46 47 static int ski_port_init( void);47 static int ski_port_init(kbd_dev_t *); 48 48 static void ski_port_yield(void); 49 49 static void ski_port_reclaim(void); … … 57 57 }; 58 58 59 static kbd_dev_t *kbd_dev; 60 59 61 #define SKI_GETCHAR 21 60 62 … … 67 69 68 70 /** Initialize Ski port driver. */ 69 static int ski_port_init( void)71 static int ski_port_init(kbd_dev_t *kdev) 70 72 { 71 73 thread_id_t tid; 72 74 int rc; 75 76 kbd_dev = kdev; 73 77 74 78 rc = thread_create(ski_thread_impl, NULL, "kbd_poll", &tid); … … 106 110 if (c == 0) 107 111 break; 108 kbd_push_scancode( c);112 kbd_push_scancode(kbd_dev, c); 109 113 } 110 114
Note:
See TracChangeset
for help on using the changeset viewer.