16df26cacSmrg/* **********************************************************
26df26cacSmrg * Copyright 2007 VMware, Inc.  All rights reserved.
36df26cacSmrg * **********************************************************/
46df26cacSmrg
56df26cacSmrg/*
66df26cacSmrg * svga_overlay.h --
76df26cacSmrg *
86df26cacSmrg *    Definitions for video-overlay support.
96df26cacSmrg */
106df26cacSmrg
116df26cacSmrg#ifndef _SVGA_OVERLAY_H_
126df26cacSmrg#define _SVGA_OVERLAY_H_
136df26cacSmrg
146df26cacSmrg/*
156df26cacSmrg * Video formats we support
166df26cacSmrg */
176df26cacSmrg
186df26cacSmrg#define VMWARE_FOURCC_YV12 0x32315659 /* 'Y' 'V' '1' '2' */
196df26cacSmrg#define VMWARE_FOURCC_YUY2 0x32595559 /* 'Y' 'U' 'Y' '2' */
2016fd1166Smrg#define VMWARE_FOURCC_UYVY 0x59565955 /* 'U' 'Y' 'V' 'Y' */
216df26cacSmrg
226df26cacSmrg#define SVGA_ESCAPE_VMWARE_VIDEO             0x00020000
236df26cacSmrg
246df26cacSmrg#define SVGA_ESCAPE_VMWARE_VIDEO_SET_REGS    0x00020001
256df26cacSmrg        /* FIFO escape layout:
266df26cacSmrg         * Type, Stream Id, (Register Id, Value) pairs */
276df26cacSmrg
286df26cacSmrg#define SVGA_ESCAPE_VMWARE_VIDEO_FLUSH       0x00020002
296df26cacSmrg        /* FIFO escape layout:
306df26cacSmrg         * Type, Stream Id */
316df26cacSmrg
326df26cacSmrgtypedef struct SVGAEscapeVideoSetRegs {
336df26cacSmrg   struct {
346df26cacSmrg      uint32 cmdType;
356df26cacSmrg      uint32 streamId;
366df26cacSmrg   } header;
376df26cacSmrg
386df26cacSmrg   /* May include zero or more items. */
396df26cacSmrg   struct {
406df26cacSmrg      uint32 registerId;
416df26cacSmrg      uint32 value;
426df26cacSmrg   } items[1];
436df26cacSmrg} SVGAEscapeVideoSetRegs;
446df26cacSmrg
456df26cacSmrgtypedef struct SVGAEscapeVideoFlush {
466df26cacSmrg   uint32 cmdType;
476df26cacSmrg   uint32 streamId;
486df26cacSmrg} SVGAEscapeVideoFlush;
496df26cacSmrg
506df26cacSmrg#endif /* _SVGA_OVERLAY_H_ */
51