Changeset bb864a0 in mainline
- Timestamp:
- 2010-05-05T20:55:40Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba95e8f
- Parents:
- f658458
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/device/char.c
rf658458 rbb864a0 50 50 aid_t req = async_send_1(dev_phone, DEV_IFACE_ID(CHAR_DEV_IFACE), CHAR_READ_DEV, &answer); 51 51 52 printf("async_data_read_start \n"); 52 53 int rc = async_data_read_start(dev_phone, buf, len); 54 55 printf("async_data_read_start, rc = %d\n", rc); 53 56 if (rc != EOK) { 54 57 ipcarg_t rc_orig; … … 63 66 } 64 67 68 printf("async_wait_for(req, &rc);\n", rc); 65 69 async_wait_for(req, &rc); 70 printf("async_serialize_end();\n", rc); 66 71 async_serialize_end(); 67 72 … … 70 75 } 71 76 77 printf("IPC_GET_ARG1(answer);\n", rc); 72 78 return IPC_GET_ARG1(answer); 73 79 } -
uspace/lib/libdrv/generic/remote_char.c
rf658458 rbb864a0 85 85 } 86 86 87 printf("remote_char_read - async_data_read_finalize\n"); 87 88 async_data_read_finalize(callid, buf, ret); 89 printf("remote_char_read - ipc_answer_0(callid, EOK);\n"); 88 90 ipc_answer_0(callid, EOK); 89 91 } -
uspace/srv/drivers/serial/serial.c
rf658458 rbb864a0 95 95 { 96 96 printf(NAME ": serial_read %s\n", dev->name); 97 // TODO 98 return 0; 97 98 int ret = 0; 99 100 serial_dev_data_t *data = (serial_dev_data_t *)dev->driver_data; 101 fibril_mutex_lock(&data->mutex); 102 103 while (!buf_is_empty(&data->input_buffer) && ret < count) { 104 buf[ret] = (char)buf_pop_front(&data->input_buffer); 105 ret++; 106 } 107 108 fibril_mutex_unlock(&data->mutex); 109 110 return ret; 99 111 } 100 112
Note:
See TracChangeset
for help on using the changeset viewer.