// Copyright 2018 The Fuchsia Authors // Copyright (c) 2012-2015 Travis Geiselbrecht // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #if WITH_KERNEL_PCIE #include #include #include #include #include #include #include #include #include #include static void arm_gicv3_pcie_init(const void* driver_data, uint32_t length) { ASSERT(length >= sizeof(dcfg_arm_gicv3_driver_t)); __UNUSED const dcfg_arm_gicv3_driver_t* driver = reinterpret_cast(driver_data); // When GICv3 MSI support is added, initialize here // Initialize the PCI platform, claiming no MSI support static NoMsiPciePlatformInterface platform_pcie_support; zx_status_t res = PcieBusDriver::InitializeDriver(platform_pcie_support); if (res != ZX_OK) { TRACEF("Failed to initialize PCI bus driver (res %d). " "PCI will be non-functional.\n", res); } } LK_PDEV_INIT(arm_gicv3_pcie_init, KDRV_ARM_GIC_V3, arm_gicv3_pcie_init, LK_INIT_LEVEL_PLATFORM); #endif // if WITH_KERNEL_PCIE