Changes in / [728d771:6773ff3] in mainline
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/ipc/methods.h
r728d771 r6773ff3 72 72 #define IPC_M_CONNECTION_CLONE 1 73 73 74 /** Protocol for CONNECT - ME74 /** Protocol for establishing a cloned connection. 75 75 * 76 76 * Through this call, the recipient learns about the new cloned connection. … … 81 81 * 82 82 */ 83 #define IPC_M_C ONNECT_ME284 85 /** Protocol for CONNECT - TO - ME83 #define IPC_M_CLONE_ESTABLISH 2 84 85 /** Protocol for initializing callback connections. 86 86 * 87 87 * Calling process asks the callee to create a callback connection, … … 102 102 #define IPC_M_CONNECT_TO_ME 3 103 103 104 /** Protocol for CONNECT - ME - TO104 /** Protocol for initializing new foward connections. 105 105 * 106 106 * Calling process asks the callee to create for him a new connection. … … 183 183 * - ARG1 - recipient's phone to the third party task 184 184 */ 185 #define IPC_M_STATE_CHANGE_AUTHORIZE 185 #define IPC_M_STATE_CHANGE_AUTHORIZE 9 186 186 187 187 /** Debug the recipient. … … 190 190 * 191 191 */ 192 #define IPC_M_DEBUG 10192 #define IPC_M_DEBUG 10 193 193 194 194 /** Last system IPC method */ -
boot/arch/arm32/Makefile.inc
r728d771 r6773ff3 42 42 43 43 RD_SRVS_ESSENTIAL += \ 44 $(USPACE_PATH)/srv/hid/s3c24xx_ts/s3c24 ts \45 $(USPACE_PATH)/srv/hw/char/s3c24xx_uart/s3c24 ser44 $(USPACE_PATH)/srv/hid/s3c24xx_ts/s3c24xx_ts \ 45 $(USPACE_PATH)/srv/hw/char/s3c24xx_uart/s3c24xx_uart 46 46 47 47 RD_SRVS_NON_ESSENTIAL += \ -
kernel/generic/src/ipc/sysipc.c
r728d771 r6773ff3 111 111 switch (imethod) { 112 112 case IPC_M_CONNECTION_CLONE: 113 case IPC_M_C ONNECT_ME:113 case IPC_M_CLONE_ESTABLISH: 114 114 case IPC_M_PHONE_HUNGUP: 115 115 /* This message is meant only for the original recipient. */ … … 160 160 switch (IPC_GET_IMETHOD(call->data)) { 161 161 case IPC_M_CONNECTION_CLONE: 162 case IPC_M_C ONNECT_ME:162 case IPC_M_CLONE_ESTABLISH: 163 163 case IPC_M_CONNECT_TO_ME: 164 164 case IPC_M_CONNECT_ME_TO: … … 225 225 mutex_unlock(&phone->lock); 226 226 } 227 } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_C ONNECT_ME) {227 } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_CLONE_ESTABLISH) { 228 228 phone_t *phone = (phone_t *) IPC_GET_ARG5(*olddata); 229 229 … … 459 459 break; 460 460 } 461 case IPC_M_C ONNECT_ME:461 case IPC_M_CLONE_ESTABLISH: 462 462 IPC_SET_ARG5(call->data, (sysarg_t) phone); 463 463 break; -
uspace/app/init/init.c
r728d771 r6773ff3 302 302 spawn("/srv/obio"); 303 303 srv_start("/srv/cuda_adb"); 304 srv_start("/srv/s3c24 ser");305 srv_start("/srv/s3c24 ts");304 srv_start("/srv/s3c24xx_uart"); 305 srv_start("/srv/s3c24xx_ts"); 306 306 307 307 spawn("/srv/loopip"); -
uspace/app/trace/ipc_desc.c
r728d771 r6773ff3 39 39 ipc_m_desc_t ipc_methods[] = { 40 40 /* System methods */ 41 { IPC_M_PHONE_HUNGUP, "PHONE_HUNGUP" }, 42 { IPC_M_CONNECT_ME, "CONNECT_ME" }, 43 { IPC_M_CONNECT_ME_TO, "CONNECT_ME_TO" }, 44 { IPC_M_CONNECT_TO_ME, "CONNECT_TO_ME" }, 45 { IPC_M_SHARE_OUT, "SHARE_OUT" }, 46 { IPC_M_SHARE_IN, "SHARE_IN" }, 47 { IPC_M_DATA_WRITE, "DATA_WRITE" }, 48 { IPC_M_DATA_READ, "DATA_READ" }, 49 { IPC_M_DEBUG, "DEBUG" }, 41 { IPC_M_PHONE_HUNGUP, "PHONE_HUNGUP" }, 42 { IPC_M_CONNECTION_CLONE, "CONNECTION_CLONE" }, 43 { IPC_M_CLONE_ESTABLISH, "CLONE_ESTABLISH" }, 44 { IPC_M_CONNECT_ME_TO, "CONNECT_ME_TO" }, 45 { IPC_M_CONNECT_TO_ME, "CONNECT_TO_ME" }, 46 { IPC_M_SHARE_OUT, "SHARE_OUT" }, 47 { IPC_M_SHARE_IN, "SHARE_IN" }, 48 { IPC_M_DATA_WRITE, "DATA_WRITE" }, 49 { IPC_M_DATA_READ, "DATA_READ" }, 50 { IPC_M_DEBUG, "DEBUG" }, 50 51 51 52 /* Terminating entry */ -
uspace/lib/c/generic/async.c
r728d771 r6773ff3 946 946 947 947 switch (IPC_GET_IMETHOD(*call)) { 948 case IPC_M_C ONNECT_ME:948 case IPC_M_CLONE_ESTABLISH: 949 949 case IPC_M_CONNECT_ME_TO: 950 950 /* Open new connection with fibril, etc. */ … … 1668 1668 } 1669 1669 1670 /** Wrapper for making IPC_M_C ONNECT_MEcalls using the async framework.1671 * 1672 * Ask throughfor a cloned connection to some service.1670 /** Wrapper for making IPC_M_CLONE_ESTABLISH calls using the async framework. 1671 * 1672 * Ask for a cloned connection to some service. 1673 1673 * 1674 1674 * @param mgmt Exchange management style. … … 1678 1678 * 1679 1679 */ 1680 async_sess_t *async_c onnect_me(exch_mgmt_t mgmt, async_exch_t *exch)1680 async_sess_t *async_clone_establish(exch_mgmt_t mgmt, async_exch_t *exch) 1681 1681 { 1682 1682 if (exch == NULL) { … … 1703 1703 msg->wdata.active = true; 1704 1704 1705 ipc_call_async_0(exch->phone, IPC_M_C ONNECT_ME, msg,1705 ipc_call_async_0(exch->phone, IPC_M_CLONE_ESTABLISH, msg, 1706 1706 reply_received, true); 1707 1707 -
uspace/lib/c/generic/ipc.c
r728d771 r6773ff3 647 647 * 648 648 */ 649 int ipc_c onnect_me(int phoneid)649 int ipc_clone_establish(int phoneid) 650 650 { 651 651 sysarg_t newphid; 652 int res = ipc_call_sync_0_5(phoneid, IPC_M_C ONNECT_ME, NULL, NULL,653 NULL, NULL, &newphid);652 int res = ipc_call_sync_0_5(phoneid, IPC_M_CLONE_ESTABLISH, NULL, 653 NULL, NULL, NULL, &newphid); 654 654 if (res) 655 655 return res; -
uspace/lib/c/include/async.h
r728d771 r6773ff3 321 321 sysarg_t *, sysarg_t *); 322 322 323 extern async_sess_t *async_c onnect_me(exch_mgmt_t, async_exch_t *);323 extern async_sess_t *async_clone_establish(exch_mgmt_t, async_exch_t *); 324 324 extern async_sess_t *async_connect_me_to(exch_mgmt_t, async_exch_t *, sysarg_t, 325 325 sysarg_t, sysarg_t); -
uspace/lib/c/include/ipc/ipc.h
r728d771 r6773ff3 254 254 sysarg_t, sysarg_t, void *, ipc_async_callback_t, bool); 255 255 256 extern int ipc_clone_establish(int); 256 257 extern int ipc_connect_to_me(int, sysarg_t, sysarg_t, sysarg_t, task_id_t *, 257 258 sysarg_t *); 258 extern int ipc_connect_me(int);259 259 extern int ipc_connect_me_to(int, sysarg_t, sysarg_t, sysarg_t); 260 260 extern int ipc_connect_me_to_blocking(int, sysarg_t, sysarg_t, sysarg_t); -
uspace/lib/fs/libfs.c
r728d771 r6773ff3 404 404 405 405 async_exch_t *exch = async_exchange_begin(mountee_sess); 406 async_sess_t *sess = async_c onnect_me(EXCHANGE_PARALLEL, exch);406 async_sess_t *sess = async_clone_establish(EXCHANGE_PARALLEL, exch); 407 407 408 408 if (!sess) { -
uspace/lib/nic/include/nic.h
r728d771 r6773ff3 232 232 extern int nic_report_poll_mode(nic_t *, nic_poll_mode_t, struct timeval *); 233 233 extern void nic_query_address(nic_t *, nic_address_t *); 234 extern void nic_received_noneth_frame(nic_t *, void *, size_t);235 234 extern void nic_received_frame(nic_t *, nic_frame_t *); 236 235 extern void nic_received_frame_list(nic_t *, nic_frame_list_t *); -
uspace/lib/nic/src/nic_driver.c
r728d771 r6773ff3 624 624 625 625 /** 626 * This function is to be used only in the loopback driver. It's workaround627 * for the situation when the frame does not contain ethernet address.628 * The filtering is therefore not applied here.629 *630 * @param nic_data631 * @param data Frame data632 * @param size Frame size in bytes633 */634 void nic_received_noneth_frame(nic_t *nic_data, void *data, size_t size)635 {636 fibril_rwlock_write_lock(&nic_data->stats_lock);637 nic_data->stats.receive_packets++;638 nic_data->stats.receive_bytes += size;639 fibril_rwlock_write_unlock(&nic_data->stats_lock);640 641 nic_ev_received(nic_data->client_session, data, size);642 }643 644 /**645 626 * Some NICs can receive multiple frames during single interrupt. These can 646 627 * send them in whole list of frames (actually nic_frame_t structures), then -
uspace/srv/hid/input/port/chardev.c
r728d771 r6773ff3 63 63 /** List of devices to try connecting to. */ 64 64 static const char *in_devs[] = { 65 "char/s3c24 ser"65 "char/s3c24xx_uart" 66 66 }; 67 67 -
uspace/srv/hid/s3c24xx_ts/Makefile
r728d771 r6773ff3 29 29 USPACE_PREFIX = ../../.. 30 30 31 # Need to use short name because of FAT 8+3 limit 32 BINARY = s3c24ts 31 BINARY = s3c24xx_ts 33 32 34 33 SOURCES = \ -
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
r728d771 r6773ff3 52 52 #include "s3c24xx_ts.h" 53 53 54 #define NAME "s3c24 ser"54 #define NAME "s3c24xx_ts" 55 55 #define NAMESPACE "hid" 56 56
Note:
See TracChangeset
for help on using the changeset viewer.