Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
i4l.c File Reference
#include "gigaset.h"
#include <linux/isdnif.h>
#include <linux/export.h>

Go to the source code of this file.

Macros

#define SBUFSIZE   4096 /* sk_buff payload size */
 
#define TRANSBUFSIZE   768 /* bytes per skb for transparent receive */
 
#define HW_HDR_LEN   2 /* Header size used to store ack info */
 
#define MAX_BUF_SIZE   (SBUFSIZE - HW_HDR_LEN) /* max data packet from LL */
 

Functions

void gigaset_skb_sent (struct bc_state *bcs, struct sk_buff *skb)
 
 EXPORT_SYMBOL_GPL (gigaset_skb_sent)
 
void gigaset_skb_rcvd (struct bc_state *bcs, struct sk_buff *skb)
 
 EXPORT_SYMBOL_GPL (gigaset_skb_rcvd)
 
void gigaset_isdn_rcv_err (struct bc_state *bcs)
 
 EXPORT_SYMBOL_GPL (gigaset_isdn_rcv_err)
 
int gigaset_isdn_icall (struct at_state_t *at_state)
 
void gigaset_isdn_connD (struct bc_state *bcs)
 
void gigaset_isdn_hupD (struct bc_state *bcs)
 
void gigaset_isdn_connB (struct bc_state *bcs)
 
void gigaset_isdn_hupB (struct bc_state *bcs)
 
void gigaset_isdn_start (struct cardstate *cs)
 
void gigaset_isdn_stop (struct cardstate *cs)
 
int gigaset_isdn_regdev (struct cardstate *cs, const char *isdnid)
 
void gigaset_isdn_unregdev (struct cardstate *cs)
 
void gigaset_isdn_regdrv (void)
 
void gigaset_isdn_unregdrv (void)
 

Macro Definition Documentation

#define HW_HDR_LEN   2 /* Header size used to store ack info */

Definition at line 22 of file i4l.c.

#define MAX_BUF_SIZE   (SBUFSIZE - HW_HDR_LEN) /* max data packet from LL */

Definition at line 23 of file i4l.c.

#define SBUFSIZE   4096 /* sk_buff payload size */

Definition at line 20 of file i4l.c.

#define TRANSBUFSIZE   768 /* bytes per skb for transparent receive */

Definition at line 21 of file i4l.c.

Function Documentation

EXPORT_SYMBOL_GPL ( gigaset_skb_sent  )
EXPORT_SYMBOL_GPL ( gigaset_skb_rcvd  )
EXPORT_SYMBOL_GPL ( gigaset_isdn_rcv_err  )
void gigaset_isdn_connB ( struct bc_state bcs)

gigaset_isdn_connB() - signal B channel connect : B channel descriptor structure.

Called by main module to notify the LL that the B channel connection has been established.

Definition at line 571 of file i4l.c.

void gigaset_isdn_connD ( struct bc_state bcs)

gigaset_isdn_connD() - signal D channel connect : B channel descriptor structure.

Called by main module to notify the LL that the D channel connection has been established.

Definition at line 545 of file i4l.c.

void gigaset_isdn_hupB ( struct bc_state bcs)

gigaset_isdn_hupB() - signal B channel hangup : B channel descriptor structure.

Called by main module to notify the LL that the B channel connection has been shut down.

Definition at line 584 of file i4l.c.

void gigaset_isdn_hupD ( struct bc_state bcs)

gigaset_isdn_hupD() - signal D channel hangup : B channel descriptor structure.

Called by main module to notify the LL that the D channel connection has been shut down.

Definition at line 558 of file i4l.c.

int gigaset_isdn_icall ( struct at_state_t at_state)

gigaset_isdn_icall() - signal incoming call : connection state structure.

Called by main module to notify the LL that an incoming call has been received. contains the parameters of the call.

Return value: call disposition (ICALL_*)

Definition at line 457 of file i4l.c.

void gigaset_isdn_rcv_err ( struct bc_state bcs)

gigaset_isdn_rcv_err() - signal receive error : B channel descriptor structure.

Called by hardware module {bas,ser,usb}_gigaset when a receive error has occurred, for signalling to the LL.

Definition at line 167 of file i4l.c.

int gigaset_isdn_regdev ( struct cardstate cs,
const char isdnid 
)

gigaset_isdn_regdev() - register to LL : device descriptor structure. : device name.

Return value: 0 on success, error code < 0 on failure

Definition at line 623 of file i4l.c.

void gigaset_isdn_regdrv ( void  )

gigaset_isdn_regdrv() - register driver to LL

Definition at line 683 of file i4l.c.

void gigaset_isdn_start ( struct cardstate cs)

gigaset_isdn_start() - signal device availability : device descriptor structure.

Called by main module to notify the LL that the device is available for use.

Definition at line 597 of file i4l.c.

void gigaset_isdn_stop ( struct cardstate cs)

gigaset_isdn_stop() - signal device unavailability : device descriptor structure.

Called by main module to notify the LL that the device is no longer available for use.

Definition at line 610 of file i4l.c.

void gigaset_isdn_unregdev ( struct cardstate cs)

gigaset_isdn_unregdev() - unregister device from LL : device descriptor structure.

Definition at line 672 of file i4l.c.

void gigaset_isdn_unregdrv ( void  )

gigaset_isdn_unregdrv() - unregister driver from LL

Definition at line 692 of file i4l.c.

void gigaset_skb_rcvd ( struct bc_state bcs,
struct sk_buff skb 
)

gigaset_skb_rcvd() - pass received skb to LL : B channel descriptor structure. : received data.

Called by hardware module {bas,ser,usb}_gigaset when user data has been successfully received, for passing to the LL. Warning: skb must not be accessed anymore!

Definition at line 151 of file i4l.c.

void gigaset_skb_sent ( struct bc_state bcs,
struct sk_buff skb 
)

gigaset_skb_sent() - acknowledge sending an skb : B channel descriptor structure. : sent data.

Called by hardware module {bas,ser,usb}_gigaset when the data in a skb has been successfully sent, for signalling completion to the LL.

Definition at line 115 of file i4l.c.