| // 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. | |
| @available(added=HEAD) | |
| library fuchsia.hardware.interrupt; | |
| using zx; | |
| @discoverable | |
| closed protocol Provider { | |
| /// Get the interrupt represented by this provider. | |
| strict Get() -> (resource struct { | |
| interrupt zx.Handle:INTERRUPT; | |
| }) error zx.Status; | |
| }; | |
| service Service { | |
| provider client_end:Provider; | |
| }; |