fidl_data_zbi/
board.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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.

// DO NOT EDIT.
// Generated from FIDL library `zbi` by zither, a Fuchsia platform tool.

#![allow(unused_imports)]

use zerocopy::{FromBytes, IntoBytes};

pub const BOARD_NAME_LEN: u64 = 32;

/// ZBI_TYPE_PLATFORM_ID payload.
#[repr(C)]
#[derive(Clone, Copy, Debug, Eq, FromBytes, IntoBytes, PartialEq)]
pub struct PlatformId {
    pub vid: u32,
    pub pid: u32,
    pub board_name: [u8; 32],
}

/// ZBI_TYPE_DRV_BOARD_INFO payload.
#[repr(C)]
#[derive(Clone, Copy, Debug, Eq, FromBytes, IntoBytes, PartialEq)]
pub struct BoardInfo {
    pub revision: u32,
}