Go to the documentation of this file.
38 #define PCI_VENDOR_ID_VMWARE 0x15AD
39 #define PCI_DEVICE_ID_VMWARE_SVGA2 0x0405
44 #define SVGA_REG_ENABLE_DISABLE 0
45 #define SVGA_REG_ENABLE_ENABLE 1
46 #define SVGA_REG_ENABLE_HIDE 2
47 #define SVGA_REG_ENABLE_ENABLE_HIDE (SVGA_REG_ENABLE_ENABLE |\
55 #define SVGA_CURSOR_ON_HIDE 0x0
56 #define SVGA_CURSOR_ON_SHOW 0x1
57 #define SVGA_CURSOR_ON_REMOVE_FROM_FB 0x2
58 #define SVGA_CURSOR_ON_RESTORE_TO_FB 0x3
70 #define SVGA_FB_MAX_TRACEABLE_SIZE 0x1000000
72 #define SVGA_MAX_PSEUDOCOLOR_DEPTH 8
73 #define SVGA_MAX_PSEUDOCOLORS (1 << SVGA_MAX_PSEUDOCOLOR_DEPTH)
74 #define SVGA_NUM_PALETTE_REGS (3 * SVGA_MAX_PSEUDOCOLORS)
76 #define SVGA_MAGIC 0x900000UL
77 #define SVGA_MAKE_ID(ver) (SVGA_MAGIC << 8 | (ver))
80 #define SVGA_VERSION_2 2
81 #define SVGA_ID_2 SVGA_MAKE_ID(SVGA_VERSION_2)
85 #define SVGA_VERSION_1 1
86 #define SVGA_ID_1 SVGA_MAKE_ID(SVGA_VERSION_1)
89 #define SVGA_VERSION_0 0
90 #define SVGA_ID_0 SVGA_MAKE_ID(SVGA_VERSION_0)
93 #define SVGA_ID_INVALID 0xFFFFFFFF
96 #define SVGA_INDEX_PORT 0x0
97 #define SVGA_VALUE_PORT 0x1
98 #define SVGA_BIOS_PORT 0x2
99 #define SVGA_IRQSTATUS_PORT 0x8
107 #define SVGA_IRQFLAG_ANY_FENCE 0x1
108 #define SVGA_IRQFLAG_FIFO_PROGRESS 0x2
109 #define SVGA_IRQFLAG_FENCE_GOAL 0x4
278 #define SVGA_GMR_NULL ((uint32) -1)
279 #define SVGA_GMR_FRAMEBUFFER ((uint32) -2)
417 #define SVGA_CAP_NONE 0x00000000
418 #define SVGA_CAP_RECT_COPY 0x00000002
419 #define SVGA_CAP_CURSOR 0x00000020
420 #define SVGA_CAP_CURSOR_BYPASS 0x00000040
421 #define SVGA_CAP_CURSOR_BYPASS_2 0x00000080
422 #define SVGA_CAP_8BIT_EMULATION 0x00000100
423 #define SVGA_CAP_ALPHA_CURSOR 0x00000200
424 #define SVGA_CAP_3D 0x00004000
425 #define SVGA_CAP_EXTENDED_FIFO 0x00008000
426 #define SVGA_CAP_MULTIMON 0x00010000
427 #define SVGA_CAP_PITCHLOCK 0x00020000
428 #define SVGA_CAP_IRQMASK 0x00040000
429 #define SVGA_CAP_DISPLAY_TOPOLOGY 0x00080000
430 #define SVGA_CAP_GMR 0x00100000
431 #define SVGA_CAP_TRACES 0x00200000
432 #define SVGA_CAP_GMR2 0x00400000
433 #define SVGA_CAP_SCREEN_OBJECT_2 0x00800000
606 #define SVGA_FIFO_EXTENDED_MANDATORY_REGS (SVGA_FIFO_3D_CAPS_LAST + 1)
803 #define SVGA_FIFO_CAP_NONE 0
804 #define SVGA_FIFO_CAP_FENCE (1<<0)
805 #define SVGA_FIFO_CAP_ACCELFRONT (1<<1)
806 #define SVGA_FIFO_CAP_PITCHLOCK (1<<2)
807 #define SVGA_FIFO_CAP_VIDEO (1<<3)
808 #define SVGA_FIFO_CAP_CURSOR_BYPASS_3 (1<<4)
809 #define SVGA_FIFO_CAP_ESCAPE (1<<5)
810 #define SVGA_FIFO_CAP_RESERVE (1<<6)
811 #define SVGA_FIFO_CAP_SCREEN_OBJECT (1<<7)
812 #define SVGA_FIFO_CAP_GMR2 (1<<8)
813 #define SVGA_FIFO_CAP_3D_HWVERSION_REVISED SVGA_FIFO_CAP_GMR2
814 #define SVGA_FIFO_CAP_SCREEN_OBJECT_2 (1<<9)
815 #define SVGA_FIFO_CAP_DEAD (1<<10)
824 #define SVGA_FIFO_FLAG_NONE 0
825 #define SVGA_FIFO_FLAG_ACCELFRONT (1<<0)
826 #define SVGA_FIFO_FLAG_RESERVED (1<<31)
832 #define SVGA_FIFO_RESERVED_UNKNOWN 0xffffffff
839 #define SVGA_NUM_OVERLAY_UNITS 32
846 #define SVGA_VIDEO_FLAG_COLORKEY 0x0001
942 #define SVGA_SCREEN_MUST_BE_SET (1 << 0)
943 #define SVGA_SCREEN_HAS_ROOT SVGA_SCREEN_MUST_BE_SET
944 #define SVGA_SCREEN_IS_PRIMARY (1 << 1)
945 #define SVGA_SCREEN_FULLSCREEN_HINT (1 << 2)
953 #define SVGA_SCREEN_DEACTIVATE (1 << 3)
965 #define SVGA_SCREEN_BLANKING (1 << 4)
1029 #define SVGA_CMD_MAX_ARGS 64
1178 #define SVGA_ROP_COPY 0x03