blob: 0f6f1a8c5a4c0a9d47d85e7eea736115ebe975a7 [file] [log] [blame]
// Copyright 2022 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.
#ifndef SRC_DEVICES_TESTS_V2_COMPAT_NODE_GROUP_ROOT_ROOT_H_
#define SRC_DEVICES_TESTS_V2_COMPAT_NODE_GROUP_ROOT_ROOT_H_
#include <ddktl/device.h>
namespace root {
class Root;
using DeviceType = ddk::Device<Root>;
class Root : public DeviceType {
public:
explicit Root(zx_device_t* parent) : DeviceType(parent) {}
virtual ~Root() = default;
static zx_status_t Bind(void* ctx, zx_device_t* dev);
void DdkRelease();
};
} // namespace root
#endif // SRC_DEVICES_TESTS_V2_COMPAT_NODE_GROUP_ROOT_ROOT_H_