Diff for /qemu/qemu-char.h between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2018/04/24 16:47:14 version 1.1.1.2, 2018/04/24 16:50:28
Line 1 Line 1
 #ifndef QEMU_CHAR_H  #ifndef QEMU_CHAR_H
 #define QEMU_CHAR_H  #define QEMU_CHAR_H
   
   #include "sys-queue.h"
 /* character device */  /* character device */
   
 #define CHR_EVENT_BREAK 0 /* serial break char */  #define CHR_EVENT_BREAK 0 /* serial break char */
Line 27  typedef struct { Line 28  typedef struct {
 #define CHR_IOCTL_PP_EPP_READ         9  #define CHR_IOCTL_PP_EPP_READ         9
 #define CHR_IOCTL_PP_EPP_WRITE_ADDR  10  #define CHR_IOCTL_PP_EPP_WRITE_ADDR  10
 #define CHR_IOCTL_PP_EPP_WRITE       11  #define CHR_IOCTL_PP_EPP_WRITE       11
   #define CHR_IOCTL_PP_DATA_DIR        12
   
   #define CHR_IOCTL_SERIAL_SET_TIOCM   13
   #define CHR_IOCTL_SERIAL_GET_TIOCM   14
   
   #define CHR_TIOCM_CTS   0x020
   #define CHR_TIOCM_CAR   0x040
   #define CHR_TIOCM_DSR   0x100
   #define CHR_TIOCM_RI    0x080
   #define CHR_TIOCM_DTR   0x002
   #define CHR_TIOCM_RTS   0x004
   
 typedef void IOEventHandler(void *opaque, int event);  typedef void IOEventHandler(void *opaque, int event);
   
 struct CharDriverState {  struct CharDriverState {
       void (*init)(struct CharDriverState *s);
     int (*chr_write)(struct CharDriverState *s, const uint8_t *buf, int len);      int (*chr_write)(struct CharDriverState *s, const uint8_t *buf, int len);
     void (*chr_update_read_handler)(struct CharDriverState *s);      void (*chr_update_read_handler)(struct CharDriverState *s);
     int (*chr_ioctl)(struct CharDriverState *s, int cmd, void *arg);      int (*chr_ioctl)(struct CharDriverState *s, int cmd, void *arg);
Line 44  struct CharDriverState { Line 57  struct CharDriverState {
     void *opaque;      void *opaque;
     int focus;      int focus;
     QEMUBH *bh;      QEMUBH *bh;
       char *label;
       char *filename;
       TAILQ_ENTRY(CharDriverState) next;
 };  };
   
 CharDriverState *qemu_chr_open(const char *filename);  CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*init)(struct CharDriverState *s));
 void qemu_chr_close(CharDriverState *chr);  void qemu_chr_close(CharDriverState *chr);
 void qemu_chr_printf(CharDriverState *s, const char *fmt, ...);  void qemu_chr_printf(CharDriverState *s, const char *fmt, ...);
 int qemu_chr_write(CharDriverState *s, const uint8_t *buf, int len);  int qemu_chr_write(CharDriverState *s, const uint8_t *buf, int len);
Line 61  void qemu_chr_reset(CharDriverState *s); Line 77  void qemu_chr_reset(CharDriverState *s);
 int qemu_chr_can_read(CharDriverState *s);  int qemu_chr_can_read(CharDriverState *s);
 void qemu_chr_read(CharDriverState *s, uint8_t *buf, int len);  void qemu_chr_read(CharDriverState *s, uint8_t *buf, int len);
 void qemu_chr_accept_input(CharDriverState *s);  void qemu_chr_accept_input(CharDriverState *s);
   void qemu_chr_info(void);
   
   extern int term_escape_char;
   
 /* async I/O support */  /* async I/O support */
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


unix.superglobalmegacorp.com