VirtualBox

Changeset 19464 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 6, 2009 9:12:09 PM (16 years ago)
Author:
vboxsync
Message:

HGSMI support makefile fixes, basics for passing ddraw command to host

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxVideo.h

    r19431 r19464  
    288288#define VBVA_ENABLE       7
    289289#define VBVA_MOUSE_POINTER_SHAPE 8
     290#ifdef VBOX_WITH_VIDEOHWACCEL
     291# define VBVA_INFO_VHWA   9
     292# define VBVA_VHWA_CMD    10
     293
     294typedef enum
     295{
     296    VBVAVHWACMD_TYPE_SURF_CREATE = 1,
     297    VBVAVHWACMD_TYPE_SURF_DESTROY
     298} VBVAVHWACMD_TYPE;
     299
     300typedef struct _VBVAVHWACMD_HDR
     301{
     302    VBVAVHWACMD_TYPE enmCmd;
     303    char body[1];
     304} VBVAVHWACMD_HDR;
     305
     306#define VBVAVHWACMD_SIZE(_tCmd) (RT_OFFSETOF(VBVAVHWACMD_HDR, body) + sizeof(_tCmd))
     307typedef unsigned int VBVAVHWACMD_LENGTH;
     308typedef uint64_t VBVAVHWA_SURFHANDLE;
     309#define VBVAVHWA_SURFHANDLE_INVALID 0
     310#define VBVAVHWACMD_BODY(_p, _t) ((_t*)(_p)->body)
     311
     312typedef struct _VBVAVHWA_RECTL
     313{
     314    int16_t x;
     315    int16_t y;
     316    uint16_t w;
     317    uint16_t h;
     318} VBVAVHWA_RECTL;
     319
     320#define VBVAVHWASURF_PRIMARY      0x00000001
     321#define VBVAVHWASURF_OVERLAY      0x00000002
     322
     323typedef struct _VBVAVHWA_SURFINFO
     324{
     325    uint32_t surfChars;
     326    VBVAVHWA_RECTL rectl;
     327} VBVAVHWA_SURFINFO;
     328
     329typedef struct _VBVAVHWACMD_SURF_CREATE
     330{
     331    union
     332    {
     333        struct
     334        {
     335            VBVAVHWA_SURFINFO SurfInfo;
     336        } in;
     337
     338        struct
     339        {
     340            int rc;
     341            VBVAVHWA_SURFHANDLE hSurf;
     342        } out;
     343    } u;
     344} VBVAVHWACMD_SURF_CREATE;
     345
     346typedef struct _VBVAVHWACMD_SURF_DESTROY
     347{
     348    union
     349    {
     350        struct
     351        {
     352            VBVAVHWA_SURFHANDLE hSurf;
     353        } in;
     354
     355        struct
     356        {
     357            int rc;
     358        } out;
     359    } u;
     360} VBVAVHWACMD_SURF_DESTROY;
     361
     362#endif
     363
    290364
    291365/* VBVACONF32::u32Index */
     
    378452    /* The host result. */
    379453    uint32_t u32Result;
    380    
     454
    381455    /* VBOX_MOUSE_POINTER_* bit flags. */
    382456    uint32_t fu32Flags;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette