blob: 53f0f03fd945b73e6233195a08cf438e8ca85e05 [file] [log] [blame]
// Copyright 2023 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 "src/devices/bin/driver_manager/devfs/allowlist.h"
#include <unordered_set>
bool AllowMultiplexingController(std::string_view class_name) {
// TODO(https://fxbug.dev/112484): Remove entries from this list.
static const std::unordered_set<std::string_view> classes_that_include_controller({
"block",
"nand",
"skip-block",
});
return classes_that_include_controller.find(class_name) != classes_that_include_controller.end();
}
bool AllowMultiplexingNode(std::string_view class_name) {
// TODO(https://fxbug.dev/112484): Remove entries from this list.
static const std::unordered_set<std::string_view> classes_that_include_node({
"block",
"goldfish-pipe",
"skip-block",
"ot-radio",
});
return classes_that_include_node.find(class_name) != classes_that_include_node.end();
}