acrn-hypervisor/hypervisor/include/dm
Tao Yuhong 55b7fae67a HV: pci-vuart: pci based vuart emulation
Add emulation for pci based vuart device mcs9900 at hv land.
add struct pci_vdev_ops vuart_pci_ops, the vdev callbalks for vuart.

How to use
In misc/vm_configs/scenarios/<SCENARIO>/<BOARD>/pci_dev.c, add pci
vuart config to vm_pci_devs[] array. For example:

struct acrn_vm_pci_dev_config vm0_pci_devs[] = {
       /* console vuart setting*/
       {
               .emu_type = PCI_DEV_TYPE_HVEMUL,
               .vbdf.bits = {.b = 0x00U, .d = 0x04U, .f = 0x00U},
               .vdev_ops = &vmcs_ops,
               .vbar_base[0] = 0x80001000,	/* mmio bar */
               .vbar_base[1] = 0x80002000,	/* msix bar */
               .vuart_idx = 0,
       },
       /* communication vuart setting */
       {
               .emu_type = PCI_DEV_TYPE_HVEMUL,
               .vbdf.bits = {.b = 0x00U, .d = 0x05U, .f = 0x00U},
               .vdev_ops = &vmcs_ops,
               .vbar_base[0] = 0x80003000,
               .vbar_base[1] = 0x80004000,
               .vuart_idx = 1,
               .t_vuart.vm_id = 1U,
               .t_vuart.vuart_id = 1U,
       },
}

Tracked-On: #5394
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
Acked-by: Eddie Dong <eddie.dong@Intel.com>
2020-10-30 20:41:34 +08:00
..
io_req.h hv:refine vm & vcpu lock 2020-08-05 13:39:28 +08:00
ivshmem.h hv: enable doorbell for hv-land ivshmem device 2020-10-26 08:44:13 +08:00
mmio_dev.h hv: mmio_dev: add hypercall to support mmio device pass through 2020-07-23 20:13:20 +08:00
vacpi.h pci: mcfg: limit device bus numbers which could access by ECAM 2020-09-09 09:31:56 +08:00
vgpio.h hv: add vgpio device model support 2020-09-07 14:52:02 +08:00
vioapic.h hv: add vgpio device model support 2020-09-07 14:52:02 +08:00
vmcs9900.h HV: pci-vuart: pci based vuart emulation 2020-10-30 20:41:34 +08:00
vpci.h hv: add functions to initialize vmsix capability 2020-10-26 08:44:13 +08:00
vpic.h hv[v2]: Remove deprecated term in vPIC submodule 2020-09-01 09:30:08 +08:00
vuart.h HV: decouple legacy vuart interface from acrn_vuart layer 2020-10-30 20:41:34 +08:00