linux/include/linux/greybus/greybus_protocols.h

/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
 * Copyright(c) 2014 - 2015 Google Inc. All rights reserved.
 * Copyright(c) 2014 - 2015 Linaro Ltd. All rights reserved.
 */

#ifndef __GREYBUS_PROTOCOLS_H
#define __GREYBUS_PROTOCOLS_H

#include <linux/types.h>

/* Fixed IDs for control/svc protocols */

/* SVC switch-port device ids */
#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


/*
 * All operation messages (both requests and responses) begin with
 * a header that encodes the size of the message (header included).
 * This header also contains a unique identifier, that associates a
 * response message with its operation.  The header contains an
 * operation type field, whose interpretation is dependent on what
 * type of protocol is used over the connection.  The high bit
 * (0x80) of the operation type field is used to indicate whether
 * the message is a request (clear) or a response (set).
 *
 * Response messages include an additional result byte, which
 * communicates the result of the corresponding request.  A zero
 * result value means the operation completed successfully.  Any
 * other value indicates an error; in this case, the payload of the
 * response message (if any) is ignored.  The result byte must be
 * zero in the header for a request message.
 *
 * The wire format for all numeric fields in the header is little
 * endian.  Any operation-specific data begins immediately after the
 * header.
 */
struct gb_operation_msg_hdr {} __packed;


/* Generic request types */
#define GB_REQUEST_TYPE_CPORT_SHUTDOWN
#define GB_REQUEST_TYPE_INVALID

struct gb_cport_shutdown_request {} __packed;


/* Control Protocol */

/* Greybus control request types */
#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
/*	Unused					0x0a */
#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;

/* Control protocol manifest get size request has no payload*/
struct gb_control_get_manifest_size_response {} __packed;

/* Control protocol manifest get request has no payload */
struct gb_control_get_manifest_response {} __packed;

/* Control protocol [dis]connected request */
struct gb_control_connected_request {} __packed;

struct gb_control_disconnecting_request {} __packed;
/* disconnecting response has no payload */

struct gb_control_disconnected_request {} __packed;
/* Control protocol [dis]connected response has no payload */

/*
 * All Bundle power management operations use the same request and response
 * layout and status codes.
 */

#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;

/*
 * Interface Suspend Prepare and Deactivate Prepare operations use the same
 * response layout and error codes. Define a single response structure and reuse
 * it. Both operations have no payload.
 */

#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;

/* APBridge protocol */

/* request APB1 log */
#define GB_APB_REQUEST_LOG

/* request to map a cport to bulk in and bulk out endpoints */
#define GB_APB_REQUEST_EP_MAPPING

/* request to get the number of cports available */
#define GB_APB_REQUEST_CPORT_COUNT

/* request to reset a cport state */
#define GB_APB_REQUEST_RESET_CPORT

/* request to time the latency of messages on a given cport */
#define GB_APB_REQUEST_LATENCY_TAG_EN
#define GB_APB_REQUEST_LATENCY_TAG_DIS

/* request to control the CSI transmitter */
#define GB_APB_REQUEST_CSI_TX_CONTROL

/* request to control audio streaming */
#define GB_APB_REQUEST_AUDIO_CONTROL

/* TimeSync requests */
#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

/* requests to set Greybus CPort flags */
#define GB_APB_REQUEST_CPORT_FLAGS

/* ARPC request */
#define GB_APB_REQUEST_ARPC_RUN

struct gb_apb_request_cport_flags {} __packed;


/* Firmware Download Protocol */

/* Request Types */
#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

/* firmware download find firmware request/response */
struct gb_fw_download_find_firmware_request {} __packed;

struct gb_fw_download_find_firmware_response {} __packed;

/* firmware download fetch firmware request/response */
struct gb_fw_download_fetch_firmware_request {} __packed;

/* gb_fw_download_fetch_firmware_response contains no other data */

/* firmware download release firmware request */
struct gb_fw_download_release_firmware_request {} __packed;
/* firmware download release firmware response has no payload */


/* Firmware Management Protocol */

/* Request Types */
#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

/* firmware management interface firmware version request has no payload */
struct gb_fw_mgmt_interface_fw_version_response {} __packed;

/* firmware management load and validate firmware request/response */
struct gb_fw_mgmt_load_and_validate_fw_request {} __packed;
/* firmware management load and validate firmware response has no payload*/

/* firmware management loaded firmware request */
struct gb_fw_mgmt_loaded_fw_request {} __packed;
/* firmware management loaded firmware response has no payload */

/* firmware management backend firmware version request/response */
struct gb_fw_mgmt_backend_fw_version_request {} __packed;

struct gb_fw_mgmt_backend_fw_version_response {} __packed;

/* firmware management backend firmware update request */
struct gb_fw_mgmt_backend_fw_update_request {} __packed;
/* firmware management backend firmware update response has no payload */

/* firmware management backend firmware updated request */
struct gb_fw_mgmt_backend_fw_updated_request {} __packed;
/* firmware management backend firmware updated response has no payload */


/* Component Authentication Protocol (CAP) */

/* Request Types */
#define GB_CAP_TYPE_GET_ENDPOINT_UID
#define GB_CAP_TYPE_GET_IMS_CERTIFICATE
#define GB_CAP_TYPE_AUTHENTICATE

/* CAP get endpoint uid request has no payload */
struct gb_cap_get_endpoint_uid_response {} __packed;

/* CAP get endpoint ims certificate request/response */
struct gb_cap_get_ims_certificate_request {} __packed;

struct gb_cap_get_ims_certificate_response {} __packed;

/* CAP authenticate request/response */
struct gb_cap_authenticate_request {} __packed;

struct gb_cap_authenticate_response {} __packed;


/* Bootrom Protocol */

/* Version of the Greybus bootrom protocol we support */
#define GB_BOOTROM_VERSION_MAJOR
#define GB_BOOTROM_VERSION_MINOR

/* Greybus bootrom request types */
#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

/* Greybus bootrom boot stages */
#define GB_BOOTROM_BOOT_STAGE_ONE
#define GB_BOOTROM_BOOT_STAGE_TWO
#define GB_BOOTROM_BOOT_STAGE_THREE

/* Greybus bootrom ready to boot status */
#define GB_BOOTROM_BOOT_STATUS_INVALID
#define GB_BOOTROM_BOOT_STATUS_INSECURE
#define GB_BOOTROM_BOOT_STATUS_SECURE

/* Max bootrom data fetch size in bytes */
#define GB_BOOTROM_FETCH_MAX

struct gb_bootrom_version_request {} __packed;

struct gb_bootrom_version_response {} __packed;

/* Bootrom protocol firmware size request/response */
struct gb_bootrom_firmware_size_request {} __packed;

struct gb_bootrom_firmware_size_response {} __packed;

/* Bootrom protocol get firmware request/response */
struct gb_bootrom_get_firmware_request {} __packed;

/* gb_bootrom_get_firmware_response contains no other data */

/* Bootrom protocol Ready to boot request */
struct gb_bootrom_ready_to_boot_request {} __packed;
/* Bootrom protocol Ready to boot response has no payload */

/* Bootrom protocol get VID/PID request has no payload */
struct gb_bootrom_get_vid_pid_response {} __packed;


/* Power Supply */

/* Greybus power supply request types */
#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

/* Greybus power supply battery technologies types */
#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

/* Greybus power supply types */
#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

/* Greybus power supply health values */
#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

/* Greybus power supply status values */
#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

/* Greybus power supply capacity level values */
#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

/* Greybus power supply scope values */
#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;


/* HID */

/* Greybus HID operation types */
#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

/* Report type */
#define GB_HID_INPUT_REPORT
#define GB_HID_OUTPUT_REPORT
#define GB_HID_FEATURE_REPORT

/* Different request/response structures */
/* HID get descriptor response */
struct gb_hid_desc_response {} __packed;

/* HID get report request/response */
struct gb_hid_get_report_request {} __packed;

/* HID set report request */
struct gb_hid_set_report_request {} __packed;

/* HID input report request, via interrupt pipe */
struct gb_hid_input_report_request {} __packed;


/* I2C */

/* Greybus i2c request types */
#define GB_I2C_TYPE_FUNCTIONALITY
#define GB_I2C_TYPE_TRANSFER

/* functionality request has no payload */
struct gb_i2c_functionality_response {} __packed;

/*
 * Outgoing data immediately follows the op count and ops array.
 * The data for each write (master -> slave) op in the array is sent
 * in order, with no (e.g. pad) bytes separating them.
 *
 * Short reads cause the entire transfer request to fail So response
 * payload consists only of bytes read, and the number of bytes is
 * exactly what was specified in the corresponding op.  Like
 * outgoing data, the incoming data is in order and contiguous.
 */
struct gb_i2c_transfer_op {} __packed;

struct gb_i2c_transfer_request {} __packed;
struct gb_i2c_transfer_response {} __packed;


/* GPIO */

/* Greybus GPIO request types */
#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

/* line count request has no payload */
struct gb_gpio_line_count_response {} __packed;

struct gb_gpio_activate_request {} __packed;
/* activate response has no payload */

struct gb_gpio_deactivate_request {} __packed;
/* deactivate response has no payload */

struct gb_gpio_get_direction_request {} __packed;
struct gb_gpio_get_direction_response {} __packed;

struct gb_gpio_direction_in_request {} __packed;
/* direction in response has no payload */

struct gb_gpio_direction_out_request {} __packed;
/* direction out response has no payload */

struct gb_gpio_get_value_request {} __packed;
struct gb_gpio_get_value_response {} __packed;

struct gb_gpio_set_value_request {} __packed;
/* set value response has no payload */

struct gb_gpio_set_debounce_request {} __packed;
/* debounce response has no payload */

struct gb_gpio_irq_type_request {} __packed;
/* irq type response has no payload */

struct gb_gpio_irq_mask_request {} __packed;
/* irq mask response has no payload */

struct gb_gpio_irq_unmask_request {} __packed;
/* irq unmask response has no payload */

/* irq event requests originate on another module and are handled on the AP */
struct gb_gpio_irq_event_request {} __packed;
/* irq event has no response */


/* PWM */

/* Greybus PWM operation types */
#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

/* pwm count request has no payload */
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;

/* SPI */

/* Should match up with modes in linux/spi/spi.h */
#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

/* Should match up with flags in linux/spi/spi.h */
#define GB_SPI_FLAG_HALF_DUPLEX
#define GB_SPI_FLAG_NO_RX
#define GB_SPI_FLAG_NO_TX

/* Greybus spi operation types */
#define GB_SPI_TYPE_MASTER_CONFIG
#define GB_SPI_TYPE_DEVICE_CONFIG
#define GB_SPI_TYPE_TRANSFER

/* mode request has no payload */
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 - a read/write buffer pair
 * @speed_hz: Select a speed other than the device default for this transfer. If
 *	0 the default (from @spi_device) is used.
 * @len: size of rx and tx buffers (in bytes)
 * @delay_usecs: microseconds to delay after this transfer before (optionally)
 * 	changing the chipselect status, then starting the next transfer or
 * 	completing this spi_message.
 * @cs_change: affects chipselect after this transfer completes
 * @bits_per_word: select a bits_per_word other than the device default for this
 *	transfer. If 0 the default (from @spi_device) is used.
 */
struct gb_spi_transfer {} __packed;

struct gb_spi_transfer_request {} __packed;

struct gb_spi_transfer_response {} __packed;

/* Version of the Greybus SVC protocol we support */
#define GB_SVC_VERSION_MAJOR
#define GB_SVC_VERSION_MINOR

/* Greybus SVC request types */
#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

/* Greybus SVC protocol status values */
#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;

/* SVC protocol hello request */
struct gb_svc_hello_request {} __packed;
/* hello response has no payload */

struct gb_svc_intf_device_id_request {} __packed;
/* device id response has no payload */

struct gb_svc_intf_reset_request {} __packed;
/* interface reset response has no payload */

struct gb_svc_intf_eject_request {} __packed;
/* interface eject response has no payload */

struct gb_svc_conn_create_request {} __packed;
/* connection create response has no payload */

struct gb_svc_conn_destroy_request {} __packed;
/* connection destroy response has no payload */

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;

/* Greybus init-status values, currently retrieved using DME peer gets. */
#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;
/* route create response has no payload */

struct gb_svc_route_destroy_request {} __packed;
/* route destroy response has no payload */

/* used for svc_intf_vsys_{enable,disable} */
struct gb_svc_intf_vsys_request {} __packed;

struct gb_svc_intf_vsys_response {} __packed;

/* used for svc_intf_refclk_{enable,disable} */
struct gb_svc_intf_refclk_request {} __packed;

struct gb_svc_intf_refclk_response {} __packed;

/* used for svc_intf_unipro_{enable,disable} */
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;
/* module_inserted response has no payload */

struct gb_svc_module_removed_request {} __packed;
/* module_removed response has no payload */

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;
/* intf_mailbox_event response has no payload */

struct gb_svc_intf_oops_request {} __packed;
/* intf_oops response has no payload */


/* RAW */

/* Greybus raw request types */
#define GB_RAW_TYPE_SEND

struct gb_raw_send_request {} __packed;


/* UART */

/* Greybus UART operation types */
#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

/* Represents data from AP -> Module */
struct gb_uart_send_data_request {} __packed;

/* recv-data-request flags */
#define GB_UART_RECV_FLAG_FRAMING
#define GB_UART_RECV_FLAG_PARITY
#define GB_UART_RECV_FLAG_OVERRUN
#define GB_UART_RECV_FLAG_BREAK

/* Represents data from Module -> AP */
struct gb_uart_recv_data_request {} __packed;

struct gb_uart_receive_credits_request {} __packed;

struct gb_uart_set_line_coding_request {} __packed;

/* output control lines */
#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;

/* input control lines and line errors */
#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;

/* Loopback */

/* Greybus loopback request types */
#define GB_LOOPBACK_TYPE_PING
#define GB_LOOPBACK_TYPE_TRANSFER
#define GB_LOOPBACK_TYPE_SINK

/*
 * Loopback request/response header format should be identical
 * to simplify bandwidth and data movement analysis.
 */
struct gb_loopback_transfer_request {} __packed;

struct gb_loopback_transfer_response {} __packed;

/* SDIO */
/* Greybus SDIO operation types */
#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

/* get caps response: request has no payload */
struct gb_sdio_get_caps_response {} __packed;

/* set ios request: response has no payload */
struct gb_sdio_set_ios_request {} __packed;

/* command request */
struct gb_sdio_command_request {} __packed;

struct gb_sdio_command_response {} __packed;

/* transfer request */
struct gb_sdio_transfer_request {} __packed;

struct gb_sdio_transfer_response {} __packed;

/* event request: generated by module and is defined as unidirectional */
struct gb_sdio_event_request {} __packed;

/* Camera */

/* Greybus Camera request types */
#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

/* Greybus Camera Configure Streams request payload */
struct gb_camera_stream_config_request {} __packed;

struct gb_camera_configure_streams_request {} __packed;

/* Greybus Camera Configure Streams response payload */
struct gb_camera_stream_config_response {} __packed;

struct gb_camera_configure_streams_response {};

/* Greybus Camera Capture request payload - response has no payload */
struct gb_camera_capture_request {} __packed;

/* Greybus Camera Flush response payload - request has no payload */
struct gb_camera_flush_response {} __packed;

/* Greybus Camera Metadata request payload - operation has no response */
struct gb_camera_metadata_request {} __packed;

/* Lights */

/* Greybus Lights request types */
#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

/* Greybus Light modes */

/*
 * if you add any specific mode below, update also the
 * GB_CHANNEL_MODE_DEFINED_RANGE value accordingly
 */
#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

/* Lights Mode valid bit values */
#define GB_CHANNEL_MODE_DEFINED_RANGE
#define GB_CHANNEL_MODE_VENDOR_RANGE

/* Greybus Light Channels Flags */
#define GB_LIGHT_CHANNEL_MULTICOLOR
#define GB_LIGHT_CHANNEL_FADER
#define GB_LIGHT_CHANNEL_BLINK

/* get count of lights in module */
struct gb_lights_get_lights_response {} __packed;

/* light config request payload */
struct gb_lights_get_light_config_request {} __packed;

/* light config response payload */
struct gb_lights_get_light_config_response {} __packed;

/* channel config request payload */
struct gb_lights_get_channel_config_request {} __packed;

/* channel flash config request payload */
struct gb_lights_get_channel_flash_config_request {} __packed;

/* channel config response payload */
struct gb_lights_get_channel_config_response {} __packed;

/* channel flash config response payload */
struct gb_lights_get_channel_flash_config_response {} __packed;

/* blink request payload: response have no payload */
struct gb_lights_blink_request {} __packed;

/* set brightness request payload: response have no payload */
struct gb_lights_set_brightness_request {} __packed;

/* set color request payload: response have no payload */
struct gb_lights_set_color_request {} __packed;

/* set fade request payload: response have no payload */
struct gb_lights_set_fade_request {} __packed;

/* event request: generated by module */
struct gb_lights_event_request {} __packed;

/* set flash intensity request payload: response have no payload */
struct gb_lights_set_flash_intensity_request {} __packed;

/* set flash strobe state request payload: response have no payload */
struct gb_lights_set_flash_strobe_request {} __packed;

/* set flash timeout request payload: response have no payload */
struct gb_lights_set_flash_timeout_request {} __packed;

/* get flash fault request payload */
struct gb_lights_get_flash_fault_request {} __packed;

/* get flash fault response payload */
struct gb_lights_get_flash_fault_response {} __packed;

/* Audio */

#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
						/* 0x0b unused */
#define GB_AUDIO_TYPE_ACTIVATE_TX
#define GB_AUDIO_TYPE_DEACTIVATE_TX
#define GB_AUDIO_TYPE_SET_RX_DATA_SIZE
						/* 0x0f unused */
#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

/* Module must be able to buffer 10ms of audio data, minimum */
#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

/* See SNDRV_PCM_FMTBIT_* in Linux source */
#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

/* See SNDRV_PCM_RATE_* in Linux source */
#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

/* See SNDRV_CTL_ELEM_TYPE_* in Linux source */
#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

/* See SNDRV_CTL_ELEM_IFACE_* in Linux source */
#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

/* SNDRV_CTL_ELEM_ACCESS_* in Linux source */
#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

/* enum snd_soc_dapm_type */
#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

/* enum snd_jack_types */
#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
/* Kept separate from switches to facilitate implementation */
#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;


/* Log */

/* operations */
#define GB_LOG_TYPE_SEND_LOG

/* length */
#define GB_LOG_MAX_LEN

struct gb_log_send_log_request {} __packed;

#endif /* __GREYBUS_PROTOCOLS_H */