Blame view
include/net/caif/cfcnfg.h
2.51 KB
09009f30d net-caif: add CAI... |
1 2 3 4 5 6 7 8 9 |
/* * Copyright (C) ST-Ericsson AB 2010 * Author: Sjur Brendeland/sjur.brandeland@stericsson.com * License terms: GNU General Public License (GPL) version 2 */ #ifndef CFCNFG_H_ #define CFCNFG_H_ #include <linux/spinlock.h> |
2aa40aef9 caif: Use link la... |
10 |
#include <linux/netdevice.h> |
09009f30d net-caif: add CAI... |
11 12 13 14 15 16 |
#include <net/caif/caif_layer.h> #include <net/caif/cfctrl.h> struct cfcnfg; /** |
09009f30d net-caif: add CAI... |
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
* enum cfcnfg_phy_preference - Physical preference HW Abstraction * * @CFPHYPREF_UNSPECIFIED: Default physical interface * * @CFPHYPREF_LOW_LAT: Default physical interface for low-latency * traffic * @CFPHYPREF_HIGH_BW: Default physical interface for high-bandwidth * traffic * @CFPHYPREF_LOOP: TEST only Loopback interface simulating modem * responses. * */ enum cfcnfg_phy_preference { CFPHYPREF_UNSPECIFIED, CFPHYPREF_LOW_LAT, CFPHYPREF_HIGH_BW, CFPHYPREF_LOOP }; /** |
bee925db9 caif: prepare sup... |
37 38 39 40 41 42 |
* cfcnfg_create() - Get the CAIF configuration object given network. * @net: Network for the CAIF configuration object. */ struct cfcnfg *get_cfcnfg(struct net *net); /** |
09009f30d net-caif: add CAI... |
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
* cfcnfg_create() - Create the CAIF configuration object. */ struct cfcnfg *cfcnfg_create(void); /** * cfcnfg_remove() - Remove the CFCNFG object * @cfg: config object */ void cfcnfg_remove(struct cfcnfg *cfg); /** * cfcnfg_add_phy_layer() - Adds a physical layer to the CAIF stack. * @cnfg: Pointer to a CAIF configuration object, created by * cfcnfg_create(). |
09009f30d net-caif: add CAI... |
57 58 59 |
* @dev: Pointer to link layer device * @phy_layer: Specify the physical layer. The transmit function * MUST be set in the structure. |
09009f30d net-caif: add CAI... |
60 |
* @pref: The phy (link layer) preference. |
7c18d2205 caif: Restructure... |
61 |
* @link_support: Protocol implementation for link layer specific protocol. |
09009f30d net-caif: add CAI... |
62 |
* @fcs: Specify if checksum is used in CAIF Framing Layer. |
7c18d2205 caif: Restructure... |
63 |
* @head_room: Head space needed by link specific protocol. |
09009f30d net-caif: add CAI... |
64 |
*/ |
09009f30d net-caif: add CAI... |
65 |
void |
7c18d2205 caif: Restructure... |
66 |
cfcnfg_add_phy_layer(struct cfcnfg *cnfg, |
2aa40aef9 caif: Use link la... |
67 |
struct net_device *dev, struct cflayer *phy_layer, |
bee925db9 caif: prepare sup... |
68 |
enum cfcnfg_phy_preference pref, |
7c18d2205 caif: Restructure... |
69 70 |
struct cflayer *link_support, bool fcs, int head_room); |
09009f30d net-caif: add CAI... |
71 72 73 74 75 76 77 78 79 80 81 |
/** * cfcnfg_del_phy_layer - Deletes an phy layer from the CAIF stack. * * @cnfg: Pointer to a CAIF configuration object, created by * cfcnfg_create(). * @phy_layer: Adaptation layer to be removed. */ int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer); /** |
bd30ce4bc caif: Use RCU ins... |
82 83 84 85 86 87 88 |
* cfcnfg_set_phy_state() - Set the state of the physical interface device. * @cnfg: Configuration object * @phy_layer: Physical Layer representation * @up: State of device */ int cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer, bool up); |
09009f30d net-caif: add CAI... |
89 |
#endif /* CFCNFG_H_ */ |