add files missed by CVS

This commit is contained in:
matthieu 2008-07-29 20:25:40 +00:00
parent e36ab5c5ac
commit 53ea367272
4 changed files with 1408 additions and 0 deletions

View File

@ -0,0 +1,30 @@
/* **********************************************************
* Copyright 2007 VMware, Inc. All rights reserved.
* **********************************************************/
/*
* svga_escape.h --
*
* Definitions for our own (vendor-specific) SVGA Escape commands.
*/
#ifndef _SVGA_ESCAPE_H_
#define _SVGA_ESCAPE_H_
/*
* Namespace IDs for the escape command
*/
#define SVGA_ESCAPE_NSID_VMWARE 0x00000000
#define SVGA_ESCAPE_NSID_DEVEL 0xFFFFFFFF
/*
* Within SVGA_ESCAPE_NSID_VMWARE, we multiplex commands according to
* the first DWORD of escape data (after the nsID and size). As a
* guideline we're using the high word and low word as a major and
* minor command number, respectively.
*/
#define SVGA_ESCAPE_VMWARE_MAJOR_MASK 0xFFFF0000
#endif /* _SVGA_ESCAPE_H_ */

View File

@ -0,0 +1,48 @@
/* **********************************************************
* Copyright (C) 2007 VMware, Inc. All Rights Reserved
* **********************************************************/
#ifndef _SVGA_MODES_H_
#define _SVGA_MODES_H_
#define INCLUDE_ALLOW_USERLEVEL
#include "includeCheck.h"
#define SVGA_DEFAULT_MODES \
/* 4:3 modes */ \
SVGA_DEFAULT_MODE( 320, 240) \
SVGA_DEFAULT_MODE( 400, 300) \
SVGA_DEFAULT_MODE( 512, 384) \
SVGA_DEFAULT_MODE( 640, 480) \
SVGA_DEFAULT_MODE( 800, 600) \
SVGA_DEFAULT_MODE(1024, 768) \
SVGA_DEFAULT_MODE(1152, 864) \
SVGA_DEFAULT_MODE(1280, 960) \
SVGA_DEFAULT_MODE(1400, 1050) \
SVGA_DEFAULT_MODE(1600, 1200) \
SVGA_DEFAULT_MODE(1920, 1440) \
SVGA_DEFAULT_MODE(2048, 1536) \
SVGA_DEFAULT_MODE(2560, 1920) \
/* 16:9 modes */ \
SVGA_DEFAULT_MODE( 854, 480) \
SVGA_DEFAULT_MODE(1280, 720) \
SVGA_DEFAULT_MODE(1366, 768) \
SVGA_DEFAULT_MODE(1920, 1080) \
/* 16:10 modes */ \
SVGA_DEFAULT_MODE(1280, 800) \
SVGA_DEFAULT_MODE(1440, 900) \
SVGA_DEFAULT_MODE(1680, 1050) \
SVGA_DEFAULT_MODE(1920, 1200) \
SVGA_DEFAULT_MODE(2560, 1600) \
/* DVD modes */ \
SVGA_DEFAULT_MODE( 720, 480) \
SVGA_DEFAULT_MODE( 720, 576) \
/* Odd modes */ \
SVGA_DEFAULT_MODE( 320, 200) \
SVGA_DEFAULT_MODE( 640, 400) \
SVGA_DEFAULT_MODE( 800, 480) \
SVGA_DEFAULT_MODE(1280, 768) \
SVGA_DEFAULT_MODE(1280, 1024)
#endif /* _SVGA_MODES_H_ */

View File

@ -0,0 +1,50 @@
/* **********************************************************
* Copyright 2007 VMware, Inc. All rights reserved.
* **********************************************************/
/*
* svga_overlay.h --
*
* Definitions for video-overlay support.
*/
#ifndef _SVGA_OVERLAY_H_
#define _SVGA_OVERLAY_H_
/*
* Video formats we support
*/
#define VMWARE_FOURCC_YV12 0x32315659 /* 'Y' 'V' '1' '2' */
#define VMWARE_FOURCC_YUY2 0x32595559 /* 'Y' 'U' 'Y' '2' */
#define VMWARE_FOURCC_UYVY 0x59565955 /* 'U' 'Y' 'V' 'Y' */
#define SVGA_ESCAPE_VMWARE_VIDEO 0x00020000
#define SVGA_ESCAPE_VMWARE_VIDEO_SET_REGS 0x00020001
/* FIFO escape layout:
* Type, Stream Id, (Register Id, Value) pairs */
#define SVGA_ESCAPE_VMWARE_VIDEO_FLUSH 0x00020002
/* FIFO escape layout:
* Type, Stream Id */
typedef struct SVGAEscapeVideoSetRegs {
struct {
uint32 cmdType;
uint32 streamId;
} header;
/* May include zero or more items. */
struct {
uint32 registerId;
uint32 value;
} items[1];
} SVGAEscapeVideoSetRegs;
typedef struct SVGAEscapeVideoFlush {
uint32 cmdType;
uint32 streamId;
} SVGAEscapeVideoFlush;
#endif /* _SVGA_OVERLAY_H_ */

File diff suppressed because it is too large Load Diff