Changeset 2552f05f in mainline
- Timestamp:
- 2011-12-26T16:18:18Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cf5c05c0
- Parents:
- ec3b125
- Location:
- uspace/drv/char
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/i8042/i8042.c
rec3b125 r2552f05f 142 142 return; 143 143 i8042_t *controller = dev->driver_data; 144 // fibril_mutex_lock(&controller->guard);145 144 146 145 const uint8_t status = IPC_GET_ARG1(*call); … … 149 148 &controller->aux_buffer : &controller->kbd_buffer; 150 149 buffer_write(buffer, data); 151 #if 0152 char ** buffer =153 aux ? &controller->aux_buffer : &controller->kbd_buffer;154 char * buffer_end =155 aux ? controller->aux_buffer_end : controller->kbd_buffer_end;156 157 if (*buffer != NULL && *buffer < buffer_end) {158 *(*buffer) = data;159 if (++(*buffer) == buffer_end)160 fibril_condvar_broadcast(&controller->data_avail);161 } else {162 ddf_msg(LVL_WARN, "Unhandled %s data: %hhx , status: %hhx.",163 aux ? "AUX" : "KBD", data, status);164 }165 166 fibril_mutex_unlock(&controller->guard);167 #endif168 150 } 169 151 /*----------------------------------------------------------------------------*/ … … 183 165 if (!dev->kbd_fun) 184 166 return ENOMEM; 185 int ret = ddf_fun_add_match_id(dev->kbd_fun, " xtkbd", 90);167 int ret = ddf_fun_add_match_id(dev->kbd_fun, "char/xtkbd", 90); 186 168 if (ret != EOK) { 187 169 ddf_fun_destroy(dev->kbd_fun); … … 195 177 } 196 178 197 ret = ddf_fun_add_match_id(dev->mouse_fun, " ps2mouse", 90);179 ret = ddf_fun_add_match_id(dev->mouse_fun, "char/ps2mouse", 90); 198 180 if (ret != EOK) { 199 181 ddf_fun_destroy(dev->kbd_fun); -
uspace/drv/char/i8042/i8042.h
rec3b125 r2552f05f 46 46 #include "buffer.h" 47 47 48 #define BUFFER_SIZE 1248 #define BUFFER_SIZE 64 49 49 50 50 /** i8042 HW I/O interface */ -
uspace/drv/char/ps2mouse/ps2mouse.ma
rec3b125 r2552f05f 1 100 ps2mouse1 100 char/ps2mouse -
uspace/drv/char/xtkbd/xtkbd.ma
rec3b125 r2552f05f 1 100 xtkbd1 100 char/xtkbd
Note:
See TracChangeset
for help on using the changeset viewer.