hw/i386/acpi-build: Fix maybe-uninitialized error when ACPI hotplug off
[qemu/ar7.git] / include / hw / char / renesas_sci.h
bloba4764e3eee3a936315ec0a534371e0070a299243
1 /*
2 * Renesas Serial Communication Interface
4 * Copyright (c) 2018 Yoshinori Sato
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #ifndef HW_CHAR_RENESAS_SCI_H
10 #define HW_CHAR_RENESAS_SCI_H
12 #include "chardev/char-fe.h"
13 #include "hw/sysbus.h"
14 #include "qom/object.h"
16 #define TYPE_RENESAS_SCI "renesas-sci"
17 typedef struct RSCIState RSCIState;
18 DECLARE_INSTANCE_CHECKER(RSCIState, RSCI,
19 TYPE_RENESAS_SCI)
21 enum {
22 ERI = 0,
23 RXI = 1,
24 TXI = 2,
25 TEI = 3,
26 SCI_NR_IRQ = 4
29 struct RSCIState {
30 /*< private >*/
31 SysBusDevice parent_obj;
32 /*< public >*/
34 MemoryRegion memory;
35 QEMUTimer timer;
36 CharBackend chr;
37 qemu_irq irq[SCI_NR_IRQ];
39 uint8_t smr;
40 uint8_t brr;
41 uint8_t scr;
42 uint8_t tdr;
43 uint8_t ssr;
44 uint8_t rdr;
45 uint8_t scmr;
46 uint8_t semr;
48 uint8_t read_ssr;
49 int64_t trtime;
50 int64_t rx_next;
51 uint64_t input_freq;
54 #endif