bind_fuchsia_platform/
fuchsia_platform_lib.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// 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.

// WARNING: This file is machine generated by bindc.


pub const BIND_PROTOCOL_COMPOSITE: u32 = 7;
pub const BIND_PROTOCOL_ROOT: u32 = 27;
pub const BIND_PROTOCOL_MISC: u32 = 28;
pub const BIND_PROTOCOL_BUS: u32 = 84;
pub const BIND_PROTOCOL_DEVICE: u32 = 85;

pub const BIND_PLATFORM_DEV_VID_GENERIC: u32 = 0;
pub const BIND_PLATFORM_DEV_VID_QEMU: u32 = 1;
pub const BIND_PLATFORM_DEV_VID_CROSVM: u32 = 2;

pub const BIND_PLATFORM_DEV_DID_KPCI: u32 = 3;
pub const BIND_PLATFORM_DEV_DID_USB_DWC2: u32 = 5;
pub const BIND_PLATFORM_DEV_DID_RTC_PL031: u32 = 6;
pub const BIND_PLATFORM_DEV_DID_GPIO_TEST: u32 = 8;
pub const BIND_PLATFORM_DEV_DID_OPTEE: u32 = 14;
pub const BIND_PLATFORM_DEV_DID_ETH_MAC: u32 = 16;
pub const BIND_PLATFORM_DEV_DID_HID_BUTTONS: u32 = 19;
pub const BIND_PLATFORM_DEV_DID_FOCALTOUCH: u32 = 23;
pub const BIND_PLATFORM_DEV_DID_SYSMEM: u32 = 27;
pub const BIND_PLATFORM_DEV_DID_GPIO_LIGHT: u32 = 28;
pub const BIND_PLATFORM_DEV_DID_CPU_TRACE: u32 = 29;
pub const BIND_PLATFORM_DEV_DID_XHCI: u32 = 31;
pub const BIND_PLATFORM_DEV_DID_OT_RADIO: u32 = 35;
pub const BIND_PLATFORM_DEV_DID_POWER_DOMAIN_COMPOSITE: u32 = 39;
pub const BIND_PLATFORM_DEV_DID_REGISTERS: u32 = 41;
pub const BIND_PLATFORM_DEV_DID_PWM_VREG: u32 = 43;
pub const BIND_PLATFORM_DEV_DID_FUSB302: u32 = 44;
pub const BIND_PLATFORM_DEV_DID_RAM_DISK: u32 = 45;
pub const BIND_PLATFORM_DEV_DID_RAM_NAND: u32 = 46;
pub const BIND_PLATFORM_DEV_DID_VIRTUAL_AUDIO: u32 = 47;
pub const BIND_PLATFORM_DEV_DID_BT_HCI_EMULATOR: u32 = 48;
pub const BIND_PLATFORM_DEV_DID_POWER_CORE: u32 = 49;
pub const BIND_PLATFORM_DEV_DID_DEVICETREE: u32 = 50;
pub const BIND_PLATFORM_DEV_DID_FAKE_BATTERY: u32 = 51;
pub const BIND_PLATFORM_DEV_DID_TCS3400_LIGHT: u32 = 52;
pub const BIND_PLATFORM_DEV_DID_ADC_BUTTONS: u32 = 53;
pub const BIND_PLATFORM_DEV_DID_BUTTONS: u32 = 54;
pub const BIND_PLATFORM_DEV_DID_FAKE_AC: u32 = 55;

pub const BIND_PLATFORM_DEV_PID_GENERIC: u32 = 0;
pub const BIND_PLATFORM_DEV_PID_QEMU: u32 = 1;
pub const BIND_PLATFORM_DEV_PID_CROSVM: u32 = 2;

pub const DRIVER_FRAMEWORK_VERSION: &str = "fuchsia.platform.DRIVER_FRAMEWORK_VERSION";