blob: 8d77e846e1e28fe088caa6399887a98580ea528f [file] [log] [blame]
// Copyright 2018 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/binding.h>
#include <ddk/driver.h>
extern zx_status_t platform_proxy_create(void* ctx, zx_device_t* parent, const char* name,
const char* args, zx_handle_t rpc_channel);
static zx_driver_ops_t platform_bus_proxy_driver_ops = {
.version = DRIVER_OPS_VERSION,
.create = platform_proxy_create,
};
ZIRCON_DRIVER_BEGIN(platform_bus_proxy, platform_bus_proxy_driver_ops, "zircon", "0.1", 2)
BI_ABORT_IF(NE, BIND_PLATFORM_PROTO, 0),
BI_MATCH_IF(EQ, BIND_PROTOCOL, ZX_PROTOCOL_PLATFORM_PROXY),
ZIRCON_DRIVER_END(platform_bus_proxy)