Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
girbil-sir.c File Reference
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <net/irda/irda.h>
#include "sir-dev.h"

Go to the source code of this file.

Macros

#define GIRBIL_TXEN   0x01 /* Enable transmitter */
 
#define GIRBIL_RXEN   0x02 /* Enable receiver */
 
#define GIRBIL_ECAN   0x04 /* Cancel self emitted data */
 
#define GIRBIL_ECHO   0x08 /* Echo control characters */
 
#define GIRBIL_HIGH   0x20
 
#define GIRBIL_MEDIUM   0x21
 
#define GIRBIL_LOW   0x22
 
#define GIRBIL_2400   0x30
 
#define GIRBIL_4800   0x31
 
#define GIRBIL_9600   0x32
 
#define GIRBIL_19200   0x33
 
#define GIRBIL_38400   0x34
 
#define GIRBIL_57600   0x35
 
#define GIRBIL_115200   0x36
 
#define GIRBIL_IRDA   0x40
 
#define GIRBIL_ASK   0x41
 
#define GIRBIL_LOAD   0x51 /* Load the new baud rate value */
 
#define GIRBIL_STATE_WAIT_SPEED   (SIRDEV_STATE_DONGLE_SPEED + 1)
 
#define GIRBIL_STATE_WAIT1_RESET   (SIRDEV_STATE_DONGLE_RESET + 1)
 
#define GIRBIL_STATE_WAIT2_RESET   (SIRDEV_STATE_DONGLE_RESET + 2)
 
#define GIRBIL_STATE_WAIT3_RESET   (SIRDEV_STATE_DONGLE_RESET + 3)
 

Functions

 MODULE_AUTHOR ("Dag Brattli <dagb@cs.uit.no>")
 
 MODULE_DESCRIPTION ("Greenwich GIrBIL dongle driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("irda-dongle-4")
 
 module_init (girbil_sir_init)
 
 module_exit (girbil_sir_cleanup)
 

Macro Definition Documentation

#define GIRBIL_115200   0x36

Definition at line 56 of file girbil-sir.c.

#define GIRBIL_19200   0x33

Definition at line 53 of file girbil-sir.c.

#define GIRBIL_2400   0x30

Definition at line 50 of file girbil-sir.c.

#define GIRBIL_38400   0x34

Definition at line 54 of file girbil-sir.c.

#define GIRBIL_4800   0x31

Definition at line 51 of file girbil-sir.c.

#define GIRBIL_57600   0x35

Definition at line 55 of file girbil-sir.c.

#define GIRBIL_9600   0x32

Definition at line 52 of file girbil-sir.c.

#define GIRBIL_ASK   0x41

Definition at line 60 of file girbil-sir.c.

#define GIRBIL_ECAN   0x04 /* Cancel self emitted data */

Definition at line 41 of file girbil-sir.c.

#define GIRBIL_ECHO   0x08 /* Echo control characters */

Definition at line 42 of file girbil-sir.c.

#define GIRBIL_HIGH   0x20

Definition at line 45 of file girbil-sir.c.

#define GIRBIL_IRDA   0x40

Definition at line 59 of file girbil-sir.c.

#define GIRBIL_LOAD   0x51 /* Load the new baud rate value */

Definition at line 63 of file girbil-sir.c.

#define GIRBIL_LOW   0x22

Definition at line 47 of file girbil-sir.c.

#define GIRBIL_MEDIUM   0x21

Definition at line 46 of file girbil-sir.c.

#define GIRBIL_RXEN   0x02 /* Enable receiver */

Definition at line 40 of file girbil-sir.c.

#define GIRBIL_STATE_WAIT1_RESET   (SIRDEV_STATE_DONGLE_RESET + 1)

Definition at line 201 of file girbil-sir.c.

#define GIRBIL_STATE_WAIT2_RESET   (SIRDEV_STATE_DONGLE_RESET + 2)

Definition at line 202 of file girbil-sir.c.

#define GIRBIL_STATE_WAIT3_RESET   (SIRDEV_STATE_DONGLE_RESET + 3)

Definition at line 203 of file girbil-sir.c.

#define GIRBIL_STATE_WAIT_SPEED   (SIRDEV_STATE_DONGLE_SPEED + 1)

Definition at line 120 of file girbil-sir.c.

#define GIRBIL_TXEN   0x01 /* Enable transmitter */

Definition at line 39 of file girbil-sir.c.

Function Documentation

MODULE_ALIAS ( "irda-dongle-4"  )
MODULE_AUTHOR ( "Dag Brattli <dagb@cs.uit.no>"  )
MODULE_DESCRIPTION ( "Greenwich GIrBIL dongle driver )
module_exit ( girbil_sir_cleanup  )
module_init ( girbil_sir_init  )
MODULE_LICENSE ( "GPL"  )