blob: f83730633b4d777796d5558d16de823e35d303b6 [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 zx;
@transport("Syscall")
protocol Ioports {
/// ## Summary
///
/// TODO(fxbug.dev/32938)
///
/// ## Declaration
///
/// ```c
/// #include <zircon/syscalls.h>
///
/// zx_status_t zx_ioports_request(zx_handle_t resource,
/// uint16_t io_addr,
/// uint32_t len);
/// ```
///
/// ## Description
///
/// TODO(fxbug.dev/32938)
///
/// ## Rights
///
/// *resource* must have resource kind **ZX_RSRC_KIND_IOPORT**.
///
/// ## Return value
///
/// TODO(fxbug.dev/32938)
///
/// ## Errors
///
/// TODO(fxbug.dev/32938)
///
/// ## See also
///
/// TODO(fxbug.dev/32938)
Request(resource struct {
resource Handle:RESOURCE;
io_addr uint16;
len uint32;
}) -> () error Status;
/// ## Summary
///
/// TODO(fxbug.dev/32938)
///
/// ## Declaration
///
/// ```c
/// #include <zircon/syscalls.h>
///
/// zx_status_t zx_ioports_release(zx_handle_t resource,
/// uint16_t io_addr,
/// uint32_t len);
/// ```
///
/// ## Description
///
/// TODO(fxbug.dev/32938)
///
/// ## Rights
///
/// *resource* must have resource kind **ZX_RSRC_KIND_IOPORT**.
///
/// ## Return value
///
/// TODO(fxbug.dev/32938)
///
/// ## Errors
///
/// TODO(fxbug.dev/32938)
///
/// ## See also
///
/// TODO(fxbug.dev/32938)
Release(resource struct {
resource Handle:RESOURCE;
io_addr uint16;
len uint32;
}) -> () error Status;
};