NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
nvme_pci_type_config.h File Reference
Include dependency graph for nvme_pci_type_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bar_memory_layout_config
 
struct  bar_region_config
 
struct  bar_db_region_config
 

Macros

#define NVME_TYPE_NAME   "NVME Type"
 
#define PCI_TYPE_DEVICE_ID   0x6001
 
#define PCI_TYPE_VENDOR_ID   0x15b3
 
#define PCI_TYPE_SUBSYSTEM_ID   0x0051
 
#define PCI_TYPE_SUBSYSTEM_VENDOR_ID   0x15b3
 
#define PCI_TYPE_REVISION_ID   0
 
#define PCI_TYPE_CLASS_CODE   0x010802
 
#define PCI_TYPE_NUM_BAR_MEMORY_LAYOUT   2
 
#define PCI_TYPE_NUM_MSIX   4
 
#define PCI_TYPE_NUM_BAR_MSIX_TABLE_REGIONS   1
 
#define PCI_TYPE_NUM_BAR_MSIX_PBA_REGIONS   1
 
#define PCI_TYPE_NUM_BAR_DB_REGIONS   1
 
#define PCI_TYPE_NUM_BAR_STATEFUL_REGIONS   1
 
#define PCI_TYPE_MAX_STATEFUL_REGION_SIZE   2048
 

Variables

static const struct bar_memory_layout_config layout_configs [PCI_TYPE_NUM_BAR_MEMORY_LAYOUT]
 
static const struct bar_region_config msix_table_configs [PCI_TYPE_NUM_BAR_MSIX_TABLE_REGIONS]
 
static const struct bar_region_config msix_pba_configs [PCI_TYPE_NUM_BAR_MSIX_PBA_REGIONS]
 
static const struct bar_db_region_config db_configs [PCI_TYPE_NUM_BAR_DB_REGIONS]
 
static const struct bar_region_config stateful_configs [PCI_TYPE_NUM_BAR_STATEFUL_REGIONS]
 

Macro Definition Documentation

◆ NVME_TYPE_NAME

#define NVME_TYPE_NAME   "NVME Type"

Definition at line 31 of file nvme_pci_type_config.h.

◆ PCI_TYPE_CLASS_CODE

#define PCI_TYPE_CLASS_CODE   0x010802

Definition at line 38 of file nvme_pci_type_config.h.

◆ PCI_TYPE_DEVICE_ID

#define PCI_TYPE_DEVICE_ID   0x6001

Definition at line 33 of file nvme_pci_type_config.h.

◆ PCI_TYPE_MAX_STATEFUL_REGION_SIZE

#define PCI_TYPE_MAX_STATEFUL_REGION_SIZE   2048

Definition at line 122 of file nvme_pci_type_config.h.

◆ PCI_TYPE_NUM_BAR_DB_REGIONS

#define PCI_TYPE_NUM_BAR_DB_REGIONS   1

Definition at line 106 of file nvme_pci_type_config.h.

◆ PCI_TYPE_NUM_BAR_MEMORY_LAYOUT

#define PCI_TYPE_NUM_BAR_MEMORY_LAYOUT   2

Definition at line 63 of file nvme_pci_type_config.h.

◆ PCI_TYPE_NUM_BAR_MSIX_PBA_REGIONS

#define PCI_TYPE_NUM_BAR_MSIX_PBA_REGIONS   1

Definition at line 85 of file nvme_pci_type_config.h.

◆ PCI_TYPE_NUM_BAR_MSIX_TABLE_REGIONS

#define PCI_TYPE_NUM_BAR_MSIX_TABLE_REGIONS   1

Definition at line 84 of file nvme_pci_type_config.h.

◆ PCI_TYPE_NUM_BAR_STATEFUL_REGIONS

#define PCI_TYPE_NUM_BAR_STATEFUL_REGIONS   1

Definition at line 121 of file nvme_pci_type_config.h.

◆ PCI_TYPE_NUM_MSIX

#define PCI_TYPE_NUM_MSIX   4

Definition at line 83 of file nvme_pci_type_config.h.

◆ PCI_TYPE_REVISION_ID

#define PCI_TYPE_REVISION_ID   0

Definition at line 37 of file nvme_pci_type_config.h.

◆ PCI_TYPE_SUBSYSTEM_ID

#define PCI_TYPE_SUBSYSTEM_ID   0x0051

Definition at line 35 of file nvme_pci_type_config.h.

◆ PCI_TYPE_SUBSYSTEM_VENDOR_ID

#define PCI_TYPE_SUBSYSTEM_VENDOR_ID   0x15b3

Definition at line 36 of file nvme_pci_type_config.h.

◆ PCI_TYPE_VENDOR_ID

#define PCI_TYPE_VENDOR_ID   0x15b3

Definition at line 34 of file nvme_pci_type_config.h.

Variable Documentation

◆ db_configs

const struct bar_db_region_config db_configs[PCI_TYPE_NUM_BAR_DB_REGIONS]
static
Initial value:
= {
[0] =
{
.region.bar_id = 0,
.region.start_address = 0x1000,
.region.size = (1 << 12),
.log_db_size = 0x2,
.log_db_stride_size = 0x2,
.with_data = false,
},
}

Definition at line 1 of file nvme_pci_type_config.h.

◆ layout_configs

const struct bar_memory_layout_config layout_configs[PCI_TYPE_NUM_BAR_MEMORY_LAYOUT]
static
Initial value:
= {
[0] =
{
.bar_id = 0,
.log_size = 0xf,
.prefetchable = 0,
},
[1] =
{
.bar_id = 1,
.log_size = 0x0,
.prefetchable = 0,
},
}
@ DOCA_DEVEMU_PCI_BAR_MEM_TYPE_64_BIT

Definition at line 1 of file nvme_pci_type_config.h.

◆ msix_pba_configs

const struct bar_region_config msix_pba_configs[PCI_TYPE_NUM_BAR_MSIX_PBA_REGIONS]
static
Initial value:
= {
[0] =
{
.bar_id = 0,
.start_address = 0x3000,
.size = (1 << 12),
},
}

Definition at line 1 of file nvme_pci_type_config.h.

◆ msix_table_configs

const struct bar_region_config msix_table_configs[PCI_TYPE_NUM_BAR_MSIX_TABLE_REGIONS]
static
Initial value:
= {
[0] =
{
.bar_id = 0,
.start_address = 0x2000,
.size = (1 << 12),
},
}

Definition at line 1 of file nvme_pci_type_config.h.

◆ stateful_configs

const struct bar_region_config stateful_configs[PCI_TYPE_NUM_BAR_STATEFUL_REGIONS]
static
Initial value:
= {
[0] =
{
.bar_id = 0,
.start_address = 0x0000,
.size = (1 << 7),
},
}

Definition at line 1 of file nvme_pci_type_config.h.