virtio_gpu: initial driver
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 <[email protected]> Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright 2005-2009, Axel Dörfler, [email protected].
|
||||
* 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 */
|
||||
Reference in New Issue
Block a user