blob: 9856a3cafcd76cd07301df8a46ee007c6308f7f7 [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;
};