VirtualBox

source: vbox/trunk/include/VBox/Graphics/HGSMIBase.h@ 69179

Last change on this file since 69179 was 69179, checked in by vboxsync, 7 years ago

include/VBox/Graphics: Let's try stick to the same MIT license wording everywhere.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/* $Id: HGSMIBase.h 69179 2017-10-23 18:08:20Z vboxsync $ */
2/** @file
3 * VBox Host Guest Shared Memory Interface (HGSMI) - buffer management.
4 */
5
6/*
7 * Copyright (C) 2006-2017 Oracle Corporation
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
23 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25 * OTHER DEALINGS IN THE SOFTWARE.
26 */
27
28
29#ifndef ___VBox_Graphics_HGSMIBase_h___
30#define ___VBox_Graphics_HGSMIBase_h___
31
32#include "HGSMI.h"
33#include "HGSMIContext.h"
34#include "VBoxVideoIPRT.h"
35
36RT_C_DECLS_BEGIN
37
38/** @name Base HGSMI Buffer APIs
39 * @{ */
40
41/** Acknowlege an IRQ. */
42DECLINLINE(void) VBoxHGSMIClearIrq(PHGSMIHOSTCOMMANDCONTEXT pCtx)
43{
44 VBVO_PORT_WRITE_U32(pCtx->port, HGSMIOFFSET_VOID);
45}
46
47DECLHIDDEN(void *) VBoxHGSMIBufferAlloc(PHGSMIGUESTCOMMANDCONTEXT pCtx,
48 HGSMISIZE cbData,
49 uint8_t u8Ch,
50 uint16_t u16Op);
51DECLHIDDEN(void) VBoxHGSMIBufferFree(PHGSMIGUESTCOMMANDCONTEXT pCtx,
52 void *pvBuffer);
53DECLHIDDEN(int) VBoxHGSMIBufferSubmit(PHGSMIGUESTCOMMANDCONTEXT pCtx,
54 void *pvBuffer);
55/** @} */
56
57RT_C_DECLS_END
58
59#endif
Note: See TracBrowser for help on using the repository browser.

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