blob: c118236b33959a46273fae7cef647b474cdb7d39 [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("usb_old_xhci_bind") {
rules = "usb_xhci.bind"
output = "usb_xhci_bind.h"
tests = "tests.json"
deps = [
"//src/devices/bind/fuchsia.pci",
"//src/devices/bind/fuchsia.pci:serial",
"//src/devices/bind/fuchsia.pci:serial.usb",
"//src/devices/bind/fuchsia.platform",
]
}
group("tests") {
testonly = true
deps = [ ":usb_old_xhci_bind_test" ]
}
driver_module("xhci-x86") {
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
sources = [
"usb-xhci.cc",
"xhci-device-manager.cc",
"xhci-root-hub.cc",
"xhci-transfer-common.cc",
"xhci-transfer.cc",
"xhci-trb.cc",
"xhci-util.cc",
"xhci.cc",
]
deps = [
":usb_old_xhci_bind",
"//sdk/banjo/fuchsia.hardware.pci",
"//sdk/banjo/fuchsia.hardware.platform.device:fuchsia.hardware.platform.device_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.usb",
"//sdk/banjo/fuchsia.hardware.usb.bus",
"//sdk/banjo/fuchsia.hardware.usb.hci",
"//sdk/banjo/fuchsia.hardware.usb.hub",
"//sdk/banjo/fuchsia.hardware.usb.hubdescriptor",
"//sdk/banjo/fuchsia.hardware.usb.request",
"//sdk/fidl/fuchsia.usb.debug:fuchsia.usb.debug_c",
"//src/devices/bus/lib/device-protocol-pdev",
"//src/devices/lib/driver",
"//src/devices/lib/mmio",
"//src/devices/pci/lib/device-protocol-pci",
"//src/devices/usb/lib/usb",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/public/lib/fbl",
"//zircon/public/lib/hwreg",
"//zircon/public/lib/sync",
"//zircon/public/lib/zx",
"//zircon/system/ulib/xdc-server-utils",
]
}