Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cfcnfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) ST-Ericsson AB 2010
3  * Author: Sjur Brendeland/[email protected]
4  * License terms: GNU General Public License (GPL) version 2
5  */
6 
7 #ifndef CFCNFG_H_
8 #define CFCNFG_H_
9 #include <linux/spinlock.h>
10 #include <linux/netdevice.h>
11 #include <net/caif/caif_layer.h>
12 #include <net/caif/cfctrl.h>
13 
14 struct cfcnfg;
15 
34 };
35 
40 struct cfcnfg *get_cfcnfg(struct net *net);
41 
45 struct cfcnfg *cfcnfg_create(void);
46 
51 void cfcnfg_remove(struct cfcnfg *cfg);
52 
65 void
66 cfcnfg_add_phy_layer(struct cfcnfg *cnfg,
67  struct net_device *dev, struct cflayer *phy_layer,
68  enum cfcnfg_phy_preference pref,
69  struct cflayer *link_support,
70  bool fcs, int head_room);
71 
79 int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer);
80 
87 int cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer,
88  bool up);
89 
90 #endif /* CFCNFG_H_ */