Beispiel #1
0
/* Send data from a char device over to the guest */
static void chr_read(void *opaque, const uint8_t *buf, int size)
{
    SCLPConsole *scon = opaque;

    assert(scon);

    receive_from_chr_layer(scon, buf, size);
    /* trigger SCLP read operation */
    qemu_irq_raise(scon->irq_read_vt220);
}
Beispiel #2
0
/*
 * Send data from a char device over to the guest
 */
static void chr_read(void *opaque, const uint8_t *buf, int size)
{
    SCLPConsoleLM *scon = opaque;

    receive_from_chr_layer(scon, buf, size);
    if (scon->event.event_pending) {
        /* trigger SCLP read operation */
        qemu_irq_raise(scon->irq_console_read);
    }
}