| /* |
| * 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_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, bool boot_over_unipro); |
| void gb_svc_connection_destroy(struct gb_svc *svc, u8 intf1_id, u16 cport1_id, |
| u8 intf2_id, u16 cport2_id); |
| int gb_svc_dme_peer_get(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector, |
| u32 *value); |
| int gb_svc_dme_peer_set(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector, |
| u32 value); |
| |
| int gb_svc_protocol_init(void); |
| void gb_svc_protocol_exit(void); |
| |
| struct gb_connection *gb_ap_svc_connection_create(struct gb_host_device *hd); |
| |
| #endif /* __SVC_H */ |