/* SPDX-License-Identifier: MIT */ /* * Copyright (C) 2013-2017 Oracle Corporation * This file is based on ast_drv.h * Copyright 2012 Red Hat Inc. * Authors: Dave Airlie <airlied@redhat.com> * Michael Thayer <michael.thayer@oracle.com, * Hans de Goede <hdegoede@redhat.com>
*/ #ifndef __VBOX_DRV_H__ #define __VBOX_DRV_H__
struct vbox_private { /* Must be first; or we must define our own release callback */ struct drm_device ddev;
u8 __iomem *guest_heap;
u8 __iomem *vbva_buffers; struct gen_pool *guest_pool; struct vbva_buf_ctx *vbva_info; bool any_pitch;
u32 num_crtcs; /* Amount of available VRAM, including space used for buffers. */
u32 full_vram_size; /* Amount of available VRAM, not including space used for buffers. */
u32 available_vram_size; /* Array of structures for receiving mode hints. */ struct vbva_modehint *last_mode_hints;
int fb_mtrr;
struct mutex hw_mutex; /* protects modeset and accel/vbva accesses */ struct work_struct hotplug_work;
u32 input_mapping_width;
u32 input_mapping_height; /* * Is user-space using an X.Org-style layout of one large frame-buffer * encompassing all screen ones or is the fbdev console active?
*/ bool single_framebuffer;
u8 cursor_data[CURSOR_DATA_SIZE];
};
struct vbox_crtc { struct drm_crtc base; bool disconnected; unsignedint crtc_id;
u32 fb_offset; bool cursor_enabled;
u32 x_hint;
u32 y_hint; /* * When setting a mode we not only pass the mode to the hypervisor, * but also information on how to map / translate input coordinates * for the emulated USB tablet. This input-mapping may change when * the mode on *another* crtc changes. * * This means that sometimes we must do a modeset on other crtc-s then * the one being changed to update the input-mapping. Including crtc-s * which may be disabled inside the guest (shown as a black window * on the host unless closed by the user). * * With atomic modesetting the mode-info of disabled crtcs gets zeroed * yet we need it when updating the input-map to avoid resizing the * window as a side effect of a mode_set on another crtc. Therefor we * cache the info of the last mode below.
*/
u32 width;
u32 height;
u32 x;
u32 y;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.