Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
irda_device.h File Reference
#include <linux/tty.h>
#include <linux/netdevice.h>
#include <linux/spinlock.h>
#include <linux/skbuff.h>
#include <linux/irda.h>
#include <linux/types.h>
#include <net/pkt_sched.h>
#include <net/irda/irda.h>
#include <net/irda/qos.h>
#include <net/irda/irqueue.h>

Go to the source code of this file.

Data Structures

struct  irda_task
 
struct  dongle_t
 
struct  dongle_reg
 
struct  irda_skb_cb
 
struct  chipio_t
 
struct  iobuff_t
 

Macros

#define IFF_SIR   0x0001 /* Supports SIR speeds */
 
#define IFF_MIR   0x0002 /* Supports MIR speeds */
 
#define IFF_FIR   0x0004 /* Supports FIR speeds */
 
#define IFF_VFIR   0x0008 /* Supports VFIR speeds */
 
#define IFF_PIO   0x0010 /* Supports PIO transfer of data */
 
#define IFF_DMA   0x0020 /* Supports DMA transfer of data */
 
#define IFF_SHM   0x0040 /* Supports shared memory data transfers */
 
#define IFF_DONGLE   0x0080 /* Interface has a dongle attached */
 
#define IFF_AIR   0x0100 /* Supports Advanced IR (AIR) standards */
 
#define IO_XMIT   0x01
 
#define IO_RECV   0x02
 
#define IRDA_SKB_MAX_MTU   2064
 
#define IRDA_SIR_MAX_FRAME   4269
 
#define IRDA_RX_COPY_THRESHOLD   256
 

Typedefs

typedef int(* IRDA_TASK_CALLBACK )(struct irda_task *task)
 

Enumerations

enum  INFRARED_MODE { IRDA_IRLAP, IRDA_RAW, SHARP_ASK, TV_REMOTE }
 
enum  IRDA_TASK_STATE {
  IRDA_TASK_INIT, IRDA_TASK_DONE, IRDA_TASK_WAIT, IRDA_TASK_WAIT1,
  IRDA_TASK_WAIT2, IRDA_TASK_WAIT3, IRDA_TASK_CHILD_INIT, IRDA_TASK_CHILD_WAIT,
  IRDA_TASK_CHILD_DONE
}
 

Functions

int irda_device_init (void)
 
void irda_device_cleanup (void)
 
struct irlap_cbirlap_open (struct net_device *dev, struct qos_info *qos, const char *hw_name)
 
void irlap_close (struct irlap_cb *self)
 
void irda_device_set_media_busy (struct net_device *dev, int status)
 
int irda_device_is_media_busy (struct net_device *dev)
 
int irda_device_is_receiving (struct net_device *dev)
 
int irda_device_set_raw_mode (struct net_device *self, int status)
 
struct net_devicealloc_irdadev (int sizeof_priv)
 
void irda_setup_dma (int channel, dma_addr_t buffer, int count, int mode)
 

Macro Definition Documentation

#define IFF_AIR   0x0100 /* Supports Advanced IR (AIR) standards */

Definition at line 66 of file irda_device.h.

#define IFF_DMA   0x0020 /* Supports DMA transfer of data */

Definition at line 63 of file irda_device.h.

#define IFF_DONGLE   0x0080 /* Interface has a dongle attached */

Definition at line 65 of file irda_device.h.

#define IFF_FIR   0x0004 /* Supports FIR speeds */

Definition at line 60 of file irda_device.h.

#define IFF_MIR   0x0002 /* Supports MIR speeds */

Definition at line 59 of file irda_device.h.

#define IFF_PIO   0x0010 /* Supports PIO transfer of data */

Definition at line 62 of file irda_device.h.

#define IFF_SHM   0x0040 /* Supports shared memory data transfers */

Definition at line 64 of file irda_device.h.

#define IFF_SIR   0x0001 /* Supports SIR speeds */

Definition at line 58 of file irda_device.h.

#define IFF_VFIR   0x0008 /* Supports VFIR speeds */

Definition at line 61 of file irda_device.h.

#define IO_RECV   0x02

Definition at line 69 of file irda_device.h.

#define IO_XMIT   0x01

Definition at line 68 of file irda_device.h.

#define IRDA_RX_COPY_THRESHOLD   256

Definition at line 207 of file irda_device.h.

#define IRDA_SIR_MAX_FRAME   4269

Definition at line 199 of file irda_device.h.

#define IRDA_SKB_MAX_MTU   2064

Definition at line 196 of file irda_device.h.

Typedef Documentation

typedef int(* IRDA_TASK_CALLBACK)(struct irda_task *task)

Definition at line 91 of file irda_device.h.

Enumeration Type Documentation

Enumerator:
IRDA_IRLAP 
IRDA_RAW 
SHARP_ASK 
TV_REMOTE 

Definition at line 71 of file irda_device.h.

Enumerator:
IRDA_TASK_INIT 
IRDA_TASK_DONE 
IRDA_TASK_WAIT 
IRDA_TASK_WAIT1 
IRDA_TASK_WAIT2 
IRDA_TASK_WAIT3 
IRDA_TASK_CHILD_INIT 
IRDA_TASK_CHILD_WAIT 
IRDA_TASK_CHILD_DONE 

Definition at line 78 of file irda_device.h.

Function Documentation

struct net_device* alloc_irdadev ( int  sizeof_priv)
read

Definition at line 296 of file irda_device.c.

void irda_device_cleanup ( void  )

Definition at line 93 of file irda_device.c.

int irda_device_init ( void  )

Definition at line 64 of file irda_device.c.

int irda_device_is_media_busy ( struct net_device dev)
int irda_device_is_receiving ( struct net_device dev)

Definition at line 147 of file irda_device.c.

void irda_device_set_media_busy ( struct net_device dev,
int  status 
)

Definition at line 108 of file irda_device.c.

int irda_device_set_raw_mode ( struct net_device self,
int  status 
)
void irda_setup_dma ( int  channel,
dma_addr_t  buffer,
int  count,
int  mode 
)
void irlap_close ( struct irlap_cb self)

Definition at line 214 of file irlap.c.

struct irlap_cb* irlap_open ( struct net_device dev,
struct qos_info qos,
const char hw_name 
)
read

Definition at line 111 of file irlap.c.