Changeset 476f62c in mainline for uspace/lib/drv/generic/remote_graph_dev.c
- Timestamp:
- 2014-01-17T17:26:48Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5828554, cf982ff
- Parents:
- 61b5b73d (diff), 66be0288 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_graph_dev.c
r61b5b73d r476f62c 35 35 #include <errno.h> 36 36 #include <async.h> 37 #include <macros.h> 37 38 38 39 #include "ops/graph_dev.h" 40 #include "graph_iface.h" 39 41 #include "ddf/driver.h" 42 43 typedef enum { 44 GRAPH_DEV_CONNECT = 0 45 } graph_dev_method_t; 46 47 int graph_dev_connect(async_sess_t *sess) 48 { 49 async_exch_t *exch = async_exchange_begin(sess); 50 int ret = async_req_1_0(exch, DEV_IFACE_ID(GRAPH_DEV_IFACE), GRAPH_DEV_CONNECT); 51 async_exchange_end(exch); 52 53 return ret; 54 } 40 55 41 56 static void remote_graph_connect(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 42 57 43 static remote_iface_func_ptr_t remote_graph_dev_iface_ops[] = {44 &remote_graph_connect58 static const remote_iface_func_ptr_t remote_graph_dev_iface_ops[] = { 59 [GRAPH_DEV_CONNECT] = remote_graph_connect 45 60 }; 46 61 47 remote_iface_t remote_graph_dev_iface = { 48 .method_count = sizeof(remote_graph_dev_iface_ops) / 49 sizeof(remote_iface_func_ptr_t), 62 const remote_iface_t remote_graph_dev_iface = { 63 .method_count = ARRAY_SIZE(remote_graph_dev_iface_ops), 50 64 .methods = remote_graph_dev_iface_ops 51 65 };
Note:
See TracChangeset
for help on using the changeset viewer.