VirtualBox

source: vbox/trunk/src/VBox/Main/include/PCIRawDevImpl.h@ 98341

Last change on this file since 98341 was 98274, checked in by vboxsync, 22 months ago

Main/PCIRawDevImpl.cpp: rc -> hrc/vrc. bugref:10223

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: PCIRawDevImpl.h 98274 2023-01-24 11:19:16Z vboxsync $ */
2/** @file
3 * VirtualBox Driver interface to raw PCI device
4 */
5
6/*
7 * Copyright (C) 2010-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28#ifndef MAIN_INCLUDED_PCIRawDevImpl_h
29#define MAIN_INCLUDED_PCIRawDevImpl_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34#include <VBox/vmm/pdmdrv.h>
35
36class Console;
37struct DRVMAINPCIRAWDEV;
38
39class PCIRawDev
40{
41 public:
42 PCIRawDev(Console *console);
43 virtual ~PCIRawDev();
44
45 static const PDMDRVREG DrvReg;
46
47 Console *getParent() const
48 {
49 return mParent;
50 }
51
52 private:
53 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
54 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
55 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
56 static DECLCALLBACK(int) drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName,
57 uint32_t uHostPCIAddress, uint32_t uGuestPCIAddress,
58 int vrc);
59
60 Console * const mParent;
61 struct DRVMAINPCIRAWDEV *mpDrv;
62};
63
64#endif /* !MAIN_INCLUDED_PCIRawDevImpl_h */
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