Changeset 66506 in vbox for trunk/include/VBox/Graphics
- Timestamp:
- Apr 11, 2017 9:59:29 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114506
- Location:
- trunk/include/VBox/Graphics
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/Graphics/HGSMI.h
r65381 r66506 30 30 #define ___VBox_Graphics_HGSMI_h 31 31 32 #include <iprt/assert.h> 33 #include <iprt/types.h> 32 #include <VBoxVideoIPRT.h> 34 33 35 34 #include <HGSMIDefs.h> -
trunk/include/VBox/Graphics/HGSMIDefs.h
r65381 r66506 30 30 #define ___VBox_Graphics_HGSMIDefs_h 31 31 32 #include <iprt/assert.h> 33 #include <iprt/types.h> 32 #include <VBoxVideoIPRT.h> 34 33 35 34 /* HGSMI uses 32 bit offsets and sizes. */ -
trunk/include/VBox/Graphics/HGSMIMemAlloc.h
r65381 r66506 31 31 32 32 #include <HGSMIDefs.h> 33 #include < iprt/list.h>33 #include <VBoxVideoIPRT.h> 34 34 35 35 -
trunk/include/VBox/Graphics/VBoxVideo.h
r65381 r66506 27 27 #define ___VBox_Graphics_VBoxVideo_h 28 28 29 #include <iprt/cdefs.h> 30 #include <iprt/types.h> 31 #include <iprt/assert.h> 29 #include <VBoxVideoIPRT.h> 32 30 33 31 /* this should be in sync with monitorCount <xsd:maxInclusive value="64"/> in src/VBox/Main/xml/VirtualBox-settings-common.xsd */ -
trunk/include/VBox/Graphics/VBoxVideoGuest.h
r65381 r66506 32 32 #include <HGSMIChSetup.h> 33 33 #include <VBoxVideo.h> 34 35 #include <iprt/err.h> /* The functions in here return IPRT errors. */ 36 37 #ifdef VBOX_XPDM_MINIPORT 38 # include <iprt/nt/miniport.h> 39 # include <ntddvdeo.h> /* sdk, clean */ 40 # include <iprt/nt/Video.h> 41 #elif defined VBOX_GUESTR3XORGMOD 42 # include <compiler.h> 43 #else 44 # include <iprt/asm-amd64-x86.h> 45 #endif 34 #include <VBoxVideoIPRT.h> 46 35 47 36 #ifdef VBOX_WDDM_MINIPORT … … 52 41 typedef HGSMIHEAP HGSMIGUESTCMDHEAP; 53 42 # define HGSMIGUESTCMDHEAP_GET(_p) (_p) 54 #endif55 56 #if defined(IN_RING0) && defined(RT_OS_LINUX)57 # define VBVOAssert(a) do {} while(0)58 # define VBVOAssertPtr(a) do {} while(0)59 # define VBVOAssertReturnVoid(a) if (!(a)) return60 # define VBVOAssertRC(a) do {} while(0)61 # define VBVOAssertPtrNullReturnVoid(a) do {} while(0)62 # define VBVOAssertPtrReturnVoid(a) if (!(a)) return63 #else64 # define VBVOAssert Assert65 # define VBVOAssertPtr AssertPtr66 # define VBVOAssertReturnVoid AssertReturnVoid67 # define VBVOAssertRC AssertRC68 # define VBVOAssertPtrNullReturnVoid AssertPtrNullReturnVoid69 # define VBVOAssertPtrReturnVoid AssertPtrReturnVoid70 43 #endif 71 44 … … 134 107 struct VBVABUFFER *pVBVA; 135 108 } VBVABUFFERCONTEXT, *PVBVABUFFERCONTEXT; 136 137 /** @name Helper functions138 * @{ */139 /** Write an 8-bit value to an I/O port. */140 DECLINLINE(void) VBoxVideoCmnPortWriteUchar(RTIOPORT Port, uint8_t Value)141 {142 #ifdef VBOX_XPDM_MINIPORT143 VideoPortWritePortUchar((PUCHAR)Port, Value);144 #elif defined VBOX_GUESTR3XORGMOD145 outb(Port, Value);146 #else /** @todo make these explicit */147 ASMOutU8(Port, Value);148 #endif149 }150 151 /** Write a 16-bit value to an I/O port. */152 DECLINLINE(void) VBoxVideoCmnPortWriteUshort(RTIOPORT Port, uint16_t Value)153 {154 #ifdef VBOX_XPDM_MINIPORT155 VideoPortWritePortUshort((PUSHORT)Port,Value);156 #elif defined VBOX_GUESTR3XORGMOD157 outw(Port, Value);158 #else159 ASMOutU16(Port, Value);160 #endif161 }162 163 /** Write a 32-bit value to an I/O port. */164 DECLINLINE(void) VBoxVideoCmnPortWriteUlong(RTIOPORT Port, uint32_t Value)165 {166 #ifdef VBOX_XPDM_MINIPORT167 VideoPortWritePortUlong((PULONG)Port,Value);168 #elif defined VBOX_GUESTR3XORGMOD169 outl(Port, Value);170 #else171 ASMOutU32(Port, Value);172 #endif173 }174 175 /** Read an 8-bit value from an I/O port. */176 DECLINLINE(uint8_t) VBoxVideoCmnPortReadUchar(RTIOPORT Port)177 {178 #ifdef VBOX_XPDM_MINIPORT179 return VideoPortReadPortUchar((PUCHAR)Port);180 #elif defined VBOX_GUESTR3XORGMOD181 return inb(Port);182 #else183 return ASMInU8(Port);184 #endif185 }186 187 /** Read a 16-bit value from an I/O port. */188 DECLINLINE(uint16_t) VBoxVideoCmnPortReadUshort(RTIOPORT Port)189 {190 #ifdef VBOX_XPDM_MINIPORT191 return VideoPortReadPortUshort((PUSHORT)Port);192 #elif defined VBOX_GUESTR3XORGMOD193 return inw(Port);194 #else195 return ASMInU16(Port);196 #endif197 }198 199 /** Read a 32-bit value from an I/O port. */200 DECLINLINE(uint32_t) VBoxVideoCmnPortReadUlong(RTIOPORT Port)201 {202 #ifdef VBOX_XPDM_MINIPORT203 return VideoPortReadPortUlong((PULONG)Port);204 #elif defined VBOX_GUESTR3XORGMOD205 return inl(Port);206 #else207 return ASMInU32(Port);208 #endif209 }210 211 /** @} */212 109 213 110 /** @name Base HGSMI APIs
Note:
See TracChangeset
for help on using the changeset viewer.