caif: Restructure how link caif link layer enroll
Enrolling CAIF link layers are refactored. Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
200c5a3b38
commit
7c18d2205e
@@ -72,15 +72,16 @@ void cfcnfg_remove(struct cfcnfg *cfg);
|
||||
* @phy_layer: Specify the physical layer. The transmit function
|
||||
* MUST be set in the structure.
|
||||
* @pref: The phy (link layer) preference.
|
||||
* @link_support: Protocol implementation for link layer specific protocol.
|
||||
* @fcs: Specify if checksum is used in CAIF Framing Layer.
|
||||
* @stx: Specify if Start Of Frame eXtention is used.
|
||||
* @head_room: Head space needed by link specific protocol.
|
||||
*/
|
||||
|
||||
void
|
||||
cfcnfg_add_phy_layer(struct cfcnfg *cnfg, enum cfcnfg_phy_type phy_type,
|
||||
cfcnfg_add_phy_layer(struct cfcnfg *cnfg,
|
||||
struct net_device *dev, struct cflayer *phy_layer,
|
||||
enum cfcnfg_phy_preference pref,
|
||||
bool fcs, bool stx);
|
||||
struct cflayer *link_support,
|
||||
bool fcs, int head_room);
|
||||
|
||||
/**
|
||||
* cfcnfg_del_phy_layer - Deletes an phy layer from the CAIF stack.
|
||||
|
Reference in New Issue
Block a user