acrn-config: update default pci_dev.c

update all default pci_dev.c under
misc/vm_configs/scenarios/<scenario>/<platform> for non-xml compilation

Tracked-On: #5425
Signed-off-by: Yang Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
Yang Yu-chu 2020-11-17 13:23:48 -08:00 committed by wenlingz
parent 79348c431f
commit ec8af42ab3
12 changed files with 28 additions and 1 deletions

View File

@ -10,3 +10,5 @@
#include <vbar_base.h> #include <vbar_base.h>
#include <mmu.h> #include <mmu.h>
#include <page.h> #include <page.h>
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];

View File

@ -10,3 +10,5 @@
#include <vbar_base.h> #include <vbar_base.h>
#include <mmu.h> #include <mmu.h>
#include <page.h> #include <page.h>
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];

View File

@ -10,3 +10,5 @@
#include <vbar_base.h> #include <vbar_base.h>
#include <mmu.h> #include <mmu.h>
#include <page.h> #include <page.h>
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];

View File

@ -10,3 +10,5 @@
#include <vbar_base.h> #include <vbar_base.h>
#include <mmu.h> #include <mmu.h>
#include <page.h> #include <page.h>
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];

View File

@ -22,6 +22,7 @@
* TODO: add DEV_PCICOMMON macro to initialize emu_type, vbdf and vdev_ops * TODO: add DEV_PCICOMMON macro to initialize emu_type, vbdf and vdev_ops
* to simplify the code. * to simplify the code.
*/ */
struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = { struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = {
{ {
.emu_type = PCI_DEV_TYPE_HVEMUL, .emu_type = PCI_DEV_TYPE_HVEMUL,
@ -36,7 +37,7 @@ struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = {
{ {
.emu_type = PCI_DEV_TYPE_PTDEV, .emu_type = PCI_DEV_TYPE_PTDEV,
.vbdf.bits = {.b = 0x00U, .d = 0x02U, .f = 0x00U}, .vbdf.bits = {.b = 0x00U, .d = 0x02U, .f = 0x00U},
PTDEV(NON_VOLATILE_MEMORY_CONTROLLER_0), PTDEV(NON_VOLATILE_MEMORY_CONTROLLER_1),
}, },
{ {
.emu_type = PCI_DEV_TYPE_HVEMUL, .emu_type = PCI_DEV_TYPE_HVEMUL,
@ -47,6 +48,8 @@ struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = {
}, },
}; };
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];
struct acrn_vm_pci_dev_config vm2_pci_devs[VM2_CONFIG_PCI_DEV_NUM] = { struct acrn_vm_pci_dev_config vm2_pci_devs[VM2_CONFIG_PCI_DEV_NUM] = {
{ {
.emu_type = PCI_DEV_TYPE_HVEMUL, .emu_type = PCI_DEV_TYPE_HVEMUL,

View File

@ -22,6 +22,7 @@
* TODO: add DEV_PCICOMMON macro to initialize emu_type, vbdf and vdev_ops * TODO: add DEV_PCICOMMON macro to initialize emu_type, vbdf and vdev_ops
* to simplify the code. * to simplify the code.
*/ */
struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = { struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = {
{ {
.emu_type = PCI_DEV_TYPE_HVEMUL, .emu_type = PCI_DEV_TYPE_HVEMUL,
@ -47,6 +48,8 @@ struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = {
}, },
}; };
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];
struct acrn_vm_pci_dev_config vm2_pci_devs[VM2_CONFIG_PCI_DEV_NUM] = { struct acrn_vm_pci_dev_config vm2_pci_devs[VM2_CONFIG_PCI_DEV_NUM] = {
{ {
.emu_type = PCI_DEV_TYPE_HVEMUL, .emu_type = PCI_DEV_TYPE_HVEMUL,

View File

@ -22,6 +22,7 @@
* TODO: add DEV_PCICOMMON macro to initialize emu_type, vbdf and vdev_ops * TODO: add DEV_PCICOMMON macro to initialize emu_type, vbdf and vdev_ops
* to simplify the code. * to simplify the code.
*/ */
struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = { struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = {
{ {
.emu_type = PCI_DEV_TYPE_HVEMUL, .emu_type = PCI_DEV_TYPE_HVEMUL,
@ -47,6 +48,8 @@ struct acrn_vm_pci_dev_config vm0_pci_devs[VM0_CONFIG_PCI_DEV_NUM] = {
}, },
}; };
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];
struct acrn_vm_pci_dev_config vm2_pci_devs[VM2_CONFIG_PCI_DEV_NUM] = { struct acrn_vm_pci_dev_config vm2_pci_devs[VM2_CONFIG_PCI_DEV_NUM] = {
{ {
.emu_type = PCI_DEV_TYPE_HVEMUL, .emu_type = PCI_DEV_TYPE_HVEMUL,

View File

@ -10,3 +10,5 @@
#include <vbar_base.h> #include <vbar_base.h>
#include <mmu.h> #include <mmu.h>
#include <page.h> #include <page.h>
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];

View File

@ -10,3 +10,5 @@
#include <vbar_base.h> #include <vbar_base.h>
#include <mmu.h> #include <mmu.h>
#include <page.h> #include <page.h>
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];

View File

@ -10,3 +10,5 @@
#include <vbar_base.h> #include <vbar_base.h>
#include <mmu.h> #include <mmu.h>
#include <page.h> #include <page.h>
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];

View File

@ -10,3 +10,5 @@
#include <vbar_base.h> #include <vbar_base.h>
#include <mmu.h> #include <mmu.h>
#include <page.h> #include <page.h>
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];

View File

@ -10,3 +10,5 @@
#include <vbar_base.h> #include <vbar_base.h>
#include <mmu.h> #include <mmu.h>
#include <page.h> #include <page.h>
struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];