blob: ef66a553fc99575f80bbfa057faff20a6b2b50a6 [file] [log] [blame]
// Copyright 2017 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.
#include <ddk/device.h>
#include <ddk/driver.h>
#include <ddk/binding.h>
#include <magenta/types.h>
extern mx_status_t ddktl_test_bind(void* ctx, mx_device_t* dev, void** cookie);
static mx_driver_ops_t ddktl_test_driver_ops = {
.version = DRIVER_OPS_VERSION,
.bind = ddktl_test_bind,
};
MAGENTA_DRIVER_BEGIN(ddktl_test, ddktl_test_driver_ops, "magenta", "0.1", 2)
BI_ABORT_IF_AUTOBIND,
BI_MATCH_IF(EQ, BIND_PROTOCOL, MX_PROTOCOL_TEST),
MAGENTA_DRIVER_END(ddktl_test)