Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

pci.h File Reference


Detailed Description

PCI - The PCI Controller And Devices.

Definition in file pci.h.

#include <VBox/cdefs.h>
#include <VBox/types.h>
#include <iprt/assert.h>

Go to the source code of this file.

Classes

struct  PCIDevice

Defines

#define PCI_NUM_REGIONS   7
#define PCI_ROM_SLOT   6
PCI Configuration Space Registers
#define VBOX_PCI_BASE_ADDRESS_0   0x10
#define VBOX_PCI_BASE_ADDRESS_1   0x14
#define VBOX_PCI_BASE_ADDRESS_2   0x18
#define VBOX_PCI_BASE_ADDRESS_3   0x1c
#define VBOX_PCI_BASE_ADDRESS_4   0x20
#define VBOX_PCI_BASE_ADDRESS_5   0x24
#define VBOX_PCI_BIST   0x0f
#define VBOX_PCI_BRIDGE_CONTROL   0x3e
#define VBOX_PCI_CACHE_LINE_SIZE   0x0c
#define VBOX_PCI_CAPABILITY_LIST   0x34
#define VBOX_PCI_CARDBUS_CIS   0x28
#define VBOX_PCI_CLASS_BASE   0x0b
#define VBOX_PCI_CLASS_DEVICE   VBOX_PCI_CLASS_SUB
#define VBOX_PCI_CLASS_PROG   0x09
#define VBOX_PCI_CLASS_SUB   0x0a
#define VBOX_PCI_COMMAND   0x04
#define VBOX_PCI_DEVICE_ID   0x02
#define VBOX_PCI_HEADER_TYPE   0x0e
#define VBOX_PCI_INTERRUPT_LINE   0x3c
#define VBOX_PCI_INTERRUPT_PIN   0x3d
#define VBOX_PCI_IO_BASE   0x1c
#define VBOX_PCI_IO_BASE_UPPER16   0x30
#define VBOX_PCI_IO_LIMIT   0x1d
#define VBOX_PCI_IO_LIMIT_UPPER16   0x32
#define VBOX_PCI_LATENCY_TIMER   0x0d
#define VBOX_PCI_MAX_LAT   0x3f
#define VBOX_PCI_MEMORY_BASE   0x20
#define VBOX_PCI_MEMORY_LIMIT   0x22
#define VBOX_PCI_MIN_GNT   0x3e
#define VBOX_PCI_PREF_BASE_UPPER32   0x28
#define VBOX_PCI_PREF_LIMIT_UPPER32   0x2c
#define VBOX_PCI_PREF_MEMORY_BASE   0x24
#define VBOX_PCI_PREF_MEMORY_LIMIT   0x26
#define VBOX_PCI_PRIMARY_BUS   0x18
#define VBOX_PCI_REVISION_ID   0x08
#define VBOX_PCI_ROM_ADDRESS   0x30
#define VBOX_PCI_ROM_ADDRESS_BR   0x38
#define VBOX_PCI_SEC_LATENCY_TIMER   0x1b
#define VBOX_PCI_SEC_STATUS   0x1e
#define VBOX_PCI_SECONDARY_BUS   0x19
#define VBOX_PCI_STATUS   0x06
#define VBOX_PCI_SUBORDINATE_BUS   0x1a
#define VBOX_PCI_SUBSYSTEM_ID   0x2e
#define VBOX_PCI_SUBSYSTEM_VENDOR_ID   0x2c
#define VBOX_PCI_VENDOR_ID   0x00

Typedefs

typedef uint32_t Address
typedef int RTGCPHYS uint32_t cb
typedef int RTGCPHYS uint32_t
PCIADDRESSSPACE 
enmType
typedef int RTGCPHYS GCPhysAddress
typedef struct PCIDevice PCIDEVICE
typedef FNPCICONFIGREAD * PFNPCICONFIGREAD
typedef FNPCICONFIGWRITE * PFNPCICONFIGWRITE
typedef FNPCIIOREGIONMAP * PFNPCIIOREGIONMAP
typedef struct PCIDevicePPCIDEVICE
typedef PFNPCICONFIGREADPPFNPCICONFIGREAD
typedef PFNPCICONFIGWRITEPPFNPCICONFIGWRITE
typedef uint32_t uint32_t u32Value
R3 DevHlp
typedef int iRegion

Enumerations

enum  PCIADDRESSSPACE { PCI_ADDRESS_SPACE_MEM = 0x00, PCI_ADDRESS_SPACE_IO = 0x01, PCI_ADDRESS_SPACE_MEM_PREFETCH = 0x08 }
enum  PCICONFIGCOMMAND { PCI_COMMAND_IOACCESS = 0x0001, PCI_COMMAND_MEMACCESS = 0x0002, PCI_COMMAND_BUSMASTER = 0x0004 }

Functions

typedef DECLCALLBACK (void) FNPCICONFIGWRITE(PPCIDEVICE pPciDev
typedef DECLCALLBACK (uint32_t) FNPCICONFIGREAD(PPCIDEVICE pPciDev
typedef DECLCALLBACK (int) FNPCIIOREGIONMAP(PPCIDEVICE pPciDev
 DECLINLINE (void) PCIDevSetVendorId(PPCIDEVICE pPciDev


Generated by  Doxygen 1.6.0   Back to index