greybus: hd: rename host-device structure
[cascardo/linux.git] / drivers / staging / greybus / svc.h
1 /*
2  * Greybus SVC code
3  *
4  * Copyright 2015 Google Inc.
5  * Copyright 2015 Linaro Ltd.
6  *
7  * Released under the GPLv2 only.
8  */
9
10 #ifndef __SVC_H
11 #define __SVC_H
12
13 struct gb_svc;
14
15 int gb_svc_intf_reset(struct gb_svc *svc, u8 intf_id);
16 int gb_svc_connection_create(struct gb_svc *svc, u8 intf1_id, u16 cport1_id,
17                              u8 intf2_id, u16 cport2_id, bool boot_over_unipro);
18 void gb_svc_connection_destroy(struct gb_svc *svc, u8 intf1_id, u16 cport1_id,
19                                u8 intf2_id, u16 cport2_id);
20 int gb_svc_dme_peer_get(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector,
21                         u32 *value);
22 int gb_svc_dme_peer_set(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector,
23                         u32 value);
24
25 int gb_svc_protocol_init(void);
26 void gb_svc_protocol_exit(void);
27
28 struct gb_connection *gb_ap_svc_connection_create(struct gb_host_device *hd);
29
30 #endif /* __SVC_H */