mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
greybus: raw: Move request/response structure/definitions to greybus_protocols.h
These must be exposed to external modules, like gbsim. Move them to greybus_protocols.h file. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
51aee043ec
commit
d65e3a22aa
2 changed files with 16 additions and 12 deletions
|
@ -823,6 +823,22 @@ struct gb_svc_route_create_request {
|
|||
__u8 dev2_id;
|
||||
};
|
||||
|
||||
|
||||
/* RAW */
|
||||
|
||||
/* Version of the Greybus raw protocol we support */
|
||||
#define GB_RAW_VERSION_MAJOR 0x00
|
||||
#define GB_RAW_VERSION_MINOR 0x01
|
||||
|
||||
/* Greybus raw request types */
|
||||
#define GB_RAW_TYPE_SEND 0x02
|
||||
|
||||
struct gb_raw_send_request {
|
||||
__le32 len;
|
||||
__u8 data[0];
|
||||
};
|
||||
|
||||
|
||||
/* UART */
|
||||
|
||||
/* Version of the Greybus UART protocol we support */
|
||||
|
|
|
@ -28,18 +28,6 @@ struct gb_raw {
|
|||
struct device *device;
|
||||
};
|
||||
|
||||
/* Version of the Greybus raw protocol we support */
|
||||
#define GB_RAW_VERSION_MAJOR 0x00
|
||||
#define GB_RAW_VERSION_MINOR 0x01
|
||||
|
||||
/* Greybus raw request types */
|
||||
#define GB_RAW_TYPE_SEND 0x02
|
||||
|
||||
struct gb_raw_send_request {
|
||||
__le32 len;
|
||||
__u8 data[0];
|
||||
};
|
||||
|
||||
struct raw_data {
|
||||
struct list_head entry;
|
||||
u32 len;
|
||||
|
|
Loading…
Reference in a new issue