Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cycx_x25.c File Reference
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/if_arp.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/stddef.h>
#include <linux/wanrouter.h>
#include <asm/byteorder.h>
#include <linux/cyclomx.h>
#include <linux/cycx_x25.h>
#include <net/x25device.h>

Go to the source code of this file.

Data Structures

struct  cycx_x25_channel
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define CYCLOMX_X25_DEBUG   1
 
#define CYCX_X25_MAX_CMD_RETRY   5
 
#define CYCX_X25_CHAN_MTU   2048 /* unfragmented logical channel MTU */
 

Functions

static int cycx_wan_new_if (struct wan_device *wandev, struct net_device *dev, wanif_conf_t *conf)
 
static int cycx_wan_del_if (struct wan_device *wandev, struct net_device *dev)
 
static void cycx_x25_irq_tx (struct cycx_device *card, struct cycx_x25_cmd *cmd)
 
static void cycx_x25_irq_rx (struct cycx_device *card, struct cycx_x25_cmd *cmd)
 
static void cycx_x25_irq_log (struct cycx_device *card, struct cycx_x25_cmd *cmd)
 
static void cycx_x25_irq_stat (struct cycx_device *card, struct cycx_x25_cmd *cmd)
 
static void cycx_x25_irq_connect_confirm (struct cycx_device *card, struct cycx_x25_cmd *cmd)
 
static void cycx_x25_irq_disconnect_confirm (struct cycx_device *card, struct cycx_x25_cmd *cmd)
 
static void cycx_x25_irq_connect (struct cycx_device *card, struct cycx_x25_cmd *cmd)
 
static void cycx_x25_irq_disconnect (struct cycx_device *card, struct cycx_x25_cmd *cmd)
 
static void cycx_x25_irq_spurious (struct cycx_device *card, struct cycx_x25_cmd *cmd)
 
static int cycx_x25_get_stats (struct cycx_device *card)
 
static int cycx_x25_send (struct cycx_device *card, u8 link, u8 lcn, u8 bitm, int len, void *buf)
 
static int cycx_x25_connect_response (struct cycx_device *card, struct cycx_x25_channel *chan)
 
static int cycx_x25_disconnect_response (struct cycx_device *card, u8 link, u8 lcn)
 
static int cycx_x25_chan_send (struct net_device *dev, struct sk_buff *skb)
 
static void cycx_x25_chan_send_event (struct net_device *dev, u8 event)
 
static void cycx_x25_chan_timer (unsigned long d)
 
static void reset_timer (struct net_device *dev)
 
int cycx_x25_wan_init (struct cycx_device *card, wandev_conf_t *conf)
 

Macro Definition Documentation

#define CYCLOMX_X25_DEBUG   1

Definition at line 81 of file cycx_x25.c.

#define CYCX_X25_CHAN_MTU   2048 /* unfragmented logical channel MTU */

Definition at line 103 of file cycx_x25.c.

#define CYCX_X25_MAX_CMD_RETRY   5

Definition at line 102 of file cycx_x25.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 79 of file cycx_x25.c.

Function Documentation

static int cycx_wan_del_if ( struct wan_device wandev,
struct net_device dev 
)

Definition at line 453 of file cycx_x25.c.

static int cycx_wan_new_if ( struct wan_device wandev,
struct net_device dev,
wanif_conf_t conf 
)

Definition at line 371 of file cycx_x25.c.

static int cycx_x25_chan_send ( struct net_device dev,
struct sk_buff skb 
)

Definition at line 1444 of file cycx_x25.c.

static void cycx_x25_chan_send_event ( struct net_device dev,
u8  event 
)

Definition at line 1472 of file cycx_x25.c.

static void cycx_x25_chan_timer ( unsigned long  d)

Definition at line 1363 of file cycx_x25.c.

static int cycx_x25_connect_response ( struct cycx_device *  card,
struct cycx_x25_channel chan 
)

Definition at line 1228 of file cycx_x25.c.

static int cycx_x25_disconnect_response ( struct cycx_device *  card,
u8  link,
u8  lcn 
)

Definition at line 1243 of file cycx_x25.c.

static int cycx_x25_get_stats ( struct cycx_device *  card)

Definition at line 1100 of file cycx_x25.c.

static void cycx_x25_irq_connect ( struct cycx_device *  card,
struct cycx_x25_cmd cmd 
)

Definition at line 848 of file cycx_x25.c.

static void cycx_x25_irq_connect_confirm ( struct cycx_device *  card,
struct cycx_x25_cmd cmd 
)

Definition at line 892 of file cycx_x25.c.

static void cycx_x25_irq_disconnect ( struct cycx_device *  card,
struct cycx_x25_cmd cmd 
)

Definition at line 943 of file cycx_x25.c.

static void cycx_x25_irq_disconnect_confirm ( struct cycx_device *  card,
struct cycx_x25_cmd cmd 
)

Definition at line 921 of file cycx_x25.c.

static void cycx_x25_irq_log ( struct cycx_device *  card,
struct cycx_x25_cmd cmd 
)

Definition at line 964 of file cycx_x25.c.

static void cycx_x25_irq_rx ( struct cycx_device *  card,
struct cycx_x25_cmd cmd 
)

Definition at line 764 of file cycx_x25.c.

static void cycx_x25_irq_spurious ( struct cycx_device *  card,
struct cycx_x25_cmd cmd 
)

Definition at line 1006 of file cycx_x25.c.

static void cycx_x25_irq_stat ( struct cycx_device *  card,
struct cycx_x25_cmd cmd 
)

Definition at line 992 of file cycx_x25.c.

static void cycx_x25_irq_tx ( struct cycx_device *  card,
struct cycx_x25_cmd cmd 
)

Definition at line 733 of file cycx_x25.c.

static int cycx_x25_send ( struct cycx_device *  card,
u8  link,
u8  lcn,
u8  bitm,
int  len,
void buf 
)

Definition at line 1273 of file cycx_x25.c.

int cycx_x25_wan_init ( struct cycx_device *  card,
wandev_conf_t conf 
)

Definition at line 229 of file cycx_x25.c.

static void reset_timer ( struct net_device dev)

Definition at line 1537 of file cycx_x25.c.