From: Jan Kiszka <[email protected]> This will be needed when pci_cell_init becomes static. No functional changes.
Signed-off-by: Jan Kiszka <[email protected]> --- hypervisor/pci.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/hypervisor/pci.c b/hypervisor/pci.c index 2f95dd742..1db147899 100644 --- a/hypervisor/pci.c +++ b/hypervisor/pci.c @@ -355,26 +355,6 @@ enum pci_access pci_cfg_write_moderate(struct pci_device *device, u16 address, return PCI_ACCESS_PERFORM; } -/** - * Initialization of PCI subsystem. - * - * @return 0 on success, negative error code otherwise. - */ -int pci_init(void) -{ - mmcfg_start = system_config->platform_info.pci_mmconfig_base; - end_bus = system_config->platform_info.pci_mmconfig_end_bus; - mmcfg_size = (end_bus + 1) * 256 * 4096; - - if (mmcfg_start != 0 && !system_config->platform_info.pci_is_virtual) { - pci_space = paging_map_device(mmcfg_start, mmcfg_size); - if (!pci_space) - return -ENOMEM; - } - - return pci_cell_init(&root_cell); -} - static enum mmio_result pci_msix_access_handler(void *arg, struct mmio_access *mmio) { @@ -847,6 +827,26 @@ error: } /** + * Initialization of PCI subsystem. + * + * @return 0 on success, negative error code otherwise. + */ +int pci_init(void) +{ + mmcfg_start = system_config->platform_info.pci_mmconfig_base; + end_bus = system_config->platform_info.pci_mmconfig_end_bus; + mmcfg_size = (end_bus + 1) * 256 * 4096; + + if (mmcfg_start != 0 && !system_config->platform_info.pci_is_virtual) { + pci_space = paging_map_device(mmcfg_start, mmcfg_size); + if (!pci_space) + return -ENOMEM; + } + + return pci_cell_init(&root_cell); +} + +/** * Shut down the PCI layer during hypervisor deactivation. */ void pci_shutdown(void) -- 2.13.6 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
