Changeset 984a9ba in mainline for uspace/drv/char/ns8250/ns8250.c
- Timestamp:
- 2018-07-05T09:34:09Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
r76f566d r984a9ba 311 311 static errno_t ns8250_open(chardev_srvs_t *, chardev_srv_t *); 312 312 static errno_t ns8250_close(chardev_srv_t *); 313 static void ns8250_default_handler(chardev_srv_t *, cap_call_handle_t,ipc_call_t *);313 static void ns8250_default_handler(chardev_srv_t *, ipc_call_t *); 314 314 315 315 /** The character interface's callbacks. */ … … 322 322 }; 323 323 324 static void ns8250_char_conn( cap_call_handle_t,ipc_call_t *, void *);324 static void ns8250_char_conn(ipc_call_t *, void *); 325 325 326 326 static errno_t ns8250_dev_add(ddf_dev_t *dev); … … 1067 1067 * Configure the parameters of the serial communication. 1068 1068 */ 1069 static void ns8250_default_handler(chardev_srv_t *srv, cap_call_handle_t chandle, 1070 ipc_call_t *call) 1069 static void ns8250_default_handler(chardev_srv_t *srv, ipc_call_t *call) 1071 1070 { 1072 1071 ns8250_t *ns8250 = srv_ns8250(srv); … … 1079 1078 ns8250_get_props(ns8250->dev, &baud_rate, &parity, &word_length, 1080 1079 &stop_bits); 1081 async_answer_4(c handle, EOK, baud_rate, parity, word_length,1080 async_answer_4(call, EOK, baud_rate, parity, word_length, 1082 1081 stop_bits); 1083 1082 break; … … 1090 1089 ret = ns8250_set_props(ns8250->dev, baud_rate, parity, word_length, 1091 1090 stop_bits); 1092 async_answer_0(c handle, ret);1091 async_answer_0(call, ret); 1093 1092 break; 1094 1093 1095 1094 default: 1096 async_answer_0(c handle, ENOTSUP);1097 } 1098 } 1099 1100 void ns8250_char_conn( cap_call_handle_t icall_handle,ipc_call_t *icall, void *arg)1095 async_answer_0(call, ENOTSUP); 1096 } 1097 } 1098 1099 void ns8250_char_conn(ipc_call_t *icall, void *arg) 1101 1100 { 1102 1101 ns8250_t *ns8250 = fun_ns8250((ddf_fun_t *)arg); 1103 1102 1104 chardev_conn(icall _handle, icall, &ns8250->cds);1103 chardev_conn(icall, &ns8250->cds); 1105 1104 } 1106 1105
Note:
See TracChangeset
for help on using the changeset viewer.