Changeset 9be360ee in mainline for uspace/srv/hid/kbd/port/sgcn.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/sgcn.c
r56ad818 r9be360ee 1 1 /* 2 2 * Copyright (c) 2008 Pavel Rimsky 3 * Copyright (c) 2011 Jiri Svoboda 3 4 * All rights reserved. 4 5 * … … 46 47 #include <errno.h> 47 48 48 static int sgcn_port_init( void);49 static int sgcn_port_init(kbd_dev_t *); 49 50 static void sgcn_port_yield(void); 50 51 static void sgcn_port_reclaim(void); … … 58 59 }; 59 60 61 static kbd_dev_t *kbd_dev; 62 60 63 #define POLL_INTERVAL 10000 61 64 … … 113 116 * Maps the physical memory (SRAM) and creates the polling thread. 114 117 */ 115 static int sgcn_port_init(void) 116 { 118 static int sgcn_port_init(kbd_dev_t *kdev) 119 { 120 kbd_dev = kdev; 121 117 122 sysarg_t sram_paddr; 118 123 if (sysinfo_get_value("sram.address.physical", &sram_paddr) != EOK) … … 179 184 buf_ptr = (volatile char *) 180 185 SGCN_BUFFER(char, SGCN_BUFFER_HEADER->in_rdptr); 181 kbd_push_scancode( c);186 kbd_push_scancode(kbd_dev, c); 182 187 } 183 188 }
Note:
See TracChangeset
for help on using the changeset viewer.