VirtualBox

Changeset 45003 in vbox


Ignore:
Timestamp:
Mar 12, 2013 8:50:06 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84231
Message:

Additions/x11/vboxvideo: more dependency breaking.

File:
1 edited

Legend:

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

    r44528 r45003  
    3939# include <Video.h>
    4040RT_C_DECLS_END
     41#elif defined VBOX_GUESTR3XORGMOD
     42# include <compiler.h>
    4143#else
    4244# include <iprt/asm-amd64-x86.h>
     
    124126#ifdef VBOX_XPDM_MINIPORT
    125127    VideoPortWritePortUchar((PUCHAR)Port, Value);
     128#elif defined VBOX_GUESTR3XORGMOD
     129    outb(Port, Value);
    126130#else  /** @todo make these explicit */
    127131    ASMOutU8(Port, Value);
     
    134138#ifdef VBOX_XPDM_MINIPORT
    135139    VideoPortWritePortUshort((PUSHORT)Port,Value);
     140#elif defined VBOX_GUESTR3XORGMOD
     141    outw(Port, Value);
    136142#else
    137143    ASMOutU16(Port, Value);
     
    144150#ifdef VBOX_XPDM_MINIPORT
    145151    VideoPortWritePortUlong((PULONG)Port,Value);
     152#elif defined VBOX_GUESTR3XORGMOD
     153    outl(Port, Value);
    146154#else
    147155    ASMOutU32(Port, Value);
     
    154162#ifdef VBOX_XPDM_MINIPORT
    155163    return VideoPortReadPortUchar((PUCHAR)Port);
     164#elif defined VBOX_GUESTR3XORGMOD
     165    return inb(Port);
    156166#else
    157167    return ASMInU8(Port);
     
    164174#ifdef VBOX_XPDM_MINIPORT
    165175    return VideoPortReadPortUshort((PUSHORT)Port);
     176#elif defined VBOX_GUESTR3XORGMOD
     177    return inw(Port);
    166178#else
    167179    return ASMInU16(Port);
     
    174186#ifdef VBOX_XPDM_MINIPORT
    175187    return VideoPortReadPortUlong((PULONG)Port);
     188#elif defined VBOX_GUESTR3XORGMOD
     189    return inl(Port);
    176190#else
    177191    return ASMInU32(Port);
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