X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fserial.h;h=78ff076daec4939f7bcc2c7df0e78fa7dc846815;hb=436f64eff4b2b60c18f485095f2e962f32b71014;hp=f71159c270c2c04e3b179754f1b6593321ba56ae;hpb=ae4e727a7abfdb7df9cb93769a0799494ec75254;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; };