Changeset 8e4a408 in mainline
- Timestamp:
- 2014-07-09T23:25:28Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1b979a
- Parents:
- 7d276395
- Location:
- uspace
- Files:
-
- 4 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c
r7d276395 r8e4a408 34 34 */ 35 35 36 #include <align.h> 36 37 #include <assert.h> 37 38 #include <errno.h> -
uspace/drv/fb/amdm37x_dispc/main.c
r7d276395 r8e4a408 35 35 */ 36 36 37 #include <ddf/driver.h> 37 38 #include <ddf/log.h> 38 39 #include <errno.h> 39 40 #include <str_error.h> 40 41 #include <stdio.h> 41 #include <ops/graph_dev.h>42 42 #include <graph.h> 43 43 … … 46 46 #define NAME "amdm37x_dispc" 47 47 48 static graph_dev_ops_t graph_vsl_dev_ops = {49 .connect = (connect_func) &graph_visualizer_connection 50 };48 static void graph_vsl_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 49 { 50 visualizer_t *vsl; 51 51 52 static ddf_dev_ops_t graph_fun_ops = { 53 .interfaces[GRAPH_DEV_IFACE] = &graph_vsl_dev_ops54 } ;52 vsl = (visualizer_t *) ddf_fun_data_get((ddf_fun_t *)arg); 53 graph_visualizer_connection(vsl, iid, icall, NULL); 54 } 55 55 56 56 static int amdm37x_dispc_dev_add(ddf_dev_t *dev) … … 74 74 vis->reg_svc_handle = ddf_fun_get_handle(fun); 75 75 76 ddf_fun_set_ ops(fun, &graph_fun_ops);76 ddf_fun_set_conn_handler(fun, graph_vsl_connection); 77 77 /* Hw part */ 78 78 amdm37x_dispc_t *dispc = -
uspace/drv/fb/kfb/kfb.c
r7d276395 r8e4a408 40 40 #include <task.h> 41 41 #include <graph.h> 42 #include <ops/graph_dev.h>43 42 #include "port.h" 44 43 #include "kfb.h" … … 60 59 }; 61 60 62 static graph_dev_ops_t graph_vsl_dev_ops = {63 .connect = (connect_func) &graph_visualizer_connection64 };65 66 ddf_dev_ops_t graph_vsl_device_ops = {67 .interfaces[GRAPH_DEV_IFACE] = &graph_vsl_dev_ops68 };69 70 static graph_dev_ops_t graph_rnd_dev_ops = {71 .connect = (connect_func) &graph_renderer_connection72 };73 74 ddf_dev_ops_t graph_rnd_device_ops = {75 .interfaces[GRAPH_DEV_IFACE] = &graph_rnd_dev_ops76 };77 78 61 int main(int argc, char *argv[]) 79 62 { -
uspace/drv/fb/kfb/port.c
r7d276395 r8e4a408 207 207 }; 208 208 209 static void graph_vsl_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 210 { 211 visualizer_t *vsl; 212 213 vsl = (visualizer_t *) ddf_fun_data_get((ddf_fun_t *)arg); 214 graph_visualizer_connection(vsl, iid, icall, NULL); 215 } 216 209 217 int port_init(ddf_dev_t *dev) 210 218 { … … 346 354 return ENOMEM; 347 355 } 348 ddf_fun_set_ ops(fun_vs, &graph_vsl_device_ops);356 ddf_fun_set_conn_handler(fun_vs, &graph_vsl_connection); 349 357 350 358 visualizer_t *vs = ddf_fun_data_alloc(fun_vs, sizeof(visualizer_t)); -
uspace/lib/c/include/ipc/dev_iface.h
r7d276395 r8e4a408 40 40 /** Character device interface */ 41 41 CHAR_DEV_IFACE, 42 43 /** Graphic device interface */44 GRAPH_DEV_IFACE,45 42 46 43 /** Audio device mixer interface */ -
uspace/lib/drv/Makefile
r7d276395 r8e4a408 47 47 generic/remote_pio_window.c \ 48 48 generic/remote_char_dev.c \ 49 generic/remote_graph_dev.c \50 49 generic/remote_nic.c \ 51 50 generic/remote_usb.c \ -
uspace/lib/drv/generic/dev_iface.c
r7d276395 r8e4a408 45 45 #include "remote_led_dev.h" 46 46 #include "remote_battery_dev.h" 47 #include "remote_graph_dev.h"48 47 #include "remote_nic.h" 49 48 #include "remote_usb.h" … … 62 61 [PIO_WINDOW_DEV_IFACE] = &remote_pio_window_iface, 63 62 [CHAR_DEV_IFACE] = &remote_char_dev_iface, 64 [GRAPH_DEV_IFACE] = &remote_graph_dev_iface,65 63 [NIC_DEV_IFACE] = &remote_nic_iface, 66 64 [PCI_DEV_IFACE] = &remote_pci_iface, -
uspace/srv/hid/compositor/compositor.c
r7d276395 r8e4a408 57 57 58 58 #include <event.h> 59 #include <graph_iface.h>60 59 #include <io/keycode.h> 61 60 #include <io/mode.h> … … 1156 1155 if (sess == NULL) { 1157 1156 printf("%s: Unable to connect to visualizer %s\n", NAME, svc); 1158 return NULL;1159 }1160 1161 rc = graph_dev_connect(sess);1162 if (rc != EOK) {1163 printf("%s: Failed initializing visualiser %s\n", NAME, svc);1164 1157 return NULL; 1165 1158 }
Note:
See TracChangeset
for help on using the changeset viewer.