blob: c625af65462750bd45d6a078783d270c7c174d21 [file] [log] [blame] [edit]
# Copyright 2018 The Fuchsia Authors
#
# 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
library("pcie") {
kernel = true
sources = [
"debug.cpp",
"pci_config.cpp",
"pcie_bridge.cpp",
"pcie_bus_driver.cpp",
"pcie_caps.cpp",
"pcie_device.cpp",
"pcie_irqs.cpp",
"pcie_quirks.cpp",
"pcie_root.cpp",
"pcie_upstream_node.cpp",
]
deps += [
"$zx/kernel/lib/console",
"$zx/kernel/lib/fbl",
"$zx/kernel/lib/pci",
"$zx/system/ulib/region-alloc",
"$zx/system/ulib/zxcpp",
]
public_deps = [
# <dev/pcie_platform.h> has #include <dev/interrupt.h>.
"$zx/kernel/dev/interrupt:headers",
# <dev/pcie_bus_driver.h> has #include <region-alloc/region-alloc.h>.
"$zx/system/ulib/region-alloc:headers",
]
# TODO(mcgrathr): Say why this is needed.
cflags_cc = [ "-Wno-invalid-offsetof" ]
}