XenevaOS
Loading...
Searching...
No Matches
svga.h
Go to the documentation of this file.
1
31#ifndef __SVGA_H__
32#define __SVGA_H__
33
34/* SVGA_REG_ENABLE bit definitions */
35#define SVGA_REG_ENABLE_DISABLE 0
36#define SVGA_REG_ENABLE_ENABLE 1
37#define SVGA_REG_ENABLE_HIDE 2
38#define SVGA_REG_ENABLE_ENABLE_HIDE (SVGA_REG_ENABLE_ENABLE | \
39 SVGA_REG_ENABLE_HIDE)
40
41/* CURSOR bits */
42#define SVGA_CURSOR_ON_HIDE 0x0
43#define SVGA_CURSOR_ON_SHOW 0X1
44#define SVGA_CURSOR_ON_REMOVE_FROM_FB 0x2 // remove the cursor from framebuffer to see the behind objects
45#define SVGA_CURSOR_ON_RESTORE_TO_FB 0x3 // put the cursor to framebuffer to hide the behind objects
46
47#define SVGA_FB_MAX_TRACEABLE_SIZE 0x1000000
48
49#define SVGA_MAX_PSEUDOCOLOR_DEPTH 8
50#define SVGA_MAX_PSEUDOCOLORS (1 << SVGA_MAX_PSEUDOCOLOR_DEPTH)
51#define SVGA_NUM_PALETTE_REGS (3 * SVGA_MAX_PSEUDOCOLORS)
52
53#define SVGA_MAGIC 0x900000UL
54#define SVGA_MAKE_ID(ver) (SVGA_MAGIC << 8 | (ver))
55
56#define SVGA_VERSION_2 2
57#define SVGA_ID_2 SVGA_MAKE_ID(SVGA_VERSION_2)
58
59
60#endif