ncsid: Import from gBMC
This is the initial code drop from gBMC.
Google-Bug-Id: 179618516
Upstream: 1e71af914bc8c54d8b91d0a1cf377e2696713c2f
Change-Id: Ic653e8271dacd205e04f2bc713071ef2ec5936a4
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/ncsid/doc/ncsid_test_arch.dot b/ncsid/doc/ncsid_test_arch.dot
new file mode 100644
index 0000000..081d5d6
--- /dev/null
+++ b/ncsid/doc/ncsid_test_arch.dot
@@ -0,0 +1,38 @@
+digraph {
+ node [shape="box"];
+ subgraph {
+ node [shape=plaintext];
+
+ ncsid [label=<
+ <table>
+ <tr><td port="sockio" bgcolor="lightblue">net::SockIO</td><td bgcolor="lightblue" colspan="2" port="config">net::ConfigBase</td></tr>
+ <tr><td bgcolor="lightblue" colspan="3">ncsi::StateMachine</td></tr>
+ <tr>
+ <td bgcolor="black"><font color="white">L2 FSM</font></td>
+ <td bgcolor="black"><font color="white">L3/4 FSM</font></td>
+ <td bgcolor="black"><font color="white">Test FSM</font></td>
+ </tr>
+ </table>
+ >];
+ }
+
+ subgraph notes {
+ node [shape="note" style="filled"];
+ core [label="NC-SId Core" fillcolor="lightblue"];
+ ec [label="EC" fillcolor="black" fontcolor="white"];
+ mock [label="Mocks" fillcolor="beige"];
+ }
+
+ p_config [label="MockConfig" style="filled" fillcolor="beige"];
+
+ ncsi_sockio [style="filled" fillcolor="beige" label=<
+ <table border="0">
+ <tr><td align="left">NICConnection</td></tr>
+ <tr><td border="1">mock::NIC</td></tr>
+ </table>
+ >];
+
+ ncsi_sockio -> ncsid:sockio [arrowhead="diamond"];
+
+ p_config -> ncsid:config [arrowhead="diamond"];
+}