PCIInternal.h revision 5e9d48273860c5c7e9a28fcfe042a0af3e797899
/* $Id$ */
/** @file
* DevPCI - PCI Internal header - Only for hiding bits of PCIDEVICE.
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* 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 (GPL) 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#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