Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hdlcdrv.c File Reference
#include <linux/capability.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/net.h>
#include <linux/in.h>
#include <linux/if.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/skbuff.h>
#include <linux/hdlcdrv.h>
#include <linux/random.h>
#include <net/ax25.h>
#include <asm/uaccess.h>
#include <linux/crc-ccitt.h>

Go to the source code of this file.

Macros

#define KISS_VERBOSE
 
#define PARAM_TXDELAY   1
 
#define PARAM_PERSIST   2
 
#define PARAM_SLOTTIME   3
 
#define PARAM_TXTAIL   4
 
#define PARAM_FULLDUP   5
 
#define PARAM_HARDWARE   6
 
#define PARAM_RETURN   255
 
#define tenms_to_2flags(s, tenms)   ((tenms * s->par.bitrate) / 100 / 16)
 
#define PKP(a, b)   printk(KERN_INFO "hdlcdrv.c: channel params: " a "\n", b)
 

Functions

void hdlcdrv_receiver (struct net_device *dev, struct hdlcdrv_state *s)
 
void hdlcdrv_transmitter (struct net_device *dev, struct hdlcdrv_state *s)
 
void hdlcdrv_arbitrate (struct net_device *dev, struct hdlcdrv_state *s)
 
struct net_devicehdlcdrv_register (const struct hdlcdrv_ops *ops, unsigned int privsize, const char *ifname, unsigned int baseaddr, unsigned int irq, unsigned int dma)
 
void hdlcdrv_unregister (struct net_device *dev)
 
 EXPORT_SYMBOL (hdlcdrv_receiver)
 
 EXPORT_SYMBOL (hdlcdrv_transmitter)
 
 EXPORT_SYMBOL (hdlcdrv_arbitrate)
 
 EXPORT_SYMBOL (hdlcdrv_register)
 
 EXPORT_SYMBOL (hdlcdrv_unregister)
 
 MODULE_AUTHOR ("Thomas M. Sailer, [email protected], [email protected]")
 
 MODULE_DESCRIPTION ("Packet Radio network interface HDLC encoder/decoder")
 
 MODULE_LICENSE ("GPL")
 
 module_init (hdlcdrv_init_driver)
 
 module_exit (hdlcdrv_cleanup_driver)
 

Macro Definition Documentation

#define KISS_VERBOSE

Definition at line 67 of file hdlcdrv.c.

#define PARAM_FULLDUP   5

Definition at line 75 of file hdlcdrv.c.

#define PARAM_HARDWARE   6

Definition at line 76 of file hdlcdrv.c.

#define PARAM_PERSIST   2

Definition at line 72 of file hdlcdrv.c.

#define PARAM_RETURN   255

Definition at line 77 of file hdlcdrv.c.

#define PARAM_SLOTTIME   3

Definition at line 73 of file hdlcdrv.c.

#define PARAM_TXDELAY   1

Definition at line 71 of file hdlcdrv.c.

#define PARAM_TXTAIL   4

Definition at line 74 of file hdlcdrv.c.

#define PKP (   a,
  b 
)    printk(KERN_INFO "hdlcdrv.c: channel params: " a "\n", b)
#define tenms_to_2flags (   s,
  tenms 
)    ((tenms * s->par.bitrate) / 100 / 16)

Definition at line 119 of file hdlcdrv.c.

Function Documentation

EXPORT_SYMBOL ( hdlcdrv_receiver  )
EXPORT_SYMBOL ( hdlcdrv_transmitter  )
EXPORT_SYMBOL ( hdlcdrv_arbitrate  )
EXPORT_SYMBOL ( hdlcdrv_register  )
EXPORT_SYMBOL ( hdlcdrv_unregister  )
void hdlcdrv_arbitrate ( struct net_device dev,
struct hdlcdrv_state s 
)

Definition at line 377 of file hdlcdrv.c.

void hdlcdrv_receiver ( struct net_device dev,
struct hdlcdrv_state s 
)

Definition at line 168 of file hdlcdrv.c.

struct net_device* hdlcdrv_register ( const struct hdlcdrv_ops ops,
unsigned int  privsize,
const char ifname,
unsigned int  baseaddr,
unsigned int  irq,
unsigned int  dma 
)
read

Definition at line 686 of file hdlcdrv.c.

void hdlcdrv_transmitter ( struct net_device dev,
struct hdlcdrv_state s 
)

Definition at line 265 of file hdlcdrv.c.

void hdlcdrv_unregister ( struct net_device dev)

Definition at line 726 of file hdlcdrv.c.

MODULE_AUTHOR ( "Thomas M.  Sailer,
sailer @ife.ee.ethz.  ch,
hb9jnx @hb9w.che.eu"   
)
MODULE_DESCRIPTION ( "Packet Radio network interface HDLC encoder/decoder"  )
module_exit ( hdlcdrv_cleanup_driver  )
module_init ( hdlcdrv_init_driver  )
MODULE_LICENSE ( "GPL"  )