L4Re Operating System Framework
Interface and Usage Documentation
|
Representation of a Virtio console port. More...
#include <virtio-console>
Public Types | |
enum | Port_status { Port_disabled = 0 , Port_added , Port_ready , Port_open , Port_failed } |
Possible states of a virtio console port. More... | |
enum | |
Size of control queues, also used as default size. | |
Data Fields | |
Virtqueue | tx |
Receiveq of the port. | |
Virtqueue | rx |
Transmitq of the port. | |
Port_status | status |
State the port is in. | |
unsigned | vq_max |
Maximum queue sizes for this port. | |
Representation of a Virtio console port.
Each port consists of a pair of queues for sending and receiving.
A port may be added and removed at runtime when the multi-port feature is enabled. The states are as follows:
Definition at line 107 of file virtio-console.
Possible states of a virtio console port.
Enumerator | |
---|---|
Port_disabled | Reset state, waiting for port to be added. |
Port_added | Port has been added by device, waiting for ready message. |
Port_ready | Port is ready but still closed. |
Port_open | Port is in a working state. |
Port_failed | Device failure, port unusable. |
Definition at line 112 of file virtio-console.