@@ -3,4 +3,7 @@ VPATH=$(top_builddir)/doc/images
.msc.svg:
mscgen -T svg -i $^ -o $@
+.gv.svg:
+ dot -T svg $^ -o $@
+
ASCIIDOC_FLAGS =-a data-uri -b html5 -a icons -a toc2 -a max-width=55em
@@ -1 +1,2 @@
resource_management.svg
+pktio_fsm.svg
new file mode 100644
@@ -0,0 +1,17 @@
+digraph pktio_state_machine {
+ rankdir=LR;
+ size="9,12";
+ node [fontsize=28];
+ edge [fontsize=28];
+ node [shape=doublecircle]; Unallocated Ready;
+ node [shape=circle];
+ Unallocated -> Unconfigured [label="odp_pktio_open()"];
+ Unconfigured -> Unallocated [label="odp_pktio_close()"];
+ Unconfigured -> Configured [label="odp_pktin_queue_config()"];
+ Unconfigured -> Configured [label="odp_pktout_queue_config()"];
+ Configured -> Configured [label="odp_pktin_queue_config()"];
+ Configured -> Configured [label="odp_pktout_queue_config()"];
+ Configured -> Ready [label="odp_pktio_start()"];
+ Ready -> Configured [label="odp_pktio_stop()"];
+ Configured -> Unallocated [label="odp_pktio_close()"];
+}
\ No newline at end of file
@@ -11,6 +11,8 @@ IMAGES = $(top_srcdir)/doc/images/overview.svg \
$(top_srcdir)/doc/images/atomic_queue.svg \
$(top_srcdir)/doc/images/ordered_queue.svg
+IMAGES += $(top_srcdir)/doc/images/pktio_fsm.svg
+
if HAVE_MSCGEN
IMAGES += $(top_srcdir)/doc/images/resource_management.svg
endif
The PktIO FSM state diagram is built using GraphVis. Add the files and associated Makefile and .gitignore changes needed to support this new file. Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> --- doc/Makefile.inc | 3 +++ doc/images/.gitignore | 1 + doc/images/pktio_fsm.gv | 17 +++++++++++++++++ doc/users-guide/Makefile.am | 2 ++ 4 files changed, 23 insertions(+) create mode 100644 doc/images/pktio_fsm.gv