summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus_protocols.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-08-10 12:58:41 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-10 15:36:34 +0200
commit7d0e76d6cbbcc7b71f65d39ee2b4231beab42faa (patch)
treedbd9f5ddf8582fd92c70662d35ced7893282c19f /drivers/staging/greybus/greybus_protocols.h
parent83d474f7aa467a8cc4cb33337a790fea891a98f1 (diff)
downloadop-kernel-dev-7d0e76d6cbbcc7b71f65d39ee2b4231beab42faa.zip
op-kernel-dev-7d0e76d6cbbcc7b71f65d39ee2b4231beab42faa.tar.gz
greybus: arpc: move arpc definitions to their own header
Move the ARPC definitions to their own header. ARPC is not part of greybus, but is rather an implementation-specific means of communicating with a certain class of host-device hardware. Note that the same is true for the APBA USB vendor requests, but we keep them in the greybus header for the time being. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r--drivers/staging/greybus/greybus_protocols.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h
index 4bf494c..d43b367 100644
--- a/drivers/staging/greybus/greybus_protocols.h
+++ b/drivers/staging/greybus/greybus_protocols.h
@@ -268,35 +268,6 @@ struct gb_apb_request_cport_flags {
#define GB_APB_CPORT_FLAG_HIGH_PRIO 0x02
} __packed;
-/* APBridgeA RPC (ARPC) */
-
-enum arpc_result {
- ARPC_SUCCESS = 0x00,
- ARPC_NO_MEMORY = 0x01,
- ARPC_INVALID = 0x02,
- ARPC_TIMEOUT = 0x03,
- ARPC_UNKNOWN_ERROR = 0xff,
-};
-
-/* ARPC request */
-struct arpc_request_message {
- __le16 id; /* RPC unique id */
- __le16 size; /* Size in bytes of header + payload */
- __u8 type; /* RPC type */
- __u8 data[0]; /* ARPC data */
-} __packed;
-
-/* ARPC response */
-struct arpc_response_message {
- __le16 id; /* RPC unique id */
- __u8 result; /* Result of RPC */
-} __packed;
-
-#define ARPC_TYPE_CPORT_RESET 0x00
-
-struct arpc_cport_reset_req {
- __le16 cport_id;
-} __packed;
/* Firmware Download Protocol */
OpenPOWER on IntegriCloud