@@ -45,6 +45,12 @@ enum cfcnfg_phy_preference {
4545 CFPHYPREF_LOOP
4646};
4747
48+ /**
49+ * cfcnfg_create() - Get the CAIF configuration object given network.
50+ * @net: Network for the CAIF configuration object.
51+ */
52+ struct cfcnfg * get_cfcnfg (struct net * net );
53+
4854/**
4955 * cfcnfg_create() - Create the CAIF configuration object.
5056 */
@@ -65,17 +71,15 @@ void cfcnfg_remove(struct cfcnfg *cfg);
6571 * @dev: Pointer to link layer device
6672 * @phy_layer: Specify the physical layer. The transmit function
6773 * MUST be set in the structure.
68- * @phyid: The assigned physical ID for this layer, used in
69- * cfcnfg_add_adapt_layer to specify PHY for the link.
7074 * @pref: The phy (link layer) preference.
7175 * @fcs: Specify if checksum is used in CAIF Framing Layer.
72- * @stx: Specify if Start Of Frame extension is used.
76+ * @stx: Specify if Start Of Frame eXtention is used.
7377 */
7478
7579void
7680cfcnfg_add_phy_layer (struct cfcnfg * cnfg , enum cfcnfg_phy_type phy_type ,
7781 struct net_device * dev , struct cflayer * phy_layer ,
78- u16 * phyid , enum cfcnfg_phy_preference pref ,
82+ enum cfcnfg_phy_preference pref ,
7983 bool fcs , bool stx );
8084
8185/**
@@ -87,65 +91,6 @@ cfcnfg_add_phy_layer(struct cfcnfg *cnfg, enum cfcnfg_phy_type phy_type,
8791 */
8892int cfcnfg_del_phy_layer (struct cfcnfg * cnfg , struct cflayer * phy_layer );
8993
90- /**
91- * cfcnfg_disconn_adapt_layer - Disconnects an adaptation layer.
92- *
93- * @cnfg: Pointer to a CAIF configuration object, created by
94- * cfcnfg_create().
95- * @adap_layer: Adaptation layer to be removed.
96- */
97- int cfcnfg_disconn_adapt_layer (struct cfcnfg * cnfg ,
98- struct cflayer * adap_layer );
99-
100- /**
101- * cfcnfg_release_adap_layer - Used by client to release the adaptation layer.
102- *
103- * @adap_layer: Adaptation layer.
104- */
105- void cfcnfg_release_adap_layer (struct cflayer * adap_layer );
106-
107- /**
108- * cfcnfg_add_adaptation_layer - Add an adaptation layer to the CAIF stack.
109- *
110- * The adaptation Layer is where the interface to application or higher-level
111- * driver functionality is implemented.
112- *
113- * @cnfg: Pointer to a CAIF configuration object, created by
114- * cfcnfg_create().
115- * @param: Link setup parameters.
116- * @adap_layer: Specify the adaptation layer; the receive and
117- * flow-control functions MUST be set in the structure.
118- * @ifindex: Link layer interface index used for this connection.
119- * @proto_head: Protocol head-space needed by CAIF protocol,
120- * excluding link layer.
121- * @proto_tail: Protocol tail-space needed by CAIF protocol,
122- * excluding link layer.
123- */
124- int cfcnfg_add_adaptation_layer (struct cfcnfg * cnfg ,
125- struct cfctrl_link_param * param ,
126- struct cflayer * adap_layer ,
127- int * ifindex ,
128- int * proto_head ,
129- int * proto_tail );
130-
131- /**
132- * cfcnfg_get_phyid() - Get physical ID, given type.
133- * Returns one of the physical interfaces matching the given type.
134- * Zero if no match is found.
135- * @cnfg: Configuration object
136- * @phy_pref: Caif Link Layer preference
137- */
138- struct dev_info * cfcnfg_get_phyid (struct cfcnfg * cnfg ,
139- enum cfcnfg_phy_preference phy_pref );
140-
141- /**
142- * cfcnfg_get_id_from_ifi() - Get the Physical Identifier of ifindex,
143- * it matches caif physical id with the kernel interface id.
144- * @cnfg: Configuration object
145- * @ifi: ifindex obtained from socket.c bindtodevice.
146- */
147- int cfcnfg_get_id_from_ifi (struct cfcnfg * cnfg , int ifi );
148-
14994/**
15095 * cfcnfg_set_phy_state() - Set the state of the physical interface device.
15196 * @cnfg: Configuration object
0 commit comments