mirror of
https://review.haiku-os.org/haiku
synced 2025-02-12 00:28:19 +01:00
sample for qemu: -device virtio-vga,edid=on,xres=1024,yres=768 -display sdl display mode can be set in the Screen preferences. Change-Id: If1d6aeecb208ce7c62c42eea1a95c71237c4375a Reviewed-on: https://review.haiku-os.org/c/haiku/+/7038 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
44 lines
877 B
C
44 lines
877 B
C
/*
|
|
* Copyright 2005-2009, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef VIRTIO_INFO_H
|
|
#define VIRTIO_INFO_H
|
|
|
|
|
|
#include <Drivers.h>
|
|
#include <Accelerant.h>
|
|
|
|
#include <edid.h>
|
|
|
|
|
|
struct virtio_gpu_shared_info {
|
|
area_id mode_list_area; // area containing display mode list
|
|
uint32 mode_count;
|
|
display_mode current_mode;
|
|
uint32 bytes_per_row;
|
|
|
|
area_id frame_buffer_area; // area of frame buffer
|
|
uint8* frame_buffer;
|
|
// pointer to frame buffer (visible by all apps!)
|
|
|
|
edid1_raw edid_raw;
|
|
bool has_edid;
|
|
uint32 dpms_capabilities;
|
|
|
|
char name[32];
|
|
uint32 vram_size;
|
|
};
|
|
|
|
//----------------- ioctl() interface ----------------
|
|
|
|
// list ioctls
|
|
enum {
|
|
VIRTIO_GPU_GET_PRIVATE_DATA = B_DEVICE_OP_CODES_END + 1,
|
|
VIRTIO_GPU_GET_DEVICE_NAME,
|
|
VIRTIO_GPU_SET_DISPLAY_MODE,
|
|
};
|
|
|
|
|
|
#endif /* VIRTIO_INFO_H */
|