mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
virtio-serial: kill VirtIOSerialDevice
VirtIOSerialDevice is like VirtIOSerialPort with just the first two fields, which makes it pretty pointless. Using VirtIOSerialPort directly works equally well and is less confusing. [Amit: - rebase - rename 'dev' to 'port' in function params in virtio-serial.h ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
61a11c98b7
commit
a43f9c90c9
3 changed files with 14 additions and 27 deletions
|
@ -62,11 +62,6 @@ typedef struct VirtIOSerialBus VirtIOSerialBus;
|
|||
typedef struct VirtIOSerialPort VirtIOSerialPort;
|
||||
typedef struct VirtIOSerialPortInfo VirtIOSerialPortInfo;
|
||||
|
||||
typedef struct VirtIOSerialDevice {
|
||||
DeviceState qdev;
|
||||
VirtIOSerialPortInfo *info;
|
||||
} VirtIOSerialDevice;
|
||||
|
||||
/*
|
||||
* This is the state that's shared between all the ports. Some of the
|
||||
* state is configurable via command-line options. Some of it can be
|
||||
|
@ -136,12 +131,12 @@ struct VirtIOSerialPortInfo {
|
|||
* The per-port (or per-app) init function that's called when a
|
||||
* new device is found on the bus.
|
||||
*/
|
||||
int (*init)(VirtIOSerialDevice *dev);
|
||||
int (*init)(VirtIOSerialPort *port);
|
||||
/*
|
||||
* Per-port exit function that's called when a port gets
|
||||
* hot-unplugged or removed.
|
||||
*/
|
||||
int (*exit)(VirtIOSerialDevice *dev);
|
||||
int (*exit)(VirtIOSerialPort *port);
|
||||
|
||||
/* Callbacks for guest events */
|
||||
/* Guest opened device. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue