blob: d729360a7546a2ff4bfaf69bd4b15b4fb0e35cb5 [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/cpp/library_headers.gni")
import("//build/cpp/sdk_source_set.gni")
import("//build/cpp/sdk_static_library.gni")
import("//build/zircon/zx_library.gni")
group("tests") {
testonly = true
deps = [ "tests" ]
}
config("include") {
include_dirs = [ "include" ]
}
# This needs to be static_library rather than source_set, as we need
# Unix linking rules to apply. This is so that only the object files
# corresponding to the used functions will be linked to the final binary.
sdk_static_library("ddk") {
category = "experimental"
sdk_name = "ddk"
public = [
"include/lib/ddk/binding_driver.h",
"include/lib/ddk/binding_priv.h",
"include/lib/ddk/debug.h",
"include/lib/ddk/device.h",
"include/lib/ddk/driver.h",
"include/lib/ddk/hw/arch_ops.h",
"include/lib/ddk/hw/inout.h",
"include/lib/ddk/io-buffer.h",
"include/lib/ddk/metadata.h",
"include/lib/ddk/phys-iter.h",
"include/lib/ddk/protodefs.h",
"include/lib/ddk/trace/event.h",
]
# These headers will error out if included directly from user code.
sdk_headers_for_internal_use = [ "include/lib/ddk/protodefs.h" ]
if (is_fuchsia) {
sources = [
"io-buffer.c",
"macros.h",
"phys-iter.c",
]
}
public_configs = [ ":include" ]
public_deps = [
# <ddk/io-buffer.h> has #include <zircon/syscalls.h>.
"//sdk/lib/driver/runtime:driver_runtime",
"//sdk/lib/zbi-format",
"//zircon/system/ulib/async:async",
"//zircon/system/ulib/ddk-platform-defs",
"//zircon/system/ulib/syslog:syslog-headers",
]
if (is_fuchsia) {
public_deps += [
"//zircon/system/ulib/trace",
"//zircon/system/ulib/trace-engine",
]
}
deps = [ "//zircon/system/ulib/sync" ]
# TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
# New drivers should be written for DFv2. If you need to target a board stuck on DFv1,
# it is acceptable to add an entry to this list.
#
# To remove items from the allowlist, please send a change to one of the OWNERS of
# this file to remove an element from the visibility list below.
#
# Please allowlist entire directories rather than individual targets as it
# requires less allowlist churn over time.
visibility = [
"//examples/drivers/transport/banjo:*",
"//examples/drivers/transport/banjo/v1:*",
"//sdk/banjo/*",
"//sdk/fidl/*",
"//sdk/lib/driver/devicetree/visitors/*",
"//sdk/lib/driver_test_realm:*",
"//src/camera/drivers/bus/aml_mipicsi:*",
"//src/camera/drivers/controller:*",
"//src/camera/drivers/hw_accel/gdc:*",
"//src/camera/drivers/hw_accel/ge2d:*",
"//src/camera/drivers/test_utils:*",
"//src/camera/drivers/usb_video:*",
"//src/connectivity/bluetooth/core/bt-host:*",
"//src/connectivity/bluetooth/core/bt-host/controllers:*",
"//src/connectivity/bluetooth/hci/passthrough:*",
"//src/connectivity/bluetooth/hci/transport/uart:*",
"//src/connectivity/bluetooth/hci/vendor/atheros:*",
"//src/connectivity/bluetooth/hci/vendor/broadcom:*",
"//src/connectivity/bluetooth/hci/vendor/intel:*",
"//src/connectivity/bluetooth/hci/virtual:*",
"//src/connectivity/ethernet/drivers/aml-ethernet:*",
"//src/connectivity/ethernet/drivers/asix-88179:*",
"//src/connectivity/ethernet/drivers/asix-88179:*",
"//src/connectivity/ethernet/drivers/asix-88179:*",
"//src/connectivity/ethernet/drivers/asix-88772b:*",
"//src/connectivity/ethernet/drivers/dwmac:*",
"//src/connectivity/ethernet/drivers/ethernet/netdevice-migration:*",
"//src/connectivity/ethernet/drivers/realtek-8111:*",
"//src/connectivity/ethernet/drivers/realtek-8211f:*",
"//src/connectivity/ethernet/drivers/rndis-function:*",
"//src/connectivity/ethernet/drivers/rndis-host:*",
"//src/connectivity/ethernet/drivers/usb-cdc-ecm:*",
"//src/connectivity/ethernet/drivers/usb-cdc-function:*",
"//src/connectivity/network/drivers/network-device:*",
"//src/connectivity/network/drivers/network-device/device:*",
"//src/connectivity/network/drivers/network-device/mac:*",
"//src/connectivity/openthread/drivers/ot-radio:*",
"//src/connectivity/openthread/tests/fake-drivers/fake-ot-radio:*",
"//src/connectivity/openthread/third_party/openthread/spinel-framer:*",
"//src/connectivity/overnet/usb:*",
"//src/connectivity/telephony/drivers/qmi-fake-transport:*",
"//src/connectivity/telephony/drivers/qmi-usb-transport:*",
"//src/connectivity/telephony/tests/fake-drivers/at-fake-transport:*",
"//src/connectivity/telephony/tests/fake-drivers/fake-transport-base:*",
"//src/connectivity/telephony/tests/fake-drivers/usb-qmi-function:*",
"//src/connectivity/wlan/drivers/lib/components:*",
"//src/connectivity/wlan/drivers/lib/log/cpp:*",
"//src/connectivity/wlan/drivers/lib/log/cpp/test:*",
"//src/connectivity/wlan/drivers/lib/timer:*",
"//src/connectivity/wlan/drivers/testing/lib/sim-device:*",
"//src/connectivity/wlan/drivers/testing/lib/sim-device/test:*",
"//src/connectivity/wlan/drivers/testing/lib/sim-env:*",
"//src/connectivity/wlan/drivers/testing/lib/sim-fake-ap:*",
"//src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sdio/test:*",
"//src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sim:*",
"//src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sim/test:*",
"//src/connectivity/wlan/drivers/wlanif:*",
"//src/connectivity/wlan/drivers/wlanif/test:*",
"//src/connectivity/wlan/drivers/wlanphy:*",
"//src/connectivity/wlan/drivers/wlansoftmac:*",
"//src/developer/adb/drivers/usb-adb-function:*",
"//src/devices/bin/driver_manager:*",
"//src/devices/bin/driver_manager:*",
"//src/devices/bin/driver_manager/devfs:*",
"//src/devices/block/drivers/block-verity:*",
"//src/devices/block/drivers/bootpart:*",
"//src/devices/block/drivers/core:*",
"//src/devices/block/drivers/ftl:*",
"//src/devices/block/drivers/gpt:*",
"//src/devices/block/drivers/mbr:*",
"//src/devices/block/drivers/nvme:*",
"//src/devices/block/drivers/pci-sdhci:*",
"//src/devices/block/drivers/ramdisk:*",
"//src/devices/block/drivers/sdhci:*",
"//src/devices/block/drivers/ufs:*",
"//src/devices/block/drivers/ums-function:*",
"//src/devices/block/drivers/usb-mass-storage:*",
"//src/devices/block/drivers/zxcrypt:*",
"//src/devices/block/lib/common:*",
"//src/devices/block/lib/scsi:*",
"//src/devices/block/lib/scsi/tests:*",
"//src/devices/board/drivers/acpi-arm64:*",
"//src/devices/board/drivers/astro:*",
"//src/devices/board/drivers/astro/post-init:*",
"//src/devices/board/drivers/integration-test:*",
"//src/devices/board/drivers/machina:*",
"//src/devices/board/drivers/nelson:*",
"//src/devices/board/drivers/nelson/post-init:*",
"//src/devices/board/drivers/qemu-arm64:*",
"//src/devices/board/drivers/qemu-riscv64:*",
"//src/devices/board/drivers/sherlock:*",
"//src/devices/board/drivers/sherlock/post-init:*",
"//src/devices/board/drivers/vim3:*",
"//src/devices/board/drivers/x86:*",
"//src/devices/board/lib/acpi:*",
"//src/devices/board/lib/smbios:*",
"//src/devices/bus/drivers/pci:*",
"//src/devices/bus/drivers/pci:*",
"//src/devices/bus/drivers/pci/test:*",
"//src/devices/bus/drivers/platform:*",
"//src/devices/bus/drivers/platform/test:*",
"//src/devices/bus/lib/device-protocol-pdev:*",
"//src/devices/bus/lib/platform-bus-composites:*",
"//src/devices/bus/lib/virtio:*",
"//src/devices/clock/drivers/amlogic-clk:*",
"//src/devices/clock/drivers/clock:*",
"//src/devices/cpu/drivers/aml-cpu:*",
"//src/devices/cpu/drivers/aml-cpu-legacy:*",
"//src/devices/gpio/bin/gpioutil:*",
"//src/devices/gpio/drivers/gpio:*",
"//src/devices/gpio/drivers/ti-tca6408a:*",
"//src/devices/gpio/lib/fuchsia.hardware.gpio:*",
"//src/devices/i2c/drivers/i2c:*",
"//src/devices/i2c/drivers/intel-i2c:*",
"//src/devices/i2c/lib/device-protocol-i2c-channel:*",
"//src/devices/lib/acpi:*",
"//src/devices/lib/acpi/mock:*",
"//src/devices/lib/acpi/test:*",
"//src/devices/lib/amlogic:*",
"//src/devices/lib/dev-operation:*",
"//src/devices/lib/driver:*",
"//src/devices/lib/fidl:*",
"//src/devices/lib/fragment-irq:*",
"//src/devices/lib/goldfish/pipe_io:*",
"//src/devices/lib/iommu:*",
"//src/devices/lib/nxp:*",
"//src/devices/light-sensor/drivers/ams-light:*",
"//src/devices/mcu/drivers/vim3-mcu:*",
"//src/devices/misc/drivers/compat:*",
"//src/devices/misc/drivers/test:*",
"//src/devices/misc/drivers/test-parent:*",
"//src/devices/ml/drivers/aml-nna:*",
"//src/devices/ml/drivers/usb-harriet:*",
"//src/devices/nand/drivers/aml-rawnand:*",
"//src/devices/nand/drivers/aml-spinand:*",
"//src/devices/nand/drivers/broker:*",
"//src/devices/nand/drivers/nand:*",
"//src/devices/nand/drivers/nandpart:*",
"//src/devices/nand/drivers/ram-nand:*",
"//src/devices/nand/drivers/skip-block:*",
"//src/devices/pci/lib/device-protocol-pci:*",
"//src/devices/pci/lib/pci:*",
"//src/devices/power/drivers/aml-meson-power:*",
"//src/devices/power/drivers/aml-pwm-regulator:*",
"//src/devices/power/drivers/fusb302:*",
"//src/devices/power/drivers/nelson-brownout-protection:*",
"//src/devices/power/drivers/power:*",
"//src/devices/power/drivers/ti-ina231:*",
"//src/devices/pwm/drivers/aml-pwm:*",
"//src/devices/pwm/drivers/aml-pwm-init:*",
"//src/devices/pwm/drivers/pwm:*",
"//src/devices/ram/drivers/aml-ram:*",
"//src/devices/rtc/drivers/aml-rtc:*",
"//src/devices/rtc/drivers/intel-rtc:*",
"//src/devices/rtc/drivers/pl031-rtc:*",
"//src/devices/rtc/lib/rtc:*",
"//src/devices/securemem/drivers/aml-securemem:*",
"//src/devices/serial/drivers/aml-uart:*",
"//src/devices/serial/drivers/ftdi:*",
"//src/devices/serial/drivers/ftdi/test:*",
"//src/devices/serial/drivers/serial:*",
"//src/devices/serial/drivers/serial-async:*",
"//src/devices/serial/drivers/uart16550:*",
"//src/devices/serial/drivers/usb-cdc-acm:*",
"//src/devices/spi/bin/spiutil:*",
"//src/devices/spi/drivers/spi:*",
"//src/devices/sysmem/drivers/sysmem:*",
"//src/devices/sysmem/tests/sysmem:*",
"//src/devices/temperature/drivers/shtv3:*",
"//src/devices/temperature/drivers/tmp112:*",
"//src/devices/testing/devmgr-integration-test-shim:*",
"//src/devices/testing/driver-integration-test-shim:*",
"//src/devices/testing/fake-dma-buffer/test:*",
"//src/devices/testing/fake-mmio-reg/test:*",
"//src/devices/testing/goldfish/fake_pipe:*",
"//src/devices/testing/mock-ddk:*",
"//src/devices/testing/no_ddk:*",
"//src/devices/tests/banjo-proxy:*",
"//src/devices/tests/bind-fail-test:*",
"//src/devices/tests/bind-test-v2:*",
"//src/devices/tests/bindlib-codegen-test:*",
"//src/devices/tests/ddk-environment-test:*",
"//src/devices/tests/ddk-fallback-test:*",
"//src/devices/tests/ddk-fallback-test-v2:*",
"//src/devices/tests/ddk-fidl-test:*",
"//src/devices/tests/ddk-firmware-test:*",
"//src/devices/tests/ddk-lifecycle:*",
"//src/devices/tests/ddk-metadata-test:*",
"//src/devices/tests/ddk-topology-test:*",
"//src/devices/tests/device-watcher:*",
"//src/devices/tests/driver-inspect-test:*",
"//src/devices/tests/driver-runtime:*",
"//src/devices/tests/driver-transport:*",
"//src/devices/tests/fidl-service:*",
"//src/devices/tests/isolateddevmgr:*",
"//src/devices/tests/libdriver-integration-test:*",
"//src/devices/tests/mock-device:*",
"//src/devices/tests/string-bind-test:*",
"//src/devices/tests/sysdev:*",
"//src/devices/tests/v2/compat:*",
"//src/devices/tests/v2/compat-globals:*",
"//src/devices/tests/v2/compat-globals/root:*",
"//src/devices/tests/v2/compat-node-group/root:*",
"//src/devices/tests/v2/compat-runtime:*",
"//src/devices/tests/v2/compat-runtime-v1/root:*",
"//src/devices/tests/v2/compat/root:*",
"//src/devices/tests/v2/ddk-init-test:*",
"//src/devices/tests/v2/init-child-first:*",
"//src/devices/tests/v2/inspect:*",
"//src/devices/tests/v2/interop:*",
"//src/devices/thermal/drivers/aml-thermal:*",
"//src/devices/thermal/drivers/aml-thermal-s905d2g-legacy:*",
"//src/devices/thermal/drivers/aml-thermistor:*",
"//src/devices/thermal/drivers/aml-thermistor/test:*",
"//src/devices/usb/drivers/crg-udc:*",
"//src/devices/usb/drivers/dwc2:*",
"//src/devices/usb/drivers/dwc3:*",
"//src/devices/usb/drivers/usb-bus:*",
"//src/devices/usb/drivers/usb-composite:*",
"//src/devices/usb/drivers/usb-hub:*",
"//src/devices/usb/drivers/usb-peripheral:*",
"//src/devices/usb/drivers/usb-peripheral-test:*",
"//src/devices/usb/drivers/usb-virtual-bus:*",
"//src/devices/usb/drivers/xhci:*",
"//src/devices/usb/lib/usb:*",
"//src/devices/usb/lib/usb/tests:*",
"//src/devices/usb/tests/usb-hci-test:*",
"//src/diagnostics/validator/logs/ddk/log-test-driver:*",
"//src/firmware/drivers/usb-fastboot-function:*",
"//src/graphics/display/drivers/aml-canvas:*",
"//src/graphics/display/drivers/amlogic-display:*",
"//src/graphics/display/drivers/coordinator:*",
"//src/graphics/display/drivers/fake:*",
"//src/graphics/display/drivers/goldfish-display:*",
"//src/graphics/display/drivers/intel-i915:*",
"//src/graphics/display/drivers/simple:*",
"//src/graphics/display/drivers/virtio-guest/v1:*",
"//src/graphics/display/lib/designware-dsi:*",
"//src/graphics/display/lib/designware-hdmi:*",
"//src/graphics/display/lib/designware-hdmi/test:*",
"//src/graphics/display/lib/driver-framework-migration-utils/*",
"//src/graphics/display/lib/edid:*",
"//src/graphics/drivers/aml-gpu:*",
"//src/graphics/drivers/misc/goldfish:*",
"//src/graphics/drivers/misc/goldfish_address_space:*",
"//src/graphics/drivers/misc/goldfish_control:*",
"//src/graphics/drivers/misc/goldfish_sync:*",
"//src/graphics/drivers/msd-arm-mali:*",
"//src/graphics/drivers/msd-intel-gen:*",
"//src/graphics/drivers/msd-intel-gen/src:*",
"//src/graphics/drivers/msd-vsi-vip:*",
"//src/graphics/lib/magma/src/sys_driver/dfv1:*",
"//src/graphics/magma/lib/magma/platform:*",
"//src/graphics/magma/lib/magma/platform/zircon:*",
"//src/graphics/magma/lib/magma_service/sys_driver/dfv1:*",
"//src/lib/ddk:*",
"//src/lib/ddk/tests:*",
"//src/lib/ddktl:*",
"//src/lib/ddktl/tests:*",
"//src/lib/metrics_buffer:*",
"//src/media/audio/drivers/aml-dsp:*",
"//src/media/audio/drivers/aml-dsp/aml-g12-pdm-dsp:*",
"//src/media/audio/drivers/aml-dsp/aml-g12-tdm-dsp:*",
"//src/media/audio/drivers/aml-g12-pdm:*",
"//src/media/audio/drivers/aml-g12-tdm:*",
"//src/media/audio/drivers/aml-g12-tdm/test:*",
"//src/media/audio/drivers/codecs/alc5514:*",
"//src/media/audio/drivers/codecs/alc5663:*",
"//src/media/audio/drivers/codecs/max98373:*",
"//src/media/audio/drivers/codecs/max98927:*",
"//src/media/audio/drivers/codecs/tas27xx:*",
"//src/media/audio/drivers/codecs/tas5707:*",
"//src/media/audio/drivers/codecs/tas5720:*",
"//src/media/audio/drivers/codecs/tas58xx:*",
"//src/media/audio/drivers/intel-hda/codecs/hdmi:*",
"//src/media/audio/drivers/intel-hda/codecs/qemu:*",
"//src/media/audio/drivers/intel-hda/codecs/realtek:*",
"//src/media/audio/drivers/intel-hda/controller:*",
"//src/media/audio/drivers/lib/aml-dsp:*",
"//src/media/audio/drivers/lib/intel-hda:*",
"//src/media/audio/drivers/testing/realm:*",
"//src/media/audio/drivers/usb-audio:*",
"//src/media/audio/drivers/virtual_audio:*",
"//src/media/audio/lib/simple-audio-stream:*",
"//src/media/audio/lib/simple-audio-stream/tests:*",
"//src/media/drivers/amlogic_decoder:*",
"//src/media/lib/codec_impl:*",
"//src/security/lib/zxcrypt:*",
"//src/security/lib/zxcrypt/tests:*",
"//src/storage/fvm/driver:*",
"//src/storage/lib/block_client/cpp:*",
"//src/storage/lib/ramdevice_client/cpp:*",
"//src/testing/fuzzing/syzkaller:*",
"//src/ui/backlight/drivers/ti-lp8556:*",
"//src/ui/backlight/drivers/vim3-pwm-backlight:*",
"//src/ui/input/drivers/buttons:*",
"//src/ui/input/drivers/ctaphid:*",
"//src/ui/input/drivers/focaltech:*",
"//src/ui/input/drivers/goldfish_sensor:*",
"//src/ui/input/drivers/goodix:*",
"//src/ui/input/drivers/gt6853:*",
"//src/ui/input/drivers/hid:*",
"//src/ui/input/drivers/hid-input-report:*",
"//src/ui/input/drivers/hidctl:*",
"//src/ui/input/drivers/hidctl:*",
"//src/ui/input/drivers/i2c-hid:*",
"//src/ui/input/drivers/pc-ps2:*",
"//src/ui/input/drivers/usb-hid:*",
"//src/ui/input/lib/hid-input-report:*",
"//src/ui/input/testing/mock-hidbus-ifc:*",
"//src/ui/input/tests/hid:*",
"//src/ui/light/drivers/aml-light:*",
"//src/ui/tools/print-input-report:*",
"//src/virtualization/bin/vmm:*",
"//third_party/pigweed/backends/pw_log:*",
"//vendor/*",
"//zircon/system/ulib/acpica:*",
"//zircon/system/ulib/driver-unit-test:*",
"//zircon/system/ulib/hwreg/test:*",
"//zircon/system/ulib/usb-virtual-bus-launcher:*",
"//zircon/third_party/dev/ethernet/e1000:*",
"//zircon/vdso/zx:*",
]
}
library_headers("ddk-metadata-headers") {
headers = [
"ddk/metadata/bad-block.h",
"ddk/metadata/buttons.h",
"ddk/metadata/camera.h",
"ddk/metadata/clock.h",
"ddk/metadata/display.h",
"ddk/metadata/gpio.h",
"ddk/metadata/lights.h",
"ddk/metadata/nand.h",
"ddk/metadata/power.h",
"ddk/metadata/test.h",
]
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
# New driver metadata should be defined in FIDL instead of C.
#
# To remove items from the allowlist, please send a change to one of the OWNERS of
# this file to remove an element from the visibility list below.
#
# Please allowlist entire directories rather than individual targets as it
# requires less allowlist churn over time.
visibility = [
"//sdk/lib/driver/devicetree/visitors/*",
"//sdk/lib/driver_test_realm:*",
"//src/camera/drivers/bus/aml_mipicsi:*",
"//src/camera/drivers/sensors/imx227:*",
"//src/devices/board/drivers/astro:*",
"//src/devices/board/drivers/astro/post-init:*",
"//src/devices/board/drivers/integration-test:*",
"//src/devices/board/drivers/nelson:*",
"//src/devices/board/drivers/nelson/post-init:*",
"//src/devices/board/drivers/sherlock:*",
"//src/devices/board/drivers/sherlock/post-init:*",
"//src/devices/board/drivers/vim3:*",
"//src/devices/bus/drivers/platform/test:*",
"//src/devices/clock/drivers/clock:*",
"//src/devices/gpio/drivers/gpio:*",
"//src/devices/i2c/drivers/i2c:*",
"//src/devices/i2c/drivers/intel-i2c:*",
"//src/devices/nand/drivers/nandpart:*",
"//src/devices/nand/drivers/ram-nand:*",
"//src/devices/power/drivers/power:*",
"//src/devices/serial/drivers/ftdi:*",
"//src/devices/serial/drivers/ftdi/test:*",
"//src/devices/testing/driver-integration-test-shim:*",
"//src/devices/usb/drivers/usb-peripheral:*",
"//src/devices/usb/lib/usb:*",
"//src/graphics/display/drivers/amlogic-display:*",
"//src/ui/input/drivers/buttons:*",
"//src/ui/input/drivers/goodix:*",
"//src/ui/input/drivers/hid-input-report:*",
"//src/ui/input/lib/hid:*",
"//src/ui/input/lib/hid-input-report:*",
"//src/ui/light/drivers/aml-light:*",
]
}
library_headers("ddk-deprecated-binding-headers") {
headers = [ "lib/ddk/binding.h" ]
public_deps = [ ":ddk" ]
visibility = [
"//src/connectivity/bluetooth/core/bt-host:*",
"//src/devices/bin/driver_manager:*",
"//src/devices/board/drivers/astro:*",
"//src/devices/board/drivers/integration-test:*",
"//src/devices/board/drivers/machina:*",
"//src/devices/board/drivers/nelson:*",
"//src/devices/board/drivers/qemu-arm64:*",
"//src/devices/board/drivers/sherlock:*",
"//src/devices/board/drivers/vim3:*",
"//src/devices/board/drivers/x86/*",
"//src/devices/board/lib/acpi/*",
"//src/devices/bus/drivers/pci:*",
"//src/devices/bus/drivers/platform:*",
"//src/devices/bus/drivers/platform/test:*",
"//src/devices/nand/drivers/ram-nand:*",
"//src/devices/tests/bind-test-v2:*",
"//src/devices/tests/libdriver-integration-test:*",
"//src/devices/tests/string-bind-test:*",
"//src/devices/usb/drivers/usb-bus:*",
"//src/devices/usb/drivers/usb-peripheral:*",
"//src/devices/usb/drivers/usb-peripheral-test:*",
"//src/lib/ddk/tests:*",
"//src/media/audio/drivers/intel-hda/controller:*",
"//src/media/audio/lib/simple-codec:*",
]
}
library_headers("ddk-device-headers") {
headers = [ "lib/ddk/device.h" ]
public_deps = [ "//sdk/lib/driver/runtime:driver_runtime" ]
}
# Drivers should use //sdk/lib/mmio-ptr instead.
library_headers("ddk-deprecated-mmio-headers") {
headers = [ "lib/ddk/hw/reg.h" ]
visibility = [
"//src/devices/bus/lib/virtio:*",
"//zircon/third_party/dev/ethernet/e1000:*",
]
}
# Adds the metadata.h file to the SDK to be used with the driver compat
# library.
library_headers("ddk_metadata_only") {
headers = [ "lib/ddk/metadata.h" ]
}
# Exports the metadata.h file to the SDK to support the transition
# to DFv2.
sdk_source_set("ddk_metadata") {
category = "internal"
sdk_name = "ddk"
include_base = "include"
public = [ "include/lib/ddk/metadata.h" ]
non_sdk_deps = [ ":ddk_metadata_only" ]
public_deps = [ "//sdk/lib/zbi-format" ]
}