X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fserial.h;h=78ff076daec4939f7bcc2c7df0e78fa7dc846815;hb=0e26b3738daf436ba2d9a088ba620a3583d40de3;hp=f71159c270c2c04e3b179754f1b6593321ba56ae;hpb=8330d6bb32172ba7c50b4e242e0213c8a9e1424e;p=palacios.git diff --git a/palacios/include/devices/serial.h b/palacios/include/devices/serial.h index f71159c..78ff076 100644 --- a/palacios/include/devices/serial.h +++ b/palacios/include/devices/serial.h @@ -26,8 +26,13 @@ to different kinds of frontend devices that can act as a stream */ struct v3_stream_ops { + /* called by serial device to the backend stream device */ int (*read)(char *buf, uint_t len, void *private_data); int (*write)(char *buf, uint_t len, void *private_data); + + /* called by backend device to frontend serial device */ + int (*input)(char *buf, uint_t len, void *front_data); + void *front_data; };