mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 07:04:44 +00:00
30c6d9d753
This patch adds support for the Greybus SVC protocol. We may want to rearrange protocol numbers at some point, since this is a pretty fundamental protocol. Note: It has only been compile tested; no SVC CPorts have yet been defined, so this code is not yet exercised. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
22 lines
552 B
C
22 lines
552 B
C
/*
|
|
* Greybus SVC code
|
|
*
|
|
* Copyright 2015 Google Inc.
|
|
* Copyright 2015 Linaro Ltd.
|
|
*
|
|
* Released under the GPLv2 only.
|
|
*/
|
|
|
|
#ifndef __SVC_H
|
|
#define __SVC_H
|
|
|
|
struct gb_svc;
|
|
|
|
int gb_svc_intf_device_id(struct gb_svc *svc, u8 intf_id, u8 device_id);
|
|
int gb_svc_intf_reset(struct gb_svc *svc, u8 intf_id);
|
|
int gb_svc_connection_create(struct gb_svc *svc, u8 intf1_id, u16 cport1_id,
|
|
u8 intf2_id, u16 cport2_id);
|
|
int gb_svc_connection_destroy(struct gb_svc *svc, u8 intf1_id, u16 cport1_id,
|
|
u8 intf2_id, u16 cport2_id);
|
|
|
|
#endif /* __SVC_H */
|