[37802] | 1 | /* $Id: PCIRawDevImpl.h 106061 2024-09-16 14:03:52Z vboxsync $ */
|
---|
| 2 | /** @file
|
---|
| 3 | * VirtualBox Driver interface to raw PCI device
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
[106061] | 7 | * Copyright (C) 2010-2024 Oracle and/or its affiliates.
|
---|
[37802] | 8 | *
|
---|
[96407] | 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
|
---|
[37802] | 26 | */
|
---|
| 27 |
|
---|
[76562] | 28 | #ifndef MAIN_INCLUDED_PCIRawDevImpl_h
|
---|
| 29 | #define MAIN_INCLUDED_PCIRawDevImpl_h
|
---|
[76487] | 30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
| 31 | # pragma once
|
---|
| 32 | #endif
|
---|
[37802] | 33 |
|
---|
| 34 | #include <VBox/vmm/pdmdrv.h>
|
---|
| 35 |
|
---|
| 36 | class Console;
|
---|
| 37 | struct DRVMAINPCIRAWDEV;
|
---|
| 38 |
|
---|
[42551] | 39 | class PCIRawDev
|
---|
[37802] | 40 | {
|
---|
| 41 | public:
|
---|
[42551] | 42 | PCIRawDev(Console *console);
|
---|
| 43 | virtual ~PCIRawDev();
|
---|
[37802] | 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,
|
---|
[42551] | 57 | uint32_t uHostPCIAddress, uint32_t uGuestPCIAddress,
|
---|
[98274] | 58 | int vrc);
|
---|
[37802] | 59 |
|
---|
| 60 | Console * const mParent;
|
---|
[81354] | 61 | struct DRVMAINPCIRAWDEV *mpDrv;
|
---|
[37802] | 62 | };
|
---|
| 63 |
|
---|
[76562] | 64 | #endif /* !MAIN_INCLUDED_PCIRawDevImpl_h */
|
---|