Re: hw/char: a question about watch callback function in serial

2020-06-07 Thread LIU Zhiwei
On 2020/6/5 10:19, LIU Zhiwei wrote: On 2020/6/4 21:32, Peter Maydell wrote: On Thu, 4 Jun 2020 at 13:15, LIU Zhiwei wrote: I see many UART implementations have a G_IO_OUT | G_IO_HUP callback function. In hw/serial.c, it is serial_watch_cb, setting by the following code, s->watch_tag

Re: hw/char: a question about watch callback function in serial

2020-06-04 Thread LIU Zhiwei
On 2020/6/4 21:32, Peter Maydell wrote: On Thu, 4 Jun 2020 at 13:15, LIU Zhiwei wrote: I see many UART implementations have a G_IO_OUT | G_IO_HUP callback function. In hw/serial.c, it is serial_watch_cb, setting by the following code, s->watch_tag = qemu_chr_fe_add_watch(&s->chr, G_IO_O

Re: hw/char: a question about watch callback function in serial

2020-06-04 Thread Peter Maydell
On Thu, 4 Jun 2020 at 13:15, LIU Zhiwei wrote: > I see many UART implementations have a G_IO_OUT | G_IO_HUP callback function. > > In hw/serial.c, it is serial_watch_cb, setting by the following code, > > s->watch_tag = qemu_chr_fe_add_watch(&s->chr, G_IO_OUT | G_IO_HUP, > >

hw/char: a question about watch callback function in serial

2020-06-04 Thread LIU Zhiwei
Hi folks, I see many UART implementations have a G_IO_OUT | G_IO_HUP  callback function. In hw/serial.c, it is serial_watch_cb, setting by the following code,   s->watch_tag = qemu_chr_fe_add_watch(&s->chr, G_IO_OUT | G_IO_HUP,   serial_watch_cb, s); In hw/candence_uart.