Revision 055b889f hw/virtio-serial.h
b/hw/virtio-serial.h | ||
---|---|---|
27 | 27 |
/* Features supported */ |
28 | 28 |
#define VIRTIO_CONSOLE_F_MULTIPORT 1 |
29 | 29 |
|
30 |
#define VIRTIO_CONSOLE_BAD_ID (~(uint32_t)0) |
|
31 |
|
|
30 | 32 |
struct virtio_console_config { |
31 | 33 |
/* |
32 | 34 |
* These two fields are used by VIRTIO_CONSOLE_F_SIZE which |
... | ... | |
36 | 38 |
uint16_t rows; |
37 | 39 |
|
38 | 40 |
uint32_t max_nr_ports; |
39 |
uint32_t nr_ports; |
|
40 | 41 |
} __attribute__((packed)); |
41 | 42 |
|
42 | 43 |
struct virtio_console_control { |
... | ... | |
46 | 47 |
}; |
47 | 48 |
|
48 | 49 |
/* Some events for the internal messages (control packets) */ |
49 |
#define VIRTIO_CONSOLE_PORT_READY 0 |
|
50 |
#define VIRTIO_CONSOLE_CONSOLE_PORT 1 |
|
51 |
#define VIRTIO_CONSOLE_RESIZE 2 |
|
52 |
#define VIRTIO_CONSOLE_PORT_OPEN 3 |
|
53 |
#define VIRTIO_CONSOLE_PORT_NAME 4 |
|
54 |
#define VIRTIO_CONSOLE_PORT_REMOVE 5 |
|
50 |
#define VIRTIO_CONSOLE_DEVICE_READY 0 |
|
51 |
#define VIRTIO_CONSOLE_PORT_ADD 1 |
|
52 |
#define VIRTIO_CONSOLE_PORT_REMOVE 2 |
|
53 |
#define VIRTIO_CONSOLE_PORT_READY 3 |
|
54 |
#define VIRTIO_CONSOLE_CONSOLE_PORT 4 |
|
55 |
#define VIRTIO_CONSOLE_RESIZE 5 |
|
56 |
#define VIRTIO_CONSOLE_PORT_OPEN 6 |
|
57 |
#define VIRTIO_CONSOLE_PORT_NAME 7 |
|
55 | 58 |
|
56 | 59 |
/* == In-qemu interface == */ |
57 | 60 |
|
Also available in: Unified diff