VirtualBox

Changeset 68570 in vbox for trunk/include


Ignore:
Timestamp:
Aug 31, 2017 12:10:39 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117787
Message:

merging vbglioc r117736: OS/2 adjustments.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r68565 r68570  
    131131# define VBGL_IOCTL_CATEGORY                        0xc2
    132132# define VBGL_IOCTL_CODE_SIZE(Function, Size)       ((unsigned char)(Function))
     133# define VBGL_IOCTL_CODE_BIG(Function)              ((unsigned char)(Function))
    133134# define VBGL_IOCTL_CATEGORY_FAST                   0xc3 /**< Also defined in VBoxGuestA-os2.asm. */
    134135# define VBGL_IOCTL_CODE_FAST(Function)             ((unsigned char)(Function))
     
    318319} VBGLIOCDRIVERVERSIONINFO, *PVBGLIOCDRIVERVERSIONINFO;
    319320AssertCompileSize(VBGLIOCDRIVERVERSIONINFO, 24 + 20);
     321#ifndef RT_OS_OS2 /* figure this one out... */
    320322AssertCompile(VBGL_IOCTL_DRIVER_VERSION_INFO_SIZE_IN == 24 + 16);
     323#endif
    321324/** @} */
    322325
     
    393396} VBGLIOCHGCMCONNECT, *PVBGLIOCHGCMCONNECT;
    394397AssertCompileSize(VBGLIOCHGCMCONNECT, 24 + 132);
     398#ifndef RT_OS_OS2 /* figure this one out... */
    395399AssertCompile(VBGL_IOCTL_HGCM_CONNECT_SIZE_OUT == 24 + 4);
     400#endif
    396401/** @} */
    397402
     
    906911typedef struct VBOXGUESTOS2IDCCONNECT
    907912{
    908     /** VMMDEV_VERSION. */
     913    /** VBGL_IOC_VERSION. */
    909914    uint32_t u32Version;
    910915    /** Opaque session handle. */
     
    915920     *
    916921     * @returns VBox status code.
    917      * @param   u32Session          The above session handle.
     922     * @param   u32Session          The session handle (PVBOXGUESTSESSION).
    918923     * @param   iFunction           The requested function.
    919      * @param   pvData              The input/output data buffer. The caller ensures that this
    920      *                              cannot be swapped out, or that it's acceptable to take a
    921      *                              page in fault in the current context. If the request doesn't
    922      *                              take input or produces output, apssing NULL is okay.
    923      * @param   cbData              The size of the data buffer.
    924      * @param   pcbDataReturned     Where to store the amount of data that's returned.
    925      *                              This can be NULL if pvData is NULL.
    926      * @todo fix parameters
     924     * @param   pReqHdr             The input/output data buffer.  The caller
     925     *                              ensures that this cannot be swapped out, or that
     926     *                              it's acceptable to take a page in fault in the
     927     *                              current context.  If the request doesn't take
     928     *                              input or produces output, apssing NULL is okay.
     929     * @param   cbReq               The size of the data buffer.
    927930     */
    928     DECLCALLBACKMEMBER(int, pfnServiceEP)(uint32_t u32Session, unsigned iFunction, void *pvData, size_t cbData, size_t *pcbDataReturned);
     931    DECLCALLBACKMEMBER(int, pfnServiceEP)(uint32_t u32Session, unsigned iFunction, PVBGLREQHDR pReqHdr, size_t cbReq);
    929932
    930933    /** The 16-bit service entry point for C code (cdecl).
     
    936939     * int far cdecl
    937940     * VBoxGuestOs2IDCService16(uint32_t u32Session, uint16_t iFunction,
    938      *                          void far *fpvData, uint16_t cbData, uint16_t far *pcbDataReturned);
     941     *                          PVBGLREQHDR fpvData, uint16_t cbData);
    939942     * @endcode
    940943     */
     
    10101013} VBGLIOCIDCCONNECT, *PVBGLIOCIDCCONNECT;
    10111014AssertCompileSize(VBGLIOCIDCCONNECT, 24 + 16 + ARCH_BITS / 8 * 2);
     1015#ifndef RT_OS_OS2 /* figure this one out... */
    10121016AssertCompile(VBGL_IOCTL_IDC_CONNECT_SIZE_IN == 24 + 16);
     1017#endif
    10131018#define VBGL_IOCTL_IDC_CONNECT_MAGIC_COOKIE         UINT32_C(0x55aa4d5a) /**< Magic value for doing an IDC connect. */
    10141019/** @} */
  • trunk/include/VBox/VBoxGuest.mac

    r62476 r68570  
    4242%endif ; RT_OS_OS2
    4343
     44struc VBGLREQHDR
     45    .cbIn               resd 1
     46    .uVersion           resd 1
     47    .uType              resd 1
     48    .rc                 resd 1
     49    .cbOut              resd 1
     50    .uReserved          resd 1
     51endstruc
     52
     53%define VBGL_IOC_VERSION        000010000h
     54
    4455; From VMMDev.h
    4556%define VMMDEV_VERSION_MAJOR    1
Note: See TracChangeset for help on using the changeset viewer.

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