VirtualBox

Changeset 68847 in vbox for trunk/include


Ignore:
Timestamp:
Sep 24, 2017 4:49:07 PM (7 years ago)
Author:
vboxsync
Message:

Additions/x11: global VBoxVideoIPRT.h should not depend on X server includes.
bugref:3810: X11 Guest Additions maintenance

Change include/VBox/Graphics/VBoxVideoIPRT.h to use IPRT port macros instead
of X server ones and therefore no longer to depend on X server header files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/Graphics/VBoxVideoIPRT.h

    r68672 r68847  
    3030#include <iprt/types.h>
    3131
    32 #if !defined VBOX_XPDM_MINIPORT && !defined VBOX_GUESTR3XORGMOD && !defined RT_OS_OS2
     32#if !defined VBOX_XPDM_MINIPORT && !defined RT_OS_OS2
    3333# include <iprt/asm-amd64-x86.h>
    3434#endif
     
    3838# include <ntddvdeo.h> /* sdk, clean */
    3939# include <iprt/nt/Video.h>
    40 #elif defined VBOX_GUESTR3XORGMOD
    41 # include <compiler.h>
    4240#endif
    4341
     
    6664    VideoPortReadPortUlong((PULONG)Port)
    6765   
    68 #elif defined(VBOX_GUESTR3XORGMOD)
    69 
    70 /** Write an 8-bit value to an I/O port. */
    71 # define VBVO_PORT_WRITE_U8(Port, Value) \
    72     outb(Port, Value)
    73 /** Write a 16-bit value to an I/O port. */
    74 # define VBVO_PORT_WRITE_U16(Port, Value) \
    75     outw(Port, Value)
    76 /** Write a 32-bit value to an I/O port. */
    77 # define VBVO_PORT_WRITE_U32(Port, Value) \
    78     outl(Port, Value)
    79 /** Read an 8-bit value from an I/O port. */
    80 # define VBVO_PORT_READ_U8(Port) \
    81     inb(Port)
    82 /** Read a 16-bit value from an I/O port. */
    83 # define VBVO_PORT_READ_U16(Port) \
    84     inw(Port)
    85 /** Read a 32-bit value from an I/O port. */
    86 # define VBVO_PORT_READ_U32(Port) \
    87     inl(Port)
    88 
    8966#else  /** @todo make these explicit */
    9067
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