Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sir-dev.h File Reference
#include <linux/netdevice.h>
#include <linux/workqueue.h>
#include <net/irda/irda.h>
#include <net/irda/irda_device.h>

Go to the source code of this file.

Data Structures

struct  sir_fsm
 
struct  dongle_driver
 
struct  sir_driver
 
struct  sir_dev
 

Macros

#define SIRDEV_STATE_WAIT_TX_COMPLETE   0x0100
 
#define SIRDEV_STATE_WAIT_XMIT   0x0101
 
#define SIRDEV_STATE_WAIT_UNTIL_SENT   0x0102
 
#define SIRDEV_STATE_TX_DONE   0x0103
 
#define SIRDEV_STATE_DONGLE_OPEN   0x0300
 
#define SIRDEV_STATE_DONGLE_CLOSE   0x0400
 
#define SIRDEV_STATE_SET_DTR_RTS   0x0500
 
#define SIRDEV_STATE_SET_SPEED   0x0700
 
#define SIRDEV_STATE_DONGLE_CHECK   0x0800
 
#define SIRDEV_STATE_DONGLE_RESET   0x0900
 
#define SIRDEV_STATE_DONGLE_SPEED   0x0a00
 
#define SIRDEV_STATE_PORT_SPEED   0x0b00
 
#define SIRDEV_STATE_DONE   0x0c00
 
#define SIRDEV_STATE_ERROR   0x0d00
 
#define SIRDEV_STATE_COMPLETE   0x0e00
 
#define SIRDEV_STATE_DEAD   0xffff
 

Functions

int irda_register_dongle (struct dongle_driver *new)
 
int irda_unregister_dongle (struct dongle_driver *drv)
 
struct sir_devsirdev_get_instance (const struct sir_driver *drv, const char *name)
 
int sirdev_put_instance (struct sir_dev *self)
 
int sirdev_set_dongle (struct sir_dev *dev, IRDA_DONGLE type)
 
void sirdev_write_complete (struct sir_dev *dev)
 
int sirdev_receive (struct sir_dev *dev, const unsigned char *cp, size_t count)
 
int sirdev_raw_write (struct sir_dev *dev, const char *buf, int len)
 
int sirdev_raw_read (struct sir_dev *dev, char *buf, int len)
 
int sirdev_set_dtr_rts (struct sir_dev *dev, int dtr, int rts)
 
int sirdev_get_dongle (struct sir_dev *self, IRDA_DONGLE type)
 
int sirdev_put_dongle (struct sir_dev *self)
 
void sirdev_enable_rx (struct sir_dev *dev)
 
int sirdev_schedule_request (struct sir_dev *dev, int state, unsigned param)
 

Macro Definition Documentation

#define SIRDEV_STATE_COMPLETE   0x0e00

Definition at line 60 of file sir-dev.h.

#define SIRDEV_STATE_DEAD   0xffff

Definition at line 62 of file sir-dev.h.

#define SIRDEV_STATE_DONE   0x0c00

Definition at line 58 of file sir-dev.h.

#define SIRDEV_STATE_DONGLE_CHECK   0x0800

Definition at line 49 of file sir-dev.h.

#define SIRDEV_STATE_DONGLE_CLOSE   0x0400

Definition at line 42 of file sir-dev.h.

#define SIRDEV_STATE_DONGLE_OPEN   0x0300

Definition at line 38 of file sir-dev.h.

#define SIRDEV_STATE_DONGLE_RESET   0x0900

Definition at line 50 of file sir-dev.h.

#define SIRDEV_STATE_DONGLE_SPEED   0x0a00

Definition at line 54 of file sir-dev.h.

#define SIRDEV_STATE_ERROR   0x0d00

Definition at line 59 of file sir-dev.h.

#define SIRDEV_STATE_PORT_SPEED   0x0b00

Definition at line 57 of file sir-dev.h.

#define SIRDEV_STATE_SET_DTR_RTS   0x0500

Definition at line 46 of file sir-dev.h.

#define SIRDEV_STATE_SET_SPEED   0x0700

Definition at line 48 of file sir-dev.h.

#define SIRDEV_STATE_TX_DONE   0x0103

Definition at line 36 of file sir-dev.h.

#define SIRDEV_STATE_WAIT_TX_COMPLETE   0x0100

Definition at line 31 of file sir-dev.h.

#define SIRDEV_STATE_WAIT_UNTIL_SENT   0x0102

Definition at line 35 of file sir-dev.h.

#define SIRDEV_STATE_WAIT_XMIT   0x0101

Definition at line 34 of file sir-dev.h.

Function Documentation

int irda_register_dongle ( struct dongle_driver new)

Definition at line 33 of file sir_dongle.c.

int irda_unregister_dongle ( struct dongle_driver drv)

Definition at line 55 of file sir_dongle.c.

void sirdev_enable_rx ( struct sir_dev dev)

Definition at line 322 of file sir_dev.c.

int sirdev_get_dongle ( struct sir_dev self,
IRDA_DONGLE  type 
)

Definition at line 64 of file sir_dongle.c.

struct sir_dev* sirdev_get_instance ( const struct sir_driver drv,
const char name 
)
read

Definition at line 878 of file sir_dev.c.

int sirdev_put_dongle ( struct sir_dev self)

Definition at line 121 of file sir_dongle.c.

int sirdev_put_instance ( struct sir_dev self)

Definition at line 935 of file sir_dev.c.

int sirdev_raw_read ( struct sir_dev dev,
char buf,
int  len 
)

Definition at line 396 of file sir_dev.c.

int sirdev_raw_write ( struct sir_dev dev,
const char buf,
int  len 
)

Definition at line 361 of file sir_dev.c.

int sirdev_receive ( struct sir_dev dev,
const unsigned char cp,
size_t  count 
)

Definition at line 535 of file sir_dev.c.

int sirdev_schedule_request ( struct sir_dev dev,
int  state,
unsigned  param 
)

Definition at line 285 of file sir_dev.c.

int sirdev_set_dongle ( struct sir_dev dev,
IRDA_DONGLE  type 
)

Definition at line 343 of file sir_dev.c.

int sirdev_set_dtr_rts ( struct sir_dev dev,
int  dtr,
int  rts 
)

Definition at line 417 of file sir_dev.c.

void sirdev_write_complete ( struct sir_dev dev)

Definition at line 433 of file sir_dev.c.