| # Copyright 2019 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 |
| |
| import("//build/cpp/library_headers.gni") |
| |
| library_headers("headers") { |
| headers = [ |
| "dev/interrupt/arm_gicv2_init.h", |
| "dev/interrupt/arm_gicv2_regs.h", |
| "dev/interrupt/arm_gicv2m_msi.h", |
| "dev/interrupt/arm_gicv2m.h", |
| ] |
| public_deps = [ "//sdk/lib/zbi-format" ] |
| } |
| |
| source_set("v2") { |
| sources = [ |
| "arm_gicv2.cc", |
| "arm_gicv2m.cc", |
| "arm_gicv2m_msi.cc", |
| "arm_gicv2m_pcie.cc", |
| ] |
| public_deps = [ ":headers" ] |
| deps = [ |
| ":test", |
| "//zircon/kernel/dev/interrupt", |
| "//zircon/kernel/dev/interrupt/gic/common", |
| "//zircon/kernel/dev/pcie", |
| "//zircon/kernel/dev/pdev/interrupt", |
| "//zircon/kernel/lib/fbl", |
| "//zircon/kernel/lib/init", |
| "//zircon/kernel/lib/kpci", |
| "//zircon/kernel/lib/ktrace", |
| "//zircon/kernel/lib/pow2_range_allocator", |
| "//zircon/kernel/lib/root_resource_filter", |
| "//zircon/kernel/lib/topology", |
| "//zircon/kernel/vm:headers", |
| "//zircon/system/ulib/lazy_init", |
| ] |
| } |
| |
| source_set("test") { |
| # TODO: testonly = true |
| sources = [ "arm_gicv2_test.cc" ] |
| deps = [ |
| ":headers", |
| "//zircon/kernel/lib/fbl", |
| "//zircon/kernel/lib/unittest", |
| ] |
| } |