mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
HV: merge partition_mode.c and sharing_mode.c's code into vpci.c
Delete the 2 files and merge their code into vpci.c: hypervisor/dm/vpci/partition_mode.c hypervisor/dm/vpci/sharing_mode.c And change the Makefile accordingly Change PCI_PRIV_H_ to VPCI_PRIV_H_ in vpci_priv.h Some misra c fix: Add @pre for functions Add const to function parameters Tracked-On: #2534 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
320bf18321
commit
3be6c6593f
@@ -210,9 +210,13 @@ int32_t vmsix_cfgwrite(struct pci_vdev *vdev, uint32_t offset, uint32_t bytes, u
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void vmsix_table_rw(struct pci_vdev *vdev, struct mmio_request *mmio, uint32_t offset)
|
||||
/**
|
||||
* @pre vdev != NULL
|
||||
* @pre mmio != NULL
|
||||
*/
|
||||
static void vmsix_table_rw(const struct pci_vdev *vdev, struct mmio_request *mmio, uint32_t offset)
|
||||
{
|
||||
struct msix_table_entry *entry;
|
||||
const struct msix_table_entry *entry;
|
||||
uint32_t vector_control, entry_offset, table_offset, index;
|
||||
bool message_changed = false;
|
||||
bool unmasked;
|
||||
|
Reference in New Issue
Block a user