Changeset d57ff6f in mainline
- Timestamp:
- 2013-01-20T20:02:01Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4e3bfab
- Parents:
- 079cacf
- Location:
- uspace/drv/fb/amdm37x_dispc
- Files:
-
- 1 deleted
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/fb/amdm37x_dispc/Makefile
r079cacf rd57ff6f 30 30 31 31 USPACE_PREFIX = ../../.. 32 LIBS = $(LIBDRV_PREFIX)/libdrv.a $(LIBGRAPH_PREFIX)/libgraph.a $(LIBSOFTREND_PREFIX)/libsoftrend.a 33 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -I$(LIBGRAPH_PREFIX) -I$(LIBSOFTREND_PREFIX) 34 BINARY = kfb 32 33 LIBS = \ 34 $(LIBDRV_PREFIX)/libdrv.a \ 35 $(LIBGRAPH_PREFIX)/libgraph.a \ 36 $(LIBSOFTREND_PREFIX)/libsoftrend.a 37 38 EXTRA_CFLAGS += \ 39 -I$(LIBDRV_PREFIX)/include \ 40 -I$(LIBGRAPH_PREFIX) \ 41 -I$(LIBSOFTREND_PREFIX) 42 43 BINARY = amdm37x_dispc 35 44 36 45 SOURCES = \ 37 46 port.c \ 38 kfb.c47 main.c 39 48 40 49 include $(USPACE_PREFIX)/Makefile.common -
uspace/drv/fb/amdm37x_dispc/main.c
r079cacf rd57ff6f 1 1 /* 2 * Copyright (c) 2013 Jan Vesely 2 3 * Copyright (c) 2011 Petr Koupy 3 4 * All rights reserved. … … 40 41 #include <task.h> 41 42 #include <graph.h> 42 #include <ops/graph_dev.h>43 43 #include "port.h" 44 #include "kfb.h" 44 45 #define NAME "amdm37x_dispc" 45 46 46 47 static int kgraph_dev_add(ddf_dev_t *dev) … … 60 61 }; 61 62 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 63 int main(int argc, char *argv[]) 79 64 { -
uspace/drv/fb/amdm37x_dispc/port.c
r079cacf rd57ff6f 55 55 #include <io/chargrid.h> 56 56 57 #include <ops/graph_dev.h> 57 58 #include <pixconv.h> 58 59 59 60 #include <graph.h> 60 61 61 #include "kfb.h"62 62 #include "port.h" 63 63 … … 79 79 uint8_t *addr; 80 80 } kfb_t; 81 82 static graph_dev_ops_t graph_vsl_dev_ops = { 83 .connect = (connect_func) &graph_visualizer_connection 84 }; 85 86 static ddf_dev_ops_t graph_vsl_device_ops = { 87 .interfaces[GRAPH_DEV_IFACE] = &graph_vsl_dev_ops 88 }; 81 89 82 90 static kfb_t kfb;
Note:
See TracChangeset
for help on using the changeset viewer.