Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hdlcdrv.h File Reference
#include <linux/netdevice.h>
#include <linux/if.h>
#include <linux/spinlock.h>
#include <uapi/linux/hdlcdrv.h>

Go to the source code of this file.

Data Structures

struct  hdlcdrv_hdlcbuffer
 
struct  hdlcdrv_bitbuffer
 
struct  hdlcdrv_ops
 
struct  hdlcdrv_state
 
struct  hdlcdrv_state::hdlcdrv_pttoutput
 
struct  hdlcdrv_state::hdlcdrv_hdlcrx
 
struct  hdlcdrv_state::hdlcdrv_hdlctx
 

Macros

#define HDLCDRV_MAGIC   0x5ac6e778
 
#define HDLCDRV_HDLCBUFFER   32 /* should be a power of 2 for speed reasons */
 
#define HDLCDRV_BITBUFFER   256 /* should be a power of 2 for speed reasons */
 
#define HDLCDRV_DEBUG
 
#define HDLCDRV_MAXFLEN   400
 

Functions

void hdlcdrv_receiver (struct net_device *, struct hdlcdrv_state *)
 
void hdlcdrv_transmitter (struct net_device *, struct hdlcdrv_state *)
 
void hdlcdrv_arbitrate (struct net_device *, struct hdlcdrv_state *)
 
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)
 

Macro Definition Documentation

#define HDLCDRV_BITBUFFER   256 /* should be a power of 2 for speed reasons */

Definition at line 17 of file hdlcdrv.h.

#define HDLCDRV_DEBUG

Definition at line 19 of file hdlcdrv.h.

#define HDLCDRV_HDLCBUFFER   32 /* should be a power of 2 for speed reasons */

Definition at line 16 of file hdlcdrv.h.

#define HDLCDRV_MAGIC   0x5ac6e778

Definition at line 15 of file hdlcdrv.h.

#define HDLCDRV_MAXFLEN   400

Definition at line 22 of file hdlcdrv.h.

Function Documentation

void hdlcdrv_arbitrate ( struct net_device ,
struct hdlcdrv_state  
)

Definition at line 377 of file hdlcdrv.c.

void hdlcdrv_receiver ( struct net_device ,
struct hdlcdrv_state  
)

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 ,
struct hdlcdrv_state  
)

Definition at line 265 of file hdlcdrv.c.

void hdlcdrv_unregister ( struct net_device dev)

Definition at line 726 of file hdlcdrv.c.