diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-08-10 12:58:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-08-10 15:36:34 +0200 |
commit | 7d0e76d6cbbcc7b71f65d39ee2b4231beab42faa (patch) | |
tree | dbd9f5ddf8582fd92c70662d35ced7893282c19f /drivers/staging/greybus/greybus_protocols.h | |
parent | 83d474f7aa467a8cc4cb33337a790fea891a98f1 (diff) |
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.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index 4bf494c8d856..d43b36747113 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 */ |