1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
3 * Copyright(c) 2016 Google Inc. All rights reserved.
4 * Copyright(c) 2016 Linaro Ltd. All rights reserved.
10 /* APBridgeA RPC (ARPC) */
14 ARPC_NO_MEMORY = 0x01,
17 ARPC_UNKNOWN_ERROR = 0xff,
20 struct arpc_request_message {
21 __le16 id; /* RPC unique id */
22 __le16 size; /* Size in bytes of header + payload */
23 __u8 type; /* RPC type */
24 __u8 data[]; /* ARPC data */
27 struct arpc_response_message {
28 __le16 id; /* RPC unique id */
29 __u8 result; /* Result of RPC */
33 #define ARPC_TYPE_CPORT_CONNECTED 0x01
34 #define ARPC_TYPE_CPORT_QUIESCE 0x02
35 #define ARPC_TYPE_CPORT_CLEAR 0x03
36 #define ARPC_TYPE_CPORT_FLUSH 0x04
37 #define ARPC_TYPE_CPORT_SHUTDOWN 0x05
39 struct arpc_cport_connected_req {
43 struct arpc_cport_quiesce_req {
49 struct arpc_cport_clear_req {
53 struct arpc_cport_flush_req {
57 struct arpc_cport_shutdown_req {