Crate vmbus_serial_protocol

Source
Expand description

Protocol definitions for a VMBUS based serial device. Today this serial device is only offered to VTL2.

Structs§

GuestNotifications
Enum for the different guest notification messages. These are asynchronous messages sent by the Host to the HCL.
Header
A protocol message header.
HostNotifications
Enum for the different host notification messages. These are aysynchronous messages sent by the HCL to the Host.
HostRequests
Enum for the different host request and response messages. These are synchronous messages sent by the HCL to the host. Note that the host response shares the same enum. (Each request has a response of the same ID)
MessageId
A wrapper type for a protocol message id union.
MessageTypes
Enum for the different message types.
MessageVersions
Header message versions.
ProtocolVersions
Protocol versions.
RxDataResponse
A response to an RX Data host request message that contains RX data.
SetModumStatusMessage
Guest notification that the connection state of the serial port has changed.
TxDataAvailableMessage
Host notification message that TX data is available.
VersionRequestMessage
A version negotiation request sent from the guest to host.
VersionRequestResponse
A version negotiation response sent from host to guest.

Constants§

MAX_MESSAGE_SIZE
Maximum message size for all messages.
UART_INTERFACE_INSTANCE_COM1
VMBUS Instance GUID for COM1
UART_INTERFACE_INSTANCE_COM2
VMBUS Instance GUID for COM2
UART_INTERFACE_INSTANCE_COM3
VMBUS Instance GUID for COM3
UART_INTERFACE_INSTANCE_COM4
VMBUS Instance GUID for COM4
UART_INTERFACE_TYPE
VMBUS Interface Type GUID
UART_MSG_MAX_PAYLOAD
The maximum data size for a TX or RX.