#ifndef __GREYBUS_PROTOCOLS_H
#define __GREYBUS_PROTOCOLS_H
#include <linux/types.h>
#define GB_SVC_DEVICE_ID_SVC …
#define GB_SVC_DEVICE_ID_AP …
#define GB_SVC_DEVICE_ID_MIN …
#define GB_SVC_DEVICE_ID_MAX …
#define GB_SVC_CPORT_ID …
#define GB_CONTROL_BUNDLE_ID …
#define GB_CONTROL_CPORT_ID …
struct gb_operation_msg_hdr { … } __packed;
#define GB_REQUEST_TYPE_CPORT_SHUTDOWN …
#define GB_REQUEST_TYPE_INVALID …
struct gb_cport_shutdown_request { … } __packed;
#define GB_CONTROL_TYPE_VERSION …
#define GB_CONTROL_TYPE_PROBE_AP …
#define GB_CONTROL_TYPE_GET_MANIFEST_SIZE …
#define GB_CONTROL_TYPE_GET_MANIFEST …
#define GB_CONTROL_TYPE_CONNECTED …
#define GB_CONTROL_TYPE_DISCONNECTED …
#define GB_CONTROL_TYPE_TIMESYNC_ENABLE …
#define GB_CONTROL_TYPE_TIMESYNC_DISABLE …
#define GB_CONTROL_TYPE_TIMESYNC_AUTHORITATIVE …
#define GB_CONTROL_TYPE_BUNDLE_VERSION …
#define GB_CONTROL_TYPE_DISCONNECTING …
#define GB_CONTROL_TYPE_TIMESYNC_GET_LAST_EVENT …
#define GB_CONTROL_TYPE_MODE_SWITCH …
#define GB_CONTROL_TYPE_BUNDLE_SUSPEND …
#define GB_CONTROL_TYPE_BUNDLE_RESUME …
#define GB_CONTROL_TYPE_BUNDLE_DEACTIVATE …
#define GB_CONTROL_TYPE_BUNDLE_ACTIVATE …
#define GB_CONTROL_TYPE_INTF_SUSPEND_PREPARE …
#define GB_CONTROL_TYPE_INTF_DEACTIVATE_PREPARE …
#define GB_CONTROL_TYPE_INTF_HIBERNATE_ABORT …
struct gb_control_version_request { … } __packed;
struct gb_control_version_response { … } __packed;
struct gb_control_bundle_version_request { … } __packed;
struct gb_control_bundle_version_response { … } __packed;
struct gb_control_get_manifest_size_response { … } __packed;
struct gb_control_get_manifest_response { … } __packed;
struct gb_control_connected_request { … } __packed;
struct gb_control_disconnecting_request { … } __packed;
struct gb_control_disconnected_request { … } __packed;
#define GB_CONTROL_BUNDLE_PM_OK …
#define GB_CONTROL_BUNDLE_PM_INVAL …
#define GB_CONTROL_BUNDLE_PM_BUSY …
#define GB_CONTROL_BUNDLE_PM_FAIL …
#define GB_CONTROL_BUNDLE_PM_NA …
struct gb_control_bundle_pm_request { … } __packed;
struct gb_control_bundle_pm_response { … } __packed;
#define GB_CONTROL_INTF_PM_OK …
#define GB_CONTROL_INTF_PM_BUSY …
#define GB_CONTROL_INTF_PM_NA …
struct gb_control_intf_pm_response { … } __packed;
#define GB_APB_REQUEST_LOG …
#define GB_APB_REQUEST_EP_MAPPING …
#define GB_APB_REQUEST_CPORT_COUNT …
#define GB_APB_REQUEST_RESET_CPORT …
#define GB_APB_REQUEST_LATENCY_TAG_EN …
#define GB_APB_REQUEST_LATENCY_TAG_DIS …
#define GB_APB_REQUEST_CSI_TX_CONTROL …
#define GB_APB_REQUEST_AUDIO_CONTROL …
#define GB_APB_REQUEST_TIMESYNC_ENABLE …
#define GB_APB_REQUEST_TIMESYNC_DISABLE …
#define GB_APB_REQUEST_TIMESYNC_AUTHORITATIVE …
#define GB_APB_REQUEST_TIMESYNC_GET_LAST_EVENT …
#define GB_APB_REQUEST_CPORT_FLAGS …
#define GB_APB_REQUEST_ARPC_RUN …
struct gb_apb_request_cport_flags { … } __packed;
#define GB_FW_DOWNLOAD_TYPE_FIND_FIRMWARE …
#define GB_FW_DOWNLOAD_TYPE_FETCH_FIRMWARE …
#define GB_FW_DOWNLOAD_TYPE_RELEASE_FIRMWARE …
#define GB_FIRMWARE_TAG_MAX_SIZE …
struct gb_fw_download_find_firmware_request { … } __packed;
struct gb_fw_download_find_firmware_response { … } __packed;
struct gb_fw_download_fetch_firmware_request { … } __packed;
struct gb_fw_download_release_firmware_request { … } __packed;
#define GB_FW_MGMT_TYPE_INTERFACE_FW_VERSION …
#define GB_FW_MGMT_TYPE_LOAD_AND_VALIDATE_FW …
#define GB_FW_MGMT_TYPE_LOADED_FW …
#define GB_FW_MGMT_TYPE_BACKEND_FW_VERSION …
#define GB_FW_MGMT_TYPE_BACKEND_FW_UPDATE …
#define GB_FW_MGMT_TYPE_BACKEND_FW_UPDATED …
#define GB_FW_LOAD_METHOD_UNIPRO …
#define GB_FW_LOAD_METHOD_INTERNAL …
#define GB_FW_LOAD_STATUS_FAILED …
#define GB_FW_LOAD_STATUS_UNVALIDATED …
#define GB_FW_LOAD_STATUS_VALIDATED …
#define GB_FW_LOAD_STATUS_VALIDATION_FAILED …
#define GB_FW_BACKEND_FW_STATUS_SUCCESS …
#define GB_FW_BACKEND_FW_STATUS_FAIL_FIND …
#define GB_FW_BACKEND_FW_STATUS_FAIL_FETCH …
#define GB_FW_BACKEND_FW_STATUS_FAIL_WRITE …
#define GB_FW_BACKEND_FW_STATUS_INT …
#define GB_FW_BACKEND_FW_STATUS_RETRY …
#define GB_FW_BACKEND_FW_STATUS_NOT_SUPPORTED …
#define GB_FW_BACKEND_VERSION_STATUS_SUCCESS …
#define GB_FW_BACKEND_VERSION_STATUS_NOT_AVAILABLE …
#define GB_FW_BACKEND_VERSION_STATUS_NOT_SUPPORTED …
#define GB_FW_BACKEND_VERSION_STATUS_RETRY …
#define GB_FW_BACKEND_VERSION_STATUS_FAIL_INT …
struct gb_fw_mgmt_interface_fw_version_response { … } __packed;
struct gb_fw_mgmt_load_and_validate_fw_request { … } __packed;
struct gb_fw_mgmt_loaded_fw_request { … } __packed;
struct gb_fw_mgmt_backend_fw_version_request { … } __packed;
struct gb_fw_mgmt_backend_fw_version_response { … } __packed;
struct gb_fw_mgmt_backend_fw_update_request { … } __packed;
struct gb_fw_mgmt_backend_fw_updated_request { … } __packed;
#define GB_CAP_TYPE_GET_ENDPOINT_UID …
#define GB_CAP_TYPE_GET_IMS_CERTIFICATE …
#define GB_CAP_TYPE_AUTHENTICATE …
struct gb_cap_get_endpoint_uid_response { … } __packed;
struct gb_cap_get_ims_certificate_request { … } __packed;
struct gb_cap_get_ims_certificate_response { … } __packed;
struct gb_cap_authenticate_request { … } __packed;
struct gb_cap_authenticate_response { … } __packed;
#define GB_BOOTROM_VERSION_MAJOR …
#define GB_BOOTROM_VERSION_MINOR …
#define GB_BOOTROM_TYPE_VERSION …
#define GB_BOOTROM_TYPE_FIRMWARE_SIZE …
#define GB_BOOTROM_TYPE_GET_FIRMWARE …
#define GB_BOOTROM_TYPE_READY_TO_BOOT …
#define GB_BOOTROM_TYPE_AP_READY …
#define GB_BOOTROM_TYPE_GET_VID_PID …
#define GB_BOOTROM_BOOT_STAGE_ONE …
#define GB_BOOTROM_BOOT_STAGE_TWO …
#define GB_BOOTROM_BOOT_STAGE_THREE …
#define GB_BOOTROM_BOOT_STATUS_INVALID …
#define GB_BOOTROM_BOOT_STATUS_INSECURE …
#define GB_BOOTROM_BOOT_STATUS_SECURE …
#define GB_BOOTROM_FETCH_MAX …
struct gb_bootrom_version_request { … } __packed;
struct gb_bootrom_version_response { … } __packed;
struct gb_bootrom_firmware_size_request { … } __packed;
struct gb_bootrom_firmware_size_response { … } __packed;
struct gb_bootrom_get_firmware_request { … } __packed;
struct gb_bootrom_ready_to_boot_request { … } __packed;
struct gb_bootrom_get_vid_pid_response { … } __packed;
#define GB_POWER_SUPPLY_TYPE_GET_SUPPLIES …
#define GB_POWER_SUPPLY_TYPE_GET_DESCRIPTION …
#define GB_POWER_SUPPLY_TYPE_GET_PROP_DESCRIPTORS …
#define GB_POWER_SUPPLY_TYPE_GET_PROPERTY …
#define GB_POWER_SUPPLY_TYPE_SET_PROPERTY …
#define GB_POWER_SUPPLY_TYPE_EVENT …
#define GB_POWER_SUPPLY_TECH_UNKNOWN …
#define GB_POWER_SUPPLY_TECH_NiMH …
#define GB_POWER_SUPPLY_TECH_LION …
#define GB_POWER_SUPPLY_TECH_LIPO …
#define GB_POWER_SUPPLY_TECH_LiFe …
#define GB_POWER_SUPPLY_TECH_NiCd …
#define GB_POWER_SUPPLY_TECH_LiMn …
#define GB_POWER_SUPPLY_UNKNOWN_TYPE …
#define GB_POWER_SUPPLY_BATTERY_TYPE …
#define GB_POWER_SUPPLY_UPS_TYPE …
#define GB_POWER_SUPPLY_MAINS_TYPE …
#define GB_POWER_SUPPLY_USB_TYPE …
#define GB_POWER_SUPPLY_USB_DCP_TYPE …
#define GB_POWER_SUPPLY_USB_CDP_TYPE …
#define GB_POWER_SUPPLY_USB_ACA_TYPE …
#define GB_POWER_SUPPLY_HEALTH_UNKNOWN …
#define GB_POWER_SUPPLY_HEALTH_GOOD …
#define GB_POWER_SUPPLY_HEALTH_OVERHEAT …
#define GB_POWER_SUPPLY_HEALTH_DEAD …
#define GB_POWER_SUPPLY_HEALTH_OVERVOLTAGE …
#define GB_POWER_SUPPLY_HEALTH_UNSPEC_FAILURE …
#define GB_POWER_SUPPLY_HEALTH_COLD …
#define GB_POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE …
#define GB_POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE …
#define GB_POWER_SUPPLY_STATUS_UNKNOWN …
#define GB_POWER_SUPPLY_STATUS_CHARGING …
#define GB_POWER_SUPPLY_STATUS_DISCHARGING …
#define GB_POWER_SUPPLY_STATUS_NOT_CHARGING …
#define GB_POWER_SUPPLY_STATUS_FULL …
#define GB_POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN …
#define GB_POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL …
#define GB_POWER_SUPPLY_CAPACITY_LEVEL_LOW …
#define GB_POWER_SUPPLY_CAPACITY_LEVEL_NORMAL …
#define GB_POWER_SUPPLY_CAPACITY_LEVEL_HIGH …
#define GB_POWER_SUPPLY_CAPACITY_LEVEL_FULL …
#define GB_POWER_SUPPLY_SCOPE_UNKNOWN …
#define GB_POWER_SUPPLY_SCOPE_SYSTEM …
#define GB_POWER_SUPPLY_SCOPE_DEVICE …
struct gb_power_supply_get_supplies_response { … } __packed;
struct gb_power_supply_get_description_request { … } __packed;
struct gb_power_supply_get_description_response { … } __packed;
struct gb_power_supply_props_desc { … } __packed;
struct gb_power_supply_get_property_descriptors_request { … } __packed;
struct gb_power_supply_get_property_descriptors_response { … } __packed;
struct gb_power_supply_get_property_request { … } __packed;
struct gb_power_supply_get_property_response { … };
struct gb_power_supply_set_property_request { … } __packed;
struct gb_power_supply_event_request { … } __packed;
#define GB_HID_TYPE_GET_DESC …
#define GB_HID_TYPE_GET_REPORT_DESC …
#define GB_HID_TYPE_PWR_ON …
#define GB_HID_TYPE_PWR_OFF …
#define GB_HID_TYPE_GET_REPORT …
#define GB_HID_TYPE_SET_REPORT …
#define GB_HID_TYPE_IRQ_EVENT …
#define GB_HID_INPUT_REPORT …
#define GB_HID_OUTPUT_REPORT …
#define GB_HID_FEATURE_REPORT …
struct gb_hid_desc_response { … } __packed;
struct gb_hid_get_report_request { … } __packed;
struct gb_hid_set_report_request { … } __packed;
struct gb_hid_input_report_request { … } __packed;
#define GB_I2C_TYPE_FUNCTIONALITY …
#define GB_I2C_TYPE_TRANSFER …
struct gb_i2c_functionality_response { … } __packed;
struct gb_i2c_transfer_op { … } __packed;
struct gb_i2c_transfer_request { … } __packed;
struct gb_i2c_transfer_response { … } __packed;
#define GB_GPIO_TYPE_LINE_COUNT …
#define GB_GPIO_TYPE_ACTIVATE …
#define GB_GPIO_TYPE_DEACTIVATE …
#define GB_GPIO_TYPE_GET_DIRECTION …
#define GB_GPIO_TYPE_DIRECTION_IN …
#define GB_GPIO_TYPE_DIRECTION_OUT …
#define GB_GPIO_TYPE_GET_VALUE …
#define GB_GPIO_TYPE_SET_VALUE …
#define GB_GPIO_TYPE_SET_DEBOUNCE …
#define GB_GPIO_TYPE_IRQ_TYPE …
#define GB_GPIO_TYPE_IRQ_MASK …
#define GB_GPIO_TYPE_IRQ_UNMASK …
#define GB_GPIO_TYPE_IRQ_EVENT …
#define GB_GPIO_IRQ_TYPE_NONE …
#define GB_GPIO_IRQ_TYPE_EDGE_RISING …
#define GB_GPIO_IRQ_TYPE_EDGE_FALLING …
#define GB_GPIO_IRQ_TYPE_EDGE_BOTH …
#define GB_GPIO_IRQ_TYPE_LEVEL_HIGH …
#define GB_GPIO_IRQ_TYPE_LEVEL_LOW …
struct gb_gpio_line_count_response { … } __packed;
struct gb_gpio_activate_request { … } __packed;
struct gb_gpio_deactivate_request { … } __packed;
struct gb_gpio_get_direction_request { … } __packed;
struct gb_gpio_get_direction_response { … } __packed;
struct gb_gpio_direction_in_request { … } __packed;
struct gb_gpio_direction_out_request { … } __packed;
struct gb_gpio_get_value_request { … } __packed;
struct gb_gpio_get_value_response { … } __packed;
struct gb_gpio_set_value_request { … } __packed;
struct gb_gpio_set_debounce_request { … } __packed;
struct gb_gpio_irq_type_request { … } __packed;
struct gb_gpio_irq_mask_request { … } __packed;
struct gb_gpio_irq_unmask_request { … } __packed;
struct gb_gpio_irq_event_request { … } __packed;
#define GB_PWM_TYPE_PWM_COUNT …
#define GB_PWM_TYPE_ACTIVATE …
#define GB_PWM_TYPE_DEACTIVATE …
#define GB_PWM_TYPE_CONFIG …
#define GB_PWM_TYPE_POLARITY …
#define GB_PWM_TYPE_ENABLE …
#define GB_PWM_TYPE_DISABLE …
struct gb_pwm_count_response { … } __packed;
struct gb_pwm_activate_request { … } __packed;
struct gb_pwm_deactivate_request { … } __packed;
struct gb_pwm_config_request { … } __packed;
struct gb_pwm_polarity_request { … } __packed;
struct gb_pwm_enable_request { … } __packed;
struct gb_pwm_disable_request { … } __packed;
#define GB_SPI_MODE_CPHA …
#define GB_SPI_MODE_CPOL …
#define GB_SPI_MODE_MODE_0 …
#define GB_SPI_MODE_MODE_1 …
#define GB_SPI_MODE_MODE_2 …
#define GB_SPI_MODE_MODE_3 …
#define GB_SPI_MODE_CS_HIGH …
#define GB_SPI_MODE_LSB_FIRST …
#define GB_SPI_MODE_3WIRE …
#define GB_SPI_MODE_LOOP …
#define GB_SPI_MODE_NO_CS …
#define GB_SPI_MODE_READY …
#define GB_SPI_FLAG_HALF_DUPLEX …
#define GB_SPI_FLAG_NO_RX …
#define GB_SPI_FLAG_NO_TX …
#define GB_SPI_TYPE_MASTER_CONFIG …
#define GB_SPI_TYPE_DEVICE_CONFIG …
#define GB_SPI_TYPE_TRANSFER …
struct gb_spi_master_config_response { … } __packed;
struct gb_spi_device_config_request { … } __packed;
struct gb_spi_device_config_response { … } __packed;
struct gb_spi_transfer { … } __packed;
struct gb_spi_transfer_request { … } __packed;
struct gb_spi_transfer_response { … } __packed;
#define GB_SVC_VERSION_MAJOR …
#define GB_SVC_VERSION_MINOR …
#define GB_SVC_TYPE_PROTOCOL_VERSION …
#define GB_SVC_TYPE_SVC_HELLO …
#define GB_SVC_TYPE_INTF_DEVICE_ID …
#define GB_SVC_TYPE_INTF_RESET …
#define GB_SVC_TYPE_CONN_CREATE …
#define GB_SVC_TYPE_CONN_DESTROY …
#define GB_SVC_TYPE_DME_PEER_GET …
#define GB_SVC_TYPE_DME_PEER_SET …
#define GB_SVC_TYPE_ROUTE_CREATE …
#define GB_SVC_TYPE_ROUTE_DESTROY …
#define GB_SVC_TYPE_TIMESYNC_ENABLE …
#define GB_SVC_TYPE_TIMESYNC_DISABLE …
#define GB_SVC_TYPE_TIMESYNC_AUTHORITATIVE …
#define GB_SVC_TYPE_INTF_SET_PWRM …
#define GB_SVC_TYPE_INTF_EJECT …
#define GB_SVC_TYPE_PING …
#define GB_SVC_TYPE_PWRMON_RAIL_COUNT_GET …
#define GB_SVC_TYPE_PWRMON_RAIL_NAMES_GET …
#define GB_SVC_TYPE_PWRMON_SAMPLE_GET …
#define GB_SVC_TYPE_PWRMON_INTF_SAMPLE_GET …
#define GB_SVC_TYPE_TIMESYNC_WAKE_PINS_ACQUIRE …
#define GB_SVC_TYPE_TIMESYNC_WAKE_PINS_RELEASE …
#define GB_SVC_TYPE_TIMESYNC_PING …
#define GB_SVC_TYPE_MODULE_INSERTED …
#define GB_SVC_TYPE_MODULE_REMOVED …
#define GB_SVC_TYPE_INTF_VSYS_ENABLE …
#define GB_SVC_TYPE_INTF_VSYS_DISABLE …
#define GB_SVC_TYPE_INTF_REFCLK_ENABLE …
#define GB_SVC_TYPE_INTF_REFCLK_DISABLE …
#define GB_SVC_TYPE_INTF_UNIPRO_ENABLE …
#define GB_SVC_TYPE_INTF_UNIPRO_DISABLE …
#define GB_SVC_TYPE_INTF_ACTIVATE …
#define GB_SVC_TYPE_INTF_RESUME …
#define GB_SVC_TYPE_INTF_MAILBOX_EVENT …
#define GB_SVC_TYPE_INTF_OOPS …
#define GB_SVC_OP_SUCCESS …
#define GB_SVC_OP_UNKNOWN_ERROR …
#define GB_SVC_INTF_NOT_DETECTED …
#define GB_SVC_INTF_NO_UPRO_LINK …
#define GB_SVC_INTF_UPRO_NOT_DOWN …
#define GB_SVC_INTF_UPRO_NOT_HIBERNATED …
#define GB_SVC_INTF_NO_V_SYS …
#define GB_SVC_INTF_V_CHG …
#define GB_SVC_INTF_WAKE_BUSY …
#define GB_SVC_INTF_NO_REFCLK …
#define GB_SVC_INTF_RELEASING …
#define GB_SVC_INTF_NO_ORDER …
#define GB_SVC_INTF_MBOX_SET …
#define GB_SVC_INTF_BAD_MBOX …
#define GB_SVC_INTF_OP_TIMEOUT …
#define GB_SVC_PWRMON_OP_NOT_PRESENT …
struct gb_svc_version_request { … } __packed;
struct gb_svc_version_response { … } __packed;
struct gb_svc_hello_request { … } __packed;
struct gb_svc_intf_device_id_request { … } __packed;
struct gb_svc_intf_reset_request { … } __packed;
struct gb_svc_intf_eject_request { … } __packed;
struct gb_svc_conn_create_request { … } __packed;
struct gb_svc_conn_destroy_request { … } __packed;
struct gb_svc_dme_peer_get_request { … } __packed;
struct gb_svc_dme_peer_get_response { … } __packed;
struct gb_svc_dme_peer_set_request { … } __packed;
struct gb_svc_dme_peer_set_response { … } __packed;
#define GB_INIT_SPI_BOOT_STARTED …
#define GB_INIT_TRUSTED_SPI_BOOT_FINISHED …
#define GB_INIT_UNTRUSTED_SPI_BOOT_FINISHED …
#define GB_INIT_BOOTROM_UNIPRO_BOOT_STARTED …
#define GB_INIT_BOOTROM_FALLBACK_UNIPRO_BOOT_STARTED …
#define GB_INIT_S2_LOADER_BOOT_STARTED …
struct gb_svc_route_create_request { … } __packed;
struct gb_svc_route_destroy_request { … } __packed;
struct gb_svc_intf_vsys_request { … } __packed;
struct gb_svc_intf_vsys_response { … } __packed;
struct gb_svc_intf_refclk_request { … } __packed;
struct gb_svc_intf_refclk_response { … } __packed;
struct gb_svc_intf_unipro_request { … } __packed;
struct gb_svc_intf_unipro_response { … } __packed;
#define GB_SVC_UNIPRO_FAST_MODE …
#define GB_SVC_UNIPRO_SLOW_MODE …
#define GB_SVC_UNIPRO_FAST_AUTO_MODE …
#define GB_SVC_UNIPRO_SLOW_AUTO_MODE …
#define GB_SVC_UNIPRO_MODE_UNCHANGED …
#define GB_SVC_UNIPRO_HIBERNATE_MODE …
#define GB_SVC_UNIPRO_OFF_MODE …
#define GB_SVC_SMALL_AMPLITUDE …
#define GB_SVC_LARGE_AMPLITUDE …
#define GB_SVC_NO_DE_EMPHASIS …
#define GB_SVC_SMALL_DE_EMPHASIS …
#define GB_SVC_LARGE_DE_EMPHASIS …
#define GB_SVC_PWRM_RXTERMINATION …
#define GB_SVC_PWRM_TXTERMINATION …
#define GB_SVC_PWRM_LINE_RESET …
#define GB_SVC_PWRM_SCRAMBLING …
#define GB_SVC_PWRM_QUIRK_HSSER …
#define GB_SVC_UNIPRO_HS_SERIES_A …
#define GB_SVC_UNIPRO_HS_SERIES_B …
#define GB_SVC_SETPWRM_PWR_OK …
#define GB_SVC_SETPWRM_PWR_LOCAL …
#define GB_SVC_SETPWRM_PWR_REMOTE …
#define GB_SVC_SETPWRM_PWR_BUSY …
#define GB_SVC_SETPWRM_PWR_ERROR_CAP …
#define GB_SVC_SETPWRM_PWR_FATAL_ERROR …
struct gb_svc_l2_timer_cfg { … } __packed;
struct gb_svc_intf_set_pwrm_request { … } __packed;
struct gb_svc_intf_set_pwrm_response { … } __packed;
struct gb_svc_key_event_request { … } __packed;
#define GB_SVC_PWRMON_MAX_RAIL_COUNT …
struct gb_svc_pwrmon_rail_count_get_response { … } __packed;
#define GB_SVC_PWRMON_RAIL_NAME_BUFSIZE …
struct gb_svc_pwrmon_rail_names_get_response { … } __packed;
#define GB_SVC_PWRMON_TYPE_CURR …
#define GB_SVC_PWRMON_TYPE_VOL …
#define GB_SVC_PWRMON_TYPE_PWR …
#define GB_SVC_PWRMON_GET_SAMPLE_OK …
#define GB_SVC_PWRMON_GET_SAMPLE_INVAL …
#define GB_SVC_PWRMON_GET_SAMPLE_NOSUPP …
#define GB_SVC_PWRMON_GET_SAMPLE_HWERR …
struct gb_svc_pwrmon_sample_get_request { … } __packed;
struct gb_svc_pwrmon_sample_get_response { … } __packed;
struct gb_svc_pwrmon_intf_sample_get_request { … } __packed;
struct gb_svc_pwrmon_intf_sample_get_response { … } __packed;
#define GB_SVC_MODULE_INSERTED_FLAG_NO_PRIMARY …
struct gb_svc_module_inserted_request { … } __packed;
struct gb_svc_module_removed_request { … } __packed;
struct gb_svc_intf_activate_request { … } __packed;
#define GB_SVC_INTF_TYPE_UNKNOWN …
#define GB_SVC_INTF_TYPE_DUMMY …
#define GB_SVC_INTF_TYPE_UNIPRO …
#define GB_SVC_INTF_TYPE_GREYBUS …
struct gb_svc_intf_activate_response { … } __packed;
struct gb_svc_intf_resume_request { … } __packed;
struct gb_svc_intf_resume_response { … } __packed;
#define GB_SVC_INTF_MAILBOX_NONE …
#define GB_SVC_INTF_MAILBOX_AP …
#define GB_SVC_INTF_MAILBOX_GREYBUS …
struct gb_svc_intf_mailbox_event_request { … } __packed;
struct gb_svc_intf_oops_request { … } __packed;
#define GB_RAW_TYPE_SEND …
struct gb_raw_send_request { … } __packed;
#define GB_UART_TYPE_SEND_DATA …
#define GB_UART_TYPE_RECEIVE_DATA …
#define GB_UART_TYPE_SET_LINE_CODING …
#define GB_UART_TYPE_SET_CONTROL_LINE_STATE …
#define GB_UART_TYPE_SEND_BREAK …
#define GB_UART_TYPE_SERIAL_STATE …
#define GB_UART_TYPE_RECEIVE_CREDITS …
#define GB_UART_TYPE_FLUSH_FIFOS …
struct gb_uart_send_data_request { … } __packed;
#define GB_UART_RECV_FLAG_FRAMING …
#define GB_UART_RECV_FLAG_PARITY …
#define GB_UART_RECV_FLAG_OVERRUN …
#define GB_UART_RECV_FLAG_BREAK …
struct gb_uart_recv_data_request { … } __packed;
struct gb_uart_receive_credits_request { … } __packed;
struct gb_uart_set_line_coding_request { … } __packed;
#define GB_UART_CTRL_DTR …
#define GB_UART_CTRL_RTS …
struct gb_uart_set_control_line_state_request { … } __packed;
struct gb_uart_set_break_request { … } __packed;
#define GB_UART_CTRL_DCD …
#define GB_UART_CTRL_DSR …
#define GB_UART_CTRL_RI …
struct gb_uart_serial_state_request { … } __packed;
struct gb_uart_serial_flush_request { … } __packed;
#define GB_LOOPBACK_TYPE_PING …
#define GB_LOOPBACK_TYPE_TRANSFER …
#define GB_LOOPBACK_TYPE_SINK …
struct gb_loopback_transfer_request { … } __packed;
struct gb_loopback_transfer_response { … } __packed;
#define GB_SDIO_TYPE_GET_CAPABILITIES …
#define GB_SDIO_TYPE_SET_IOS …
#define GB_SDIO_TYPE_COMMAND …
#define GB_SDIO_TYPE_TRANSFER …
#define GB_SDIO_TYPE_EVENT …
struct gb_sdio_get_caps_response { … } __packed;
struct gb_sdio_set_ios_request { … } __packed;
struct gb_sdio_command_request { … } __packed;
struct gb_sdio_command_response { … } __packed;
struct gb_sdio_transfer_request { … } __packed;
struct gb_sdio_transfer_response { … } __packed;
struct gb_sdio_event_request { … } __packed;
#define GB_CAMERA_TYPE_CAPABILITIES …
#define GB_CAMERA_TYPE_CONFIGURE_STREAMS …
#define GB_CAMERA_TYPE_CAPTURE …
#define GB_CAMERA_TYPE_FLUSH …
#define GB_CAMERA_TYPE_METADATA …
#define GB_CAMERA_MAX_STREAMS …
#define GB_CAMERA_MAX_SETTINGS_SIZE …
struct gb_camera_stream_config_request { … } __packed;
struct gb_camera_configure_streams_request { … } __packed;
struct gb_camera_stream_config_response { … } __packed;
struct gb_camera_configure_streams_response { … };
struct gb_camera_capture_request { … } __packed;
struct gb_camera_flush_response { … } __packed;
struct gb_camera_metadata_request { … } __packed;
#define GB_LIGHTS_TYPE_GET_LIGHTS …
#define GB_LIGHTS_TYPE_GET_LIGHT_CONFIG …
#define GB_LIGHTS_TYPE_GET_CHANNEL_CONFIG …
#define GB_LIGHTS_TYPE_GET_CHANNEL_FLASH_CONFIG …
#define GB_LIGHTS_TYPE_SET_BRIGHTNESS …
#define GB_LIGHTS_TYPE_SET_BLINK …
#define GB_LIGHTS_TYPE_SET_COLOR …
#define GB_LIGHTS_TYPE_SET_FADE …
#define GB_LIGHTS_TYPE_EVENT …
#define GB_LIGHTS_TYPE_SET_FLASH_INTENSITY …
#define GB_LIGHTS_TYPE_SET_FLASH_STROBE …
#define GB_LIGHTS_TYPE_SET_FLASH_TIMEOUT …
#define GB_LIGHTS_TYPE_GET_FLASH_FAULT …
#define GB_CHANNEL_MODE_NONE …
#define GB_CHANNEL_MODE_BATTERY …
#define GB_CHANNEL_MODE_POWER …
#define GB_CHANNEL_MODE_WIRELESS …
#define GB_CHANNEL_MODE_BLUETOOTH …
#define GB_CHANNEL_MODE_KEYBOARD …
#define GB_CHANNEL_MODE_BUTTONS …
#define GB_CHANNEL_MODE_NOTIFICATION …
#define GB_CHANNEL_MODE_ATTENTION …
#define GB_CHANNEL_MODE_FLASH …
#define GB_CHANNEL_MODE_TORCH …
#define GB_CHANNEL_MODE_INDICATOR …
#define GB_CHANNEL_MODE_DEFINED_RANGE …
#define GB_CHANNEL_MODE_VENDOR_RANGE …
#define GB_LIGHT_CHANNEL_MULTICOLOR …
#define GB_LIGHT_CHANNEL_FADER …
#define GB_LIGHT_CHANNEL_BLINK …
struct gb_lights_get_lights_response { … } __packed;
struct gb_lights_get_light_config_request { … } __packed;
struct gb_lights_get_light_config_response { … } __packed;
struct gb_lights_get_channel_config_request { … } __packed;
struct gb_lights_get_channel_flash_config_request { … } __packed;
struct gb_lights_get_channel_config_response { … } __packed;
struct gb_lights_get_channel_flash_config_response { … } __packed;
struct gb_lights_blink_request { … } __packed;
struct gb_lights_set_brightness_request { … } __packed;
struct gb_lights_set_color_request { … } __packed;
struct gb_lights_set_fade_request { … } __packed;
struct gb_lights_event_request { … } __packed;
struct gb_lights_set_flash_intensity_request { … } __packed;
struct gb_lights_set_flash_strobe_request { … } __packed;
struct gb_lights_set_flash_timeout_request { … } __packed;
struct gb_lights_get_flash_fault_request { … } __packed;
struct gb_lights_get_flash_fault_response { … } __packed;
#define GB_AUDIO_TYPE_GET_TOPOLOGY_SIZE …
#define GB_AUDIO_TYPE_GET_TOPOLOGY …
#define GB_AUDIO_TYPE_GET_CONTROL …
#define GB_AUDIO_TYPE_SET_CONTROL …
#define GB_AUDIO_TYPE_ENABLE_WIDGET …
#define GB_AUDIO_TYPE_DISABLE_WIDGET …
#define GB_AUDIO_TYPE_GET_PCM …
#define GB_AUDIO_TYPE_SET_PCM …
#define GB_AUDIO_TYPE_SET_TX_DATA_SIZE …
#define GB_AUDIO_TYPE_ACTIVATE_TX …
#define GB_AUDIO_TYPE_DEACTIVATE_TX …
#define GB_AUDIO_TYPE_SET_RX_DATA_SIZE …
#define GB_AUDIO_TYPE_ACTIVATE_RX …
#define GB_AUDIO_TYPE_DEACTIVATE_RX …
#define GB_AUDIO_TYPE_JACK_EVENT …
#define GB_AUDIO_TYPE_BUTTON_EVENT …
#define GB_AUDIO_TYPE_STREAMING_EVENT …
#define GB_AUDIO_TYPE_SEND_DATA …
#define GB_AUDIO_SAMPLE_BUFFER_MIN_US …
#define GB_AUDIO_PCM_NAME_MAX …
#define AUDIO_DAI_NAME_MAX …
#define AUDIO_CONTROL_NAME_MAX …
#define AUDIO_CTL_ELEM_NAME_MAX …
#define AUDIO_ENUM_NAME_MAX …
#define AUDIO_WIDGET_NAME_MAX …
#define GB_AUDIO_PCM_FMT_S8 …
#define GB_AUDIO_PCM_FMT_U8 …
#define GB_AUDIO_PCM_FMT_S16_LE …
#define GB_AUDIO_PCM_FMT_S16_BE …
#define GB_AUDIO_PCM_FMT_U16_LE …
#define GB_AUDIO_PCM_FMT_U16_BE …
#define GB_AUDIO_PCM_FMT_S24_LE …
#define GB_AUDIO_PCM_FMT_S24_BE …
#define GB_AUDIO_PCM_FMT_U24_LE …
#define GB_AUDIO_PCM_FMT_U24_BE …
#define GB_AUDIO_PCM_FMT_S32_LE …
#define GB_AUDIO_PCM_FMT_S32_BE …
#define GB_AUDIO_PCM_FMT_U32_LE …
#define GB_AUDIO_PCM_FMT_U32_BE …
#define GB_AUDIO_PCM_RATE_5512 …
#define GB_AUDIO_PCM_RATE_8000 …
#define GB_AUDIO_PCM_RATE_11025 …
#define GB_AUDIO_PCM_RATE_16000 …
#define GB_AUDIO_PCM_RATE_22050 …
#define GB_AUDIO_PCM_RATE_32000 …
#define GB_AUDIO_PCM_RATE_44100 …
#define GB_AUDIO_PCM_RATE_48000 …
#define GB_AUDIO_PCM_RATE_64000 …
#define GB_AUDIO_PCM_RATE_88200 …
#define GB_AUDIO_PCM_RATE_96000 …
#define GB_AUDIO_PCM_RATE_176400 …
#define GB_AUDIO_PCM_RATE_192000 …
#define GB_AUDIO_STREAM_TYPE_CAPTURE …
#define GB_AUDIO_STREAM_TYPE_PLAYBACK …
#define GB_AUDIO_CTL_ELEM_ACCESS_READ …
#define GB_AUDIO_CTL_ELEM_ACCESS_WRITE …
#define GB_AUDIO_CTL_ELEM_TYPE_BOOLEAN …
#define GB_AUDIO_CTL_ELEM_TYPE_INTEGER …
#define GB_AUDIO_CTL_ELEM_TYPE_ENUMERATED …
#define GB_AUDIO_CTL_ELEM_TYPE_INTEGER64 …
#define GB_AUDIO_CTL_ELEM_IFACE_CARD …
#define GB_AUDIO_CTL_ELEM_IFACE_HWDEP …
#define GB_AUDIO_CTL_ELEM_IFACE_MIXER …
#define GB_AUDIO_CTL_ELEM_IFACE_PCM …
#define GB_AUDIO_CTL_ELEM_IFACE_RAWMIDI …
#define GB_AUDIO_CTL_ELEM_IFACE_TIMER …
#define GB_AUDIO_CTL_ELEM_IFACE_SEQUENCER …
#define GB_AUDIO_ACCESS_READ …
#define GB_AUDIO_ACCESS_WRITE …
#define GB_AUDIO_ACCESS_VOLATILE …
#define GB_AUDIO_ACCESS_TIMESTAMP …
#define GB_AUDIO_ACCESS_TLV_READ …
#define GB_AUDIO_ACCESS_TLV_WRITE …
#define GB_AUDIO_ACCESS_TLV_COMMAND …
#define GB_AUDIO_ACCESS_INACTIVE …
#define GB_AUDIO_ACCESS_LOCK …
#define GB_AUDIO_ACCESS_OWNER …
#define GB_AUDIO_WIDGET_TYPE_INPUT …
#define GB_AUDIO_WIDGET_TYPE_OUTPUT …
#define GB_AUDIO_WIDGET_TYPE_MUX …
#define GB_AUDIO_WIDGET_TYPE_VIRT_MUX …
#define GB_AUDIO_WIDGET_TYPE_VALUE_MUX …
#define GB_AUDIO_WIDGET_TYPE_MIXER …
#define GB_AUDIO_WIDGET_TYPE_MIXER_NAMED_CTL …
#define GB_AUDIO_WIDGET_TYPE_PGA …
#define GB_AUDIO_WIDGET_TYPE_OUT_DRV …
#define GB_AUDIO_WIDGET_TYPE_ADC …
#define GB_AUDIO_WIDGET_TYPE_DAC …
#define GB_AUDIO_WIDGET_TYPE_MICBIAS …
#define GB_AUDIO_WIDGET_TYPE_MIC …
#define GB_AUDIO_WIDGET_TYPE_HP …
#define GB_AUDIO_WIDGET_TYPE_SPK …
#define GB_AUDIO_WIDGET_TYPE_LINE …
#define GB_AUDIO_WIDGET_TYPE_SWITCH …
#define GB_AUDIO_WIDGET_TYPE_VMID …
#define GB_AUDIO_WIDGET_TYPE_PRE …
#define GB_AUDIO_WIDGET_TYPE_POST …
#define GB_AUDIO_WIDGET_TYPE_SUPPLY …
#define GB_AUDIO_WIDGET_TYPE_REGULATOR_SUPPLY …
#define GB_AUDIO_WIDGET_TYPE_CLOCK_SUPPLY …
#define GB_AUDIO_WIDGET_TYPE_AIF_IN …
#define GB_AUDIO_WIDGET_TYPE_AIF_OUT …
#define GB_AUDIO_WIDGET_TYPE_SIGGEN …
#define GB_AUDIO_WIDGET_TYPE_DAI_IN …
#define GB_AUDIO_WIDGET_TYPE_DAI_OUT …
#define GB_AUDIO_WIDGET_TYPE_DAI_LINK …
#define GB_AUDIO_WIDGET_STATE_DISABLED …
#define GB_AUDIO_WIDGET_STATE_ENAABLED …
#define GB_AUDIO_JACK_EVENT_INSERTION …
#define GB_AUDIO_JACK_EVENT_REMOVAL …
#define GB_AUDIO_BUTTON_EVENT_PRESS …
#define GB_AUDIO_BUTTON_EVENT_RELEASE …
#define GB_AUDIO_STREAMING_EVENT_UNSPECIFIED …
#define GB_AUDIO_STREAMING_EVENT_HALT …
#define GB_AUDIO_STREAMING_EVENT_INTERNAL_ERROR …
#define GB_AUDIO_STREAMING_EVENT_PROTOCOL_ERROR …
#define GB_AUDIO_STREAMING_EVENT_FAILURE …
#define GB_AUDIO_STREAMING_EVENT_UNDERRUN …
#define GB_AUDIO_STREAMING_EVENT_OVERRUN …
#define GB_AUDIO_STREAMING_EVENT_CLOCKING …
#define GB_AUDIO_STREAMING_EVENT_DATA_LEN …
#define GB_AUDIO_INVALID_INDEX …
#define GB_AUDIO_JACK_HEADPHONE …
#define GB_AUDIO_JACK_MICROPHONE …
#define GB_AUDIO_JACK_HEADSET …
#define GB_AUDIO_JACK_LINEOUT …
#define GB_AUDIO_JACK_MECHANICAL …
#define GB_AUDIO_JACK_VIDEOOUT …
#define GB_AUDIO_JACK_AVOUT …
#define GB_AUDIO_JACK_LINEIN …
#define GB_AUDIO_JACK_OC_HPHL …
#define GB_AUDIO_JACK_OC_HPHR …
#define GB_AUDIO_JACK_MICROPHONE2 …
#define GB_AUDIO_JACK_ANC_HEADPHONE …
#define GB_AUDIO_JACK_BTN_0 …
#define GB_AUDIO_JACK_BTN_1 …
#define GB_AUDIO_JACK_BTN_2 …
#define GB_AUDIO_JACK_BTN_3 …
struct gb_audio_pcm { … } __packed;
struct gb_audio_dai { … } __packed;
struct gb_audio_integer { … } __packed;
struct gb_audio_integer64 { … } __packed;
struct gb_audio_enumerated { … } __packed;
struct gb_audio_ctl_elem_info { … } __packed;
struct gb_audio_ctl_elem_value { … } __packed;
struct gb_audio_control { … } __packed;
struct gb_audio_widget { … } __packed;
struct gb_audio_route { … } __packed;
struct gb_audio_topology { … } __packed;
struct gb_audio_get_topology_size_response { … } __packed;
struct gb_audio_get_topology_response { … } __packed;
struct gb_audio_get_control_request { … } __packed;
struct gb_audio_get_control_response { … } __packed;
struct gb_audio_set_control_request { … } __packed;
struct gb_audio_enable_widget_request { … } __packed;
struct gb_audio_disable_widget_request { … } __packed;
struct gb_audio_get_pcm_request { … } __packed;
struct gb_audio_get_pcm_response { … } __packed;
struct gb_audio_set_pcm_request { … } __packed;
struct gb_audio_set_tx_data_size_request { … } __packed;
struct gb_audio_activate_tx_request { … } __packed;
struct gb_audio_deactivate_tx_request { … } __packed;
struct gb_audio_set_rx_data_size_request { … } __packed;
struct gb_audio_activate_rx_request { … } __packed;
struct gb_audio_deactivate_rx_request { … } __packed;
struct gb_audio_jack_event_request { … } __packed;
struct gb_audio_button_event_request { … } __packed;
struct gb_audio_streaming_event_request { … } __packed;
struct gb_audio_send_data_request { … } __packed;
#define GB_LOG_TYPE_SEND_LOG …
#define GB_LOG_MAX_LEN …
struct gb_log_send_log_request { … } __packed;
#endif