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

litelink.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 dependency graph for litelink.c:

Go to the source code of this file.

Defines

#define MIN_DELAY   25
#define MAX_DELAY   10000

Functions

static void litelink_open (dongle_t *self, struct qos_info *qos)
static void litelink_close (dongle_t *self)
static int litelink_change_speed (struct irda_task *task)
static int litelink_reset (struct irda_task *task)
int __init litelink_init (void)
void litelink_cleanup (void)

Variables

static __u32 baud_rates [] = { 115200, 57600, 38400, 19200, 9600 }
static struct dongle_reg dongle


Define Documentation

#define MAX_DELAY   10000
 

Definition at line 42 of file litelink.c.

#define MIN_DELAY   25
 

Definition at line 41 of file litelink.c.


Function Documentation

static int litelink_change_speed struct irda_task task  )  [static]
 

Definition at line 93 of file litelink.c.

References baud_rates, FALSE, i, IRDA_TASK_DONE, irda_task_next_state(), MIN_DELAY, speed, TRUE, and udelay.

Here is the call graph for this function:

void litelink_cleanup void   ) 
 

Definition at line 66 of file litelink.c.

References irda_device_unregister_dongle().

Here is the call graph for this function:

static void litelink_close dongle_t self  )  [static]
 

Definition at line 79 of file litelink.c.

References dongle_t::dev, FALSE, and MOD_DEC_USE_COUNT.

int __init litelink_init void   ) 
 

Definition at line 61 of file litelink.c.

References irda_device_register_dongle().

Referenced by irda_device_init().

Here is the call graph for this function:

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

Definition at line 71 of file litelink.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 litelink_reset struct irda_task task  )  [static]
 

Definition at line 136 of file litelink.c.

References FALSE, irda_task::instance, IRDA_TASK_DONE, irda_task_next_state(), MIN_DELAY, TRUE, and udelay.

Here is the call graph for this function:


Variable Documentation

__u32 baud_rates[] = { 115200, 57600, 38400, 19200, 9600 } [static]
 

Definition at line 50 of file litelink.c.

struct dongle_reg dongle [static]
 

Initial value:

Definition at line 52 of file litelink.c.