Expand description
§Bindings to the ParavirtualizedGraphics framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- PGDevice
Descriptor PGDevice - Apple’s documentation
- PGDisplay
Coord_ t PGDisplay - A struct for describing size of or offsets into a 2D array of pixels (used for size of display mode, size of cursor, and cursor hotSpot). Field: x Represents horizontal pixel offset/size Field: y Represents vertical pixel offset/size
- PGDisplay
Descriptor PGDisplay - Descriptor to facilitate creation of PGDisplay.
- PGDisplay
Mode PGDisplay - Description of supported display mode.
- PGPhysical
Memory Range_ s PGDevice - A struct for a guest physical memory range Field: physicalAddress The starting physical address of the range Field: physicalLength The length of the range
- PGResume
Error Code PGDevice - Resume error codes
Statics§
- PGResume
Error ⚠Domain PGDevice - Apple’s documentation
- Paravirtualized
Graphics ⚠Version Number - Project version number for ParavirtualizedGraphics.
- Paravirtualized
Graphics ⚠Version String - Project version string for ParavirtualizedGraphics.
Traits§
- PGDevice
PGDevice - The PGDevice protocol represents a paravirtualized GPU device.
- PGDisplay
PGDisplay - Object providing display functionality to guest in a way that host-side VM app can intercept (and process as it chooses).
Functions§
- PGCopy
OptionROMURL ⚠PGDevice - Copy the URL of the option ROM to be used by the device. The URL will be a local file path to a flat ROM image. The client code should pad the ROM image out to a power of 2 size with a zero-filled trailer and present the resulting bytes as read only memory to the PCI option ROM BAR for the device.
- PGCreate
Device ⚠With Descriptor PGDevice - Create a new PGDevice implementation object based on the provided descriptor.
- PGMax
Display ⚠Port Count PGDevice - Returns the maximum number of PGDisplay ports that a PGDevice can be configured with.
- PGNew
Device ⚠With Descriptor PGDevice - Create a new PGDevice implementation object based on the provided descriptor.
Type Aliases§
- PGDisplay
Cursor Glyph Handler PGDisplayandblock2andobjc2-app-kit - A block that will be invoked to handle cursor glyph updates.
- PGDisplay
Cursor Move Handler PGDisplayandblock2 - A block that will be invoked to handle cursor movement.
- PGDisplay
Cursor Show Handler PGDisplayandblock2 - A block that will be invoked to handle cursor show/hide updates.
- PGDisplay
Mode Change Handler PGDisplayandblock2 - A block that will be invoked at display mode change boundaries.
- PGDisplay
NewFrame Event Handler PGDisplayandblock2 - A block that will be invoked to notify client of availability of new Guest compositor frame to be further processed.
- PGPhysical
Memory Range_ t PGDevice - A struct for a guest physical memory range Field: physicalAddress The starting physical address of the range Field: physicalLength The length of the range
- PGRaise
Interrupt PGDeviceandblock2 - A block that is invoked to raise an interrupt to the guest.
- PGTrace
Range Handler PGDeviceandblock2 - A block that will be invoked by the device client code when a trace handler fires. The device client code should watch the memory identified by each installed trace range and notify the device when the memory has been changed. The client is encouraged to coalesce the handling of these notifications over the course of several milliseconds. This functionality is used to provide a low overhead framebuffer implementation that is used by the device before the guest OS has fully booted and entered accelerated rendering and display.