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

girbil.c File Reference

#include <linux/module.h>
#include <linux/delay.h>
#include <linux/tty.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <net/irda/irda.h>
#include <net/irda/irmod.h>
#include <net/irda/irda_device.h>
#include <net/irda/irtty.h>

Include dependency graph for girbil.c:

Go to the source code of this file.

Defines

#define GIRBIL_TXEN   0x01
#define GIRBIL_RXEN   0x02
#define GIRBIL_ECAN   0x04
#define GIRBIL_ECHO   0x08
#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

Functions

static int girbil_reset (struct irda_task *task)
static void girbil_open (dongle_t *self, struct qos_info *qos)
static void girbil_close (dongle_t *self)
static int girbil_change_speed (struct irda_task *task)
int __init girbil_init (void)
void girbil_cleanup (void)

Variables

static struct dongle_reg dongle


Define Documentation

#define GIRBIL_115200   0x36
 

Definition at line 59 of file girbil.c.

Referenced by girbil_change_speed().

#define GIRBIL_19200   0x33
 

Definition at line 56 of file girbil.c.

Referenced by girbil_change_speed().

#define GIRBIL_2400   0x30
 

Definition at line 53 of file girbil.c.

#define GIRBIL_38400   0x34
 

Definition at line 57 of file girbil.c.

Referenced by girbil_change_speed().

#define GIRBIL_4800   0x31
 

Definition at line 54 of file girbil.c.

#define GIRBIL_57600   0x35
 

Definition at line 58 of file girbil.c.

Referenced by girbil_change_speed().

#define GIRBIL_9600   0x32
 

Definition at line 55 of file girbil.c.

Referenced by girbil_change_speed().

#define GIRBIL_ASK   0x41
 

Definition at line 63 of file girbil.c.

#define GIRBIL_ECAN   0x04
 

Definition at line 44 of file girbil.c.

#define GIRBIL_ECHO   0x08
 

Definition at line 45 of file girbil.c.

#define GIRBIL_HIGH   0x20
 

Definition at line 48 of file girbil.c.

#define GIRBIL_IRDA   0x40
 

Definition at line 62 of file girbil.c.

#define GIRBIL_LOAD   0x51
 

Definition at line 66 of file girbil.c.

Referenced by girbil_change_speed().

#define GIRBIL_LOW   0x22
 

Definition at line 50 of file girbil.c.

#define GIRBIL_MEDIUM   0x21
 

Definition at line 49 of file girbil.c.

#define GIRBIL_RXEN   0x02
 

Definition at line 43 of file girbil.c.

Referenced by girbil_reset().

#define GIRBIL_TXEN   0x01
 

Definition at line 42 of file girbil.c.

Referenced by girbil_reset().


Function Documentation

static int girbil_change_speed struct irda_task task  )  [static]
 

Definition at line 109 of file girbil.c.

References ERROR, FALSE, GIRBIL_115200, GIRBIL_19200, GIRBIL_38400, GIRBIL_57600, GIRBIL_9600, GIRBIL_LOAD, girbil_reset(), IRDA_TASK_CHILD_DONE, IRDA_TASK_CHILD_WAIT, IRDA_TASK_DONE, irda_task_execute(), IRDA_TASK_INIT, irda_task_next_state(), IRDA_TASK_WAIT, MSECS_TO_JIFFIES, NULL, ret, speed, TRUE, and WARNING.

Here is the call graph for this function:

void girbil_cleanup void   ) 
 

Definition at line 82 of file girbil.c.

References irda_device_unregister_dongle().

Here is the call graph for this function:

static void girbil_close dongle_t self  )  [static]
 

Definition at line 95 of file girbil.c.

References dongle_t::dev, FALSE, and MOD_DEC_USE_COUNT.

int __init girbil_init void   ) 
 

Definition at line 77 of file girbil.c.

References irda_device_register_dongle().

Referenced by irda_device_init().

Here is the call graph for this function:

static void girbil_open dongle_t self,
struct qos_info qos
[static]
 

Definition at line 87 of file girbil.c.

References qos_info::baud_rate, qos_value_t::bits, IR_115200, IR_19200, IR_38400, IR_57600, IR_9600, qos_info::min_turn_time, and MOD_INC_USE_COUNT.

static int girbil_reset struct irda_task task  )  [static]
 

Definition at line 190 of file girbil.c.

References ERROR, FALSE, GIRBIL_RXEN, GIRBIL_TXEN, irda_task::instance, IRDA_TASK_DONE, IRDA_TASK_INIT, irda_task_next_state(), IRDA_TASK_WAIT1, IRDA_TASK_WAIT2, IRDA_TASK_WAIT3, MSECS_TO_JIFFIES, NULL, ret, irda_task::state, and TRUE.

Referenced by girbil_change_speed().

Here is the call graph for this function:


Variable Documentation

struct dongle_reg dongle [static]
 

Initial value:

Definition at line 68 of file girbil.c.