diff --git a/board/io3.c b/board/io3.c index 0a4fc80..369714f 100644 --- a/board/io3.c +++ b/board/io3.c @@ -150,6 +150,13 @@ void io3_init( io3->ops_ctx = ops_ctx; } +struct jvs_node *io3_to_jvs_node(struct io3 *io3) +{ + assert(io3 != NULL); + + return &io3->jvs; +} + static void io3_transact( struct jvs_node *node, const void *bytes, diff --git a/board/io3.h b/board/io3.h index efe98d1..a094a2a 100644 --- a/board/io3.h +++ b/board/io3.h @@ -33,3 +33,5 @@ void io3_init( struct jvs_node *next, const struct io3_ops *ops, void *ops_ctx); + +struct jvs_node *io3_to_jvs_node(struct io3 *io3);