PCIInternal.h revision 5c85b3c44a1183799f6cd41665aed33310dfa26b
/** @file
*
* PCI Internal header - Only for hiding bits of PCIDEVICE.
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
#ifndef __PCIInternal_h__
#define __PCIInternal_h__
/**
* PCI I/O region.
*/
typedef struct PCIIOREGION
{
/** Current PCI mapping address.
* -1 means not mapped. Memory addresses are relative to pci_mem_base. */
/** Callback called when the region is mapped. */
/** Pointer to PCI I/O region. */
typedef PCIIOREGION *PPCIIOREGION;
/**
* PCI Device - Internal data.
*/
typedef struct PCIDEVICEINT
{
/** I/O regions. */
/** Pointer to the PCI bus of the device. */
/** Read config callback. */
/** Write config callback. */
/** The irq assigned to the device. */
/** Set if the specific device fun was requested by PDM.
* If clear the device and it's functions can be relocated to satisfy the slot request of another device. */
bool fRequestedDevFn;
} PCIDEVICEINT;
/* Indicate that PCIDEVICE::Int.s can be declared. */
#define __PCIDEVICEINT_DECLARED__
#endif