Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
cfcnfg.h File Reference
#include <linux/spinlock.h>
#include <linux/netdevice.h>
#include <net/caif/caif_layer.h>
#include <net/caif/cfctrl.h>

Go to the source code of this file.

Enumerations

enum  cfcnfg_phy_preference { CFPHYPREF_UNSPECIFIED, CFPHYPREF_LOW_LAT, CFPHYPREF_HIGH_BW, CFPHYPREF_LOOP }
 

Functions

struct cfcnfgget_cfcnfg (struct net *net)
 
struct cfcnfgcfcnfg_create (void)
 
void cfcnfg_remove (struct cfcnfg *cfg)
 
void cfcnfg_add_phy_layer (struct cfcnfg *cnfg, struct net_device *dev, struct cflayer *phy_layer, enum cfcnfg_phy_preference pref, struct cflayer *link_support, bool fcs, int head_room)
 
int cfcnfg_del_phy_layer (struct cfcnfg *cnfg, struct cflayer *phy_layer)
 
int cfcnfg_set_phy_state (struct cfcnfg *cnfg, struct cflayer *phy_layer, bool up)
 

Enumeration Type Documentation

enum cfcnfg_phy_preference - Physical preference HW Abstraction

: Default physical interface

: Default physical interface for low-latency traffic : Default physical interface for high-bandwidth traffic : TEST only Loopback interface simulating modem responses.

Enumerator:
CFPHYPREF_UNSPECIFIED 
CFPHYPREF_LOW_LAT 
CFPHYPREF_HIGH_BW 
CFPHYPREF_LOOP 

Definition at line 29 of file cfcnfg.h.

Function Documentation

void cfcnfg_add_phy_layer ( struct cfcnfg cnfg,
struct net_device dev,
struct cflayer phy_layer,
enum cfcnfg_phy_preference  pref,
struct cflayer link_support,
bool  fcs,
int  head_room 
)

cfcnfg_add_phy_layer() - Adds a physical layer to the CAIF stack. : Pointer to a CAIF configuration object, created by cfcnfg_create(). : Pointer to link layer device : Specify the physical layer. The transmit function MUST be set in the structure. : The phy (link layer) preference. : Protocol implementation for link layer specific protocol. : Specify if checksum is used in CAIF Framing Layer. : Head space needed by link specific protocol.

Definition at line 460 of file cfcnfg.c.

struct cfcnfg* cfcnfg_create ( void  )
read

cfcnfg_create() - Create the CAIF configuration object.

Definition at line 72 of file cfcnfg.c.

int cfcnfg_del_phy_layer ( struct cfcnfg cnfg,
struct cflayer phy_layer 
)

cfcnfg_del_phy_layer - Deletes an phy layer from the CAIF stack.

: Pointer to a CAIF configuration object, created by cfcnfg_create(). : Adaptation layer to be removed.

Definition at line 560 of file cfcnfg.c.

void cfcnfg_remove ( struct cfcnfg cfg)

cfcnfg_remove() - Remove the CFCNFG object : config object

Definition at line 117 of file cfcnfg.c.

int cfcnfg_set_phy_state ( struct cfcnfg cnfg,
struct cflayer phy_layer,
bool  up 
)

cfcnfg_set_phy_state() - Set the state of the physical interface device. : Configuration object : Physical Layer representation : State of device

Definition at line 528 of file cfcnfg.c.

struct cfcnfg* get_cfcnfg ( struct net net)
read

cfcnfg_create() - Get the CAIF configuration object given network. : Network for the CAIF configuration object.

Definition at line 57 of file caif_dev.c.