
Fix 'Identifer' -> 'Identifier' typo. Cc: Laurent Vivier <laurent@vivier.eu> Fixes: 8c6df16ff60 ("hw/char: add goldfish-tty") Fixes: 87855593903 ("hw/intc: add goldfish-pic") Fixes: 2fde99ee312 ("m68k: add an interrupt controller") Fixes: 0791bc02b8f ("m68k: add a system controller") Fixes: e1cecdca559 ("m68k: add Virtual M68k Machine") Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20211103105311.3399293-1-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
36 lines
599 B
C
36 lines
599 B
C
/*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*
|
|
* Goldfish TTY
|
|
*
|
|
* (c) 2020 Laurent Vivier <laurent@vivier.eu>
|
|
*
|
|
*/
|
|
|
|
#ifndef HW_CHAR_GOLDFISH_TTY_H
|
|
#define HW_CHAR_GOLDFISH_TTY_H
|
|
|
|
#include "qemu/fifo8.h"
|
|
#include "chardev/char-fe.h"
|
|
|
|
#define TYPE_GOLDFISH_TTY "goldfish_tty"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(GoldfishTTYState, GOLDFISH_TTY)
|
|
|
|
#define GOLFISH_TTY_BUFFER_SIZE 128
|
|
|
|
struct GoldfishTTYState {
|
|
SysBusDevice parent_obj;
|
|
|
|
MemoryRegion iomem;
|
|
qemu_irq irq;
|
|
CharBackend chr;
|
|
|
|
uint32_t data_len;
|
|
uint64_t data_ptr;
|
|
bool int_enabled;
|
|
|
|
Fifo8 rx_fifo;
|
|
};
|
|
|
|
#endif
|