blob: 1d74cbd5ae39e27f0f37fbc39f1c31f2954177d6 [file] [log] [blame] [edit]
// 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.
#include <lib/ddk/device.h>
#include <lib/zx/interrupt.h>
#include <lib/zx/result.h>
namespace fragment_irq {
// Get an interrupt with name |fragment_name|.
zx::result<zx::interrupt> GetInterrupt(zx_device_t* dev, const char* fragment_name);
// Get interrupt index |which|. This will attempt to use fragments and FIDL to get the
// interrupt.
zx::result<zx::interrupt> GetInterrupt(zx_device_t* dev, uint32_t which);
} // namespace fragment_irq