mirror of
https://github.com/qemu/qemu.git
synced 2025-08-08 08:05:17 +00:00
hw/char/serial: Remove SerialState from "qemu/typedefs.h"
Files requiring SerialState already include "hw/char/serial.h". To clean "qemu/typedefs.h", move the declaration to "hw/char/serial.h" (removing the forward declaration). Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
bc8c49d34d
commit
1451b40443
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
#define UART_FIFO_LENGTH 16 /* 16550A Fifo Length */
|
#define UART_FIFO_LENGTH 16 /* 16550A Fifo Length */
|
||||||
|
|
||||||
struct SerialState {
|
typedef struct SerialState {
|
||||||
uint16_t divider;
|
uint16_t divider;
|
||||||
uint8_t rbr; /* receive register */
|
uint8_t rbr; /* receive register */
|
||||||
uint8_t thr; /* transmit holding register */
|
uint8_t thr; /* transmit holding register */
|
||||||
@ -77,7 +77,7 @@ struct SerialState {
|
|||||||
|
|
||||||
QEMUTimer *modem_status_poll;
|
QEMUTimer *modem_status_poll;
|
||||||
MemoryRegion io;
|
MemoryRegion io;
|
||||||
};
|
} SerialState;
|
||||||
|
|
||||||
extern const VMStateDescription vmstate_serial;
|
extern const VMStateDescription vmstate_serial;
|
||||||
extern const MemoryRegionOps serial_io_ops;
|
extern const MemoryRegionOps serial_io_ops;
|
||||||
|
@ -103,7 +103,6 @@ typedef struct QObject QObject;
|
|||||||
typedef struct QString QString;
|
typedef struct QString QString;
|
||||||
typedef struct RAMBlock RAMBlock;
|
typedef struct RAMBlock RAMBlock;
|
||||||
typedef struct Range Range;
|
typedef struct Range Range;
|
||||||
typedef struct SerialState SerialState;
|
|
||||||
typedef struct SHPCDevice SHPCDevice;
|
typedef struct SHPCDevice SHPCDevice;
|
||||||
typedef struct SSIBus SSIBus;
|
typedef struct SSIBus SSIBus;
|
||||||
typedef struct uWireSlave uWireSlave;
|
typedef struct uWireSlave uWireSlave;
|
||||||
|
Loading…
Reference in New Issue
Block a user