mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 07:04:44 +00:00
cdee4f7505
Add control protocol driver that is responsible for handling operations on control CPort. The AP also needs to support incoming requests on its control port. Features not implemented yet are marked as TODO for now. NOTE: This also fixes cport-bundle-id to 0 and cport-id to 2 for control protocol. Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
27 lines
718 B
C
27 lines
718 B
C
/*
|
|
* Greybus CPort control protocol
|
|
*
|
|
* Copyright 2015 Google Inc.
|
|
* Copyright 2015 Linaro Ltd.
|
|
*
|
|
* Released under the GPLv2 only.
|
|
*/
|
|
|
|
#ifndef __CONTROL_H
|
|
#define __CONTROL_H
|
|
|
|
struct gb_control {
|
|
struct gb_connection *connection;
|
|
u8 version_major;
|
|
u8 version_minor;
|
|
};
|
|
|
|
int gb_control_connected_operation(struct gb_control *control, u16 cport_id);
|
|
int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id);
|
|
int gb_control_get_manifest_size_operation(struct gb_interface *intf);
|
|
int gb_control_get_manifest_operation(struct gb_interface *intf, void *manifest,
|
|
size_t size);
|
|
|
|
int gb_control_protocol_init(void);
|
|
void gb_control_protocol_exit(void);
|
|
#endif /* __CONTROL_H */
|