fidl_data_zx/
object.rs

1// Copyright 2022 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// DO NOT EDIT.
6// Generated from FIDL library `zx` by zither, a Fuchsia platform tool.
7
8#![allow(unused_imports)]
9
10use zerocopy::{FromBytes, IntoBytes};
11
12use crate::rights::*;
13use crate::zx_common::*;
14
15pub const WAIT_MANY_MAX_ITEMS: usize = 64;
16
17#[repr(C)]
18#[derive(Clone, Copy, Debug, Eq, FromBytes, IntoBytes, PartialEq)]
19pub struct WaitItem {
20    pub handle: Handle,
21    pub waitfor: Signals,
22    pub pending: Signals,
23}
24
25#[repr(C)]
26#[derive(Clone, Copy, Debug, Eq, FromBytes, IntoBytes, PartialEq)]
27pub struct PowerDomainInfo {
28    /// Mask of CPUs part of this power domain.
29    pub cpus: [u64; 8],
30
31    /// Id used to register this domain.
32    pub domain_id: u32,
33
34    /// Number of registered idle power levels.
35    pub idle_power_levels: u8,
36
37    /// Number of registered active power levels.
38    pub active_power_levels: u8,
39    pub padding1: [u8; 2],
40}