aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/caif
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/caif')
-rw-r--r--include/net/caif/caif_dev.h6
-rw-r--r--include/net/caif/cfcnfg.h10
2 files changed, 9 insertions, 7 deletions
diff --git a/include/net/caif/caif_dev.h b/include/net/caif/caif_dev.h
index 42a7c7867849..3aa1ff642323 100644
--- a/include/net/caif/caif_dev.h
+++ b/include/net/caif/caif_dev.h
@@ -23,17 +23,19 @@ struct caif_param {
23}; 23};
24 24
25/** 25/**
26 * caif_connect_request - Request data for CAIF channel setup. 26 * struct caif_connect_request - Request data for CAIF channel setup.
27 * @protocol: Type of CAIF protocol to use (at, datagram etc)
27 * @sockaddr: Socket address to connect. 28 * @sockaddr: Socket address to connect.
28 * @priority: Priority of the connection. 29 * @priority: Priority of the connection.
29 * @link_selector: Link selector (high bandwidth or low latency) 30 * @link_selector: Link selector (high bandwidth or low latency)
30 * @link_name: Name of the CAIF Link Layer to use. 31 * @link_name: Name of the CAIF Link Layer to use.
32 * @param: Connect Request parameters (CAIF_SO_REQ_PARAM).
31 * 33 *
32 * This struct is used when connecting a CAIF channel. 34 * This struct is used when connecting a CAIF channel.
33 * It contains all CAIF channel configuration options. 35 * It contains all CAIF channel configuration options.
34 */ 36 */
35struct caif_connect_request { 37struct caif_connect_request {
36 int protocol; 38 enum caif_protocol_type protocol;
37 struct sockaddr_caif sockaddr; 39 struct sockaddr_caif sockaddr;
38 enum caif_channel_priority priority; 40 enum caif_channel_priority priority;
39 enum caif_link_selector link_selector; 41 enum caif_link_selector link_selector;
diff --git a/include/net/caif/cfcnfg.h b/include/net/caif/cfcnfg.h
index 366082c5d435..f16b875acc48 100644
--- a/include/net/caif/cfcnfg.h
+++ b/include/net/caif/cfcnfg.h
@@ -87,13 +87,14 @@ cfcnfg_add_phy_layer(struct cfcnfg *cnfg, enum cfcnfg_phy_type phy_type,
87int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer); 87int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer);
88 88
89/** 89/**
90 * cfcnfg_del_adapt_layer - Deletes an adaptation layer from the CAIF stack. 90 * cfcnfg_disconn_adapt_layer - Disconnects an adaptation layer.
91 * 91 *
92 * @cnfg: Pointer to a CAIF configuration object, created by 92 * @cnfg: Pointer to a CAIF configuration object, created by
93 * cfcnfg_create(). 93 * cfcnfg_create().
94 * @adap_layer: Adaptation layer to be removed. 94 * @adap_layer: Adaptation layer to be removed.
95 */ 95 */
96int cfcnfg_del_adapt_layer(struct cfcnfg *cnfg, struct cflayer *adap_layer); 96int cfcnfg_disconn_adapt_layer(struct cfcnfg *cnfg,
97 struct cflayer *adap_layer);
97 98
98/** 99/**
99 * cfcnfg_add_adaptation_layer - Add an adaptation layer to the CAIF stack. 100 * cfcnfg_add_adaptation_layer - Add an adaptation layer to the CAIF stack.
@@ -102,14 +103,13 @@ int cfcnfg_del_adapt_layer(struct cfcnfg *cnfg, struct cflayer *adap_layer);
102 * driver functionality is implemented. 103 * driver functionality is implemented.
103 * 104 *
104 * @cnfg: Pointer to a CAIF configuration object, created by 105 * @cnfg: Pointer to a CAIF configuration object, created by
105 * cfcnfg_create(). 106 * cfcnfg_create().
106 * @param: Link setup parameters. 107 * @param: Link setup parameters.
107 * @adap_layer: Specify the adaptation layer; the receive and 108 * @adap_layer: Specify the adaptation layer; the receive and
108 * flow-control functions MUST be set in the structure. 109 * flow-control functions MUST be set in the structure.
109 * 110 *
110 */ 111 */
111int 112int cfcnfg_add_adaptation_layer(struct cfcnfg *cnfg,
112cfcnfg_add_adaptation_layer(struct cfcnfg *cnfg,
113 struct cfctrl_link_param *param, 113 struct cfctrl_link_param *param,
114 struct cflayer *adap_layer); 114 struct cflayer *adap_layer);
115 115