1 #ifndef KVM__VESA_H 2 #define KVM__VESA_H 3 4 #define VESA_WIDTH 640 5 #define VESA_HEIGHT 480 6 7 #define VESA_MEM_ADDR 0xd0000000 8 #define VESA_BPP 32 9 /* 10 * We actually only need VESA_BPP/8*VESA_WIDTH*VESA_HEIGHT bytes. But the memory 11 * size must be a power of 2, so we round up. 12 */ 13 #define VESA_MEM_SIZE (1 << 21) 14 15 struct kvm; 16 struct biosregs; 17 18 struct framebuffer *vesa__init(struct kvm *self); 19 20 #endif 21