blob: dc2b4a3cd76e1d16350b0b3818a76dbf316f335d [file] [log] [blame]
// Copyright 2019 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.
library fuchsia.hardware.sysmem;
using zx;
@transport("Banjo")
@banjo_layout("ddk-protocol")
protocol Sysmem {
/// Takes the server end of a FIDL connection that'll serve
/// fuchsia.sysmem.Allocator. If the connection fails, the channel will
/// close.
Connect(resource struct {
allocator_request zx.Handle:CHANNEL;
}) -> (struct {
s zx.Status;
});
/// Takes the client end of a FIDL connection that'll serve
/// fuchsia.sysmem2.Heap.
RegisterHeap(resource struct {
heap uint64;
heap_connection zx.Handle:CHANNEL;
}) -> (struct {
s zx.Status;
});
/// Takes the client end of a FIDL connection that'll serve
/// fuchsia.sysmem.SecureMem, which is a protocol that's specific to
/// sysmem<->securemem concerns.
RegisterSecureMem(resource struct {
secure_mem_connection zx.Handle:CHANNEL;
}) -> (struct {
s zx.Status;
});
/// Informs sysmem that the channel previously passed to RegisterSecureMem()
/// will be closing soon, and that this channel closure should not be
/// considered an error.
UnregisterSecureMem() -> (struct {
s zx.Status;
});
};