blob: e1fd8436fd203f1c9636e7aaa68463bc409535f3 [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/bind/bind.gni")
import("//build/config/fuchsia/rules.gni")
bind_rules("nvme_bind") {
rules = "nvme.bind"
output = "nvme_bind.h"
tests = "bind_tests.json"
deps = [
"//src/devices/bind/fuchsia.pci",
"//src/devices/bind/fuchsia.pci.massstorage",
]
}
group("tests") {
testonly = true
deps = [ ":nvme_bind_test" ]
}
driver_module("nvme") {
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "nvme.c" ]
deps = [
":nvme_bind",
"//sdk/banjo/fuchsia.hardware.block",
"//sdk/banjo/fuchsia.hardware.pci",
"//src/devices/lib/driver",
"//src/devices/pci/lib/device-protocol-pci",
"//src/devices/pci/lib/pci",
"//src/lib/ddk",
"//zircon/public/lib/sync",
]
}