ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

vmx_regs.h
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         ReactOS Boot Loader
00003  * LICENSE:         BSD - See COPYING.ARM in the top level directory
00004  * FILE:            drivers/video/miniport/vmx_svga/vmware.h
00005  * PURPOSE:         VMWARE SVGA-II Card Registers and Definitions
00006  * PROGRAMMERS:     ReactOS Portable Systems Group
00007  */
00008 
00009 //
00010 // IT'S OVER 9000 THOUSAND!!!!!!!!!!
00011 //
00012 #define SVGA_MAGIC                  0x900000
00013 
00014 //
00015 // Known VMWARE SVGA Versions
00016 //
00017 #define SVGA_VERSION_2              2
00018 #define SVGA_VERSION_1              1
00019 #define SVGA_VERSION_0              0
00020 
00021 //
00022 // Known VMWARE SVGA IDs
00023 //
00024 #define SVGA_MAKE_ID(x)             (SVGA_MAGIC << 8 | (x))
00025 #define SVGA_ID_2                   SVGA_MAKE_ID(SVGA_VERSION_2)
00026 #define SVGA_ID_1                   SVGA_MAKE_ID(SVGA_VERSION_1)
00027 #define SVGA_ID_0                   SVGA_MAKE_ID(SVGA_VERSION_0)
00028 #define SVGA_ID_INVALID             0xFFFFFFFF
00029 
00030 //
00031 // Card Capabilities
00032 //
00033 #define SVGA_CAP_NONE               0x00000000
00034 #define SVGA_CAP_RECT_FILL          0x00000001
00035 #define SVGA_CAP_RECT_COPY          0x00000002
00036 #define SVGA_CAP_RECT_PAT_FILL      0x00000004
00037 #define SVGA_CAP_LEGACY_OFFSCREEN   0x00000008
00038 #define SVGA_CAP_RASTER_OP          0x00000010
00039 #define SVGA_CAP_CURSOR             0x00000020
00040 #define SVGA_CAP_CURSOR_BYPASS      0x00000040
00041 #define SVGA_CAP_CURSOR_BYPASS_2    0x00000080
00042 #define SVGA_CAP_8BIT_EMULATION     0x00000100
00043 #define SVGA_CAP_ALPHA_CURSOR       0x00000200
00044 #define SVGA_CAP_GLYPH              0x00000400
00045 #define SVGA_CAP_GLYPH_CLIPPING     0x00000800
00046 #define SVGA_CAP_OFFSCREEN_1        0x00001000
00047 #define SVGA_CAP_ALPHA_BLEND        0x00002000
00048 #define SVGA_CAP_3D                 0x00004000
00049 #define SVGA_CAP_EXTENDED_FIFO      0x00008000
00050 #define SVGA_CAP_MULTIMON           0x00010000
00051 #define SVGA_CAP_PITCHLOCK          0x00020000
00052 #define SVGA_CAP_IRQMASK            0x00040000
00053 #define SVGA_CAP_DISPLAY_TOPOLOGY   0x00080000
00054 
00055 //
00056 // Port Offsets and Base in PCI Space
00057 //
00058 #define SVGA_LEGACY_BASE_PORT       0x4560
00059 #define SVGA_INDEX_PORT             0x0
00060 #define SVGA_VALUE_PORT             0x1
00061 #define SVGA_BIOS_PORT              0x2
00062 #define SVGA_NUM_PORTS              0x3
00063 #define SVGA_IRQSTATUS_PORT         0x8
00064 
00065 //
00066 // Invalid display ID
00067 //
00068 #define SVGA_INVALID_DISPLAY_ID     0xFFFFFFFF
00069 
00070 //
00071 // Global Maximums
00072 //
00073 #define SVGA_MAX_BITS_PER_PIXEL     32
00074 #define SVGA_MAX_DEPTH              24
00075 #define SVGA_MAX_DISPLAYS           10
00076 #define SVGA_MAX_PSEUDOCOLOR_DEPTH  8
00077 #define SVGA_MAX_PSEUDOCOLORS       (1 << SVGA_MAX_PSEUDOCOLOR_DEPTH)
00078 #define SVGA_NUM_PALETTE_REGS       (3 * SVGA_MAX_PSEUDOCOLORS)
00079 #define SVGA_FB_MAX_SIZE                                                    \
00080    ((((SVGA_MAX_WIDTH * SVGA_MAX_HEIGHT *                                   \
00081        SVGA_MAX_BITS_PER_PIXEL / 8) >> PAGE_SHIFT) + 1) << PAGE_SHIFT)
00082 
00083 //
00084 // Card Registers
00085 //
00086 typedef enum _VMX_SVGA_REGISTERS
00087 {
00088     SVGA_REG_ID,
00089     SVGA_REG_ENABLE,
00090     SVGA_REG_WIDTH,
00091     SVGA_REG_HEIGHT,
00092     SVGA_REG_MAX_WIDTH,
00093     SVGA_REG_MAX_HEIGHT,
00094     SVGA_REG_DEPTH,
00095     SVGA_REG_BITS_PER_PIXEL,
00096     SVGA_REG_PSEUDOCOLOR,
00097     SVGA_REG_RED_MASK,
00098     SVGA_REG_GREEN_MASK,
00099     SVGA_REG_BLUE_MASK,
00100     SVGA_REG_BYTES_PER_LINE,
00101     SVGA_REG_FB_START,
00102     SVGA_REG_FB_OFFSET,
00103     SVGA_REG_VRAM_SIZE,
00104     SVGA_REG_FB_SIZE,
00105     SVGA_REG_CAPABILITIES,
00106     SVGA_REG_MEM_START,
00107     SVGA_REG_MEM_SIZE,
00108     SVGA_REG_CONFIG_DONE,
00109     SVGA_REG_SYNC,
00110     SVGA_REG_BUSY,
00111     SVGA_REG_GUEST_ID,
00112     SVGA_REG_CURSOR_ID,
00113     SVGA_REG_CURSOR_X,
00114     SVGA_REG_CURSOR_Y,
00115     SVGA_REG_CURSOR_ON,
00116     SVGA_REG_HOST_BITS_PER_PIXEL,
00117     SVGA_REG_SCRATCH_SIZE,
00118     SVGA_REG_MEM_REGS,
00119     SVGA_REG_NUM_DISPLAYS,
00120     SVGA_REG_PITCHLOCK,
00121     SVGA_REG_IRQMASK,
00122     SVGA_REG_NUM_GUEST_DISPLAYS,
00123     SVGA_REG_DISPLAY_ID,
00124     SVGA_REG_DISPLAY_IS_PRIMARY,
00125     SVGA_REG_DISPLAY_POSITION_X,
00126     SVGA_REG_DISPLAY_POSITION_Y,
00127     SVGA_REG_DISPLAY_WIDTH,
00128     SVGA_REG_DISPLAY_HEIGHT,
00129     SVGA_REG_TOP,
00130 } VMX_SVGA_REGISTERS;

Generated on Sat May 26 2012 04:36:58 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.