Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

net/irda/wrapper.h File Reference

#include <linux/types.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <net/irda/irda_device.h>

Include dependency graph for net/irda/wrapper.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BOF   0xc0
#define XBOF   0xff
#define EOF   0xc1
#define CE   0x7d
#define STA   BOF
#define STO   EOF
#define IRDA_TRANS   0x20

Enumerations

enum  { OUTSIDE_FRAME, BEGIN_FRAME, LINK_ESCAPE, INSIDE_FRAME }

Functions

int async_wrap_skb (struct sk_buff *skb, __u8 *tx_buff, int buffsize)
void async_bump (struct device *dev, struct net_device_stats *stats, __u8 *buf, int len)
void async_unwrap_char (struct device *dev, struct net_device_stats *stats, iobuff_t *buf, __u8 byte)


Define Documentation

#define BOF   0xc0
 

Definition at line 35 of file net/irda/wrapper.h.

#define CE   0x7d
 

Definition at line 38 of file net/irda/wrapper.h.

#define EOF   0xc1
 

Definition at line 37 of file net/irda/wrapper.h.

#define IRDA_TRANS   0x20
 

Definition at line 43 of file net/irda/wrapper.h.

Referenced by state_link_escape(), and stuff_byte().

#define STA   BOF
 

Definition at line 40 of file net/irda/wrapper.h.

#define STO   EOF
 

Definition at line 41 of file net/irda/wrapper.h.

#define XBOF   0xff
 

Definition at line 36 of file net/irda/wrapper.h.

Referenced by async_wrap_skb(), and state_outside_frame().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
OUTSIDE_FRAME 
BEGIN_FRAME 
LINK_ESCAPE 
INSIDE_FRAME 

Definition at line 46 of file net/irda/wrapper.h.


Function Documentation

void async_bump struct device *  dev,
struct net_device_stats stats,
__u8 buf,
int  len
[inline]
 

Definition at line 172 of file wrapper.c.

References ETH_P_IRDA, htons(), memcpy, netif_rx(), net_device_stats::rx_bytes, net_device_stats::rx_dropped, and net_device_stats::rx_packets.

Referenced by state_inside_frame().

Here is the call graph for this function:

void async_unwrap_char struct device *  dev,
struct net_device_stats stats,
iobuff_t buf,
__u8  byte
[inline]
 

Definition at line 206 of file wrapper.c.

References state, and iobuff_t::state.

Referenced by irport_receive(), irtty_receive_buf(), nsc_ircc_pio_receive(), and w83977af_pio_receive().

int async_wrap_skb struct sk_buff skb,
__u8 tx_buff,
int  buffsize
 

Definition at line 70 of file wrapper.c.

References ASSERT, BOF, bytes, sk_buff::cb, sk_buff::data, EOF, i, INIT_FCS, IRDA_DEBUG, irda_fcs(), LAP_MAGIC, len, memset, n, stuff_byte(), value, and XBOF.

Referenced by irport_hard_xmit(), irtty_hard_xmit(), nsc_ircc_hard_xmit_sir(), toshoboe_hard_xmit(), and w83977af_hard_xmit().

Here is the call graph for this function: