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

tekram.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 tekram.c:

Go to the source code of this file.

Defines

#define TEKRAM_115200   0x00
#define TEKRAM_57600   0x01
#define TEKRAM_38400   0x02
#define TEKRAM_19200   0x03
#define TEKRAM_9600   0x04
#define TEKRAM_PW   0x10

Functions

static void tekram_open (dongle_t *self, struct qos_info *qos)
static void tekram_close (dongle_t *self)
static int tekram_change_speed (struct irda_task *task)
static int tekram_reset (struct irda_task *task)
int __init tekram_init (void)
void tekram_cleanup (void)

Variables

static struct dongle_reg dongle


Define Documentation

#define TEKRAM_115200   0x00
 

Definition at line 41 of file tekram.c.

Referenced by tekram_change_speed().

#define TEKRAM_19200   0x03
 

Definition at line 44 of file tekram.c.

Referenced by tekram_change_speed().

#define TEKRAM_38400   0x02
 

Definition at line 43 of file tekram.c.

Referenced by tekram_change_speed().

#define TEKRAM_57600   0x01
 

Definition at line 42 of file tekram.c.

Referenced by tekram_change_speed().

#define TEKRAM_9600   0x04
 

Definition at line 45 of file tekram.c.

Referenced by tekram_change_speed().

#define TEKRAM_PW   0x10
 

Definition at line 47 of file tekram.c.

Referenced by tekram_change_speed().


Function Documentation

static int tekram_change_speed struct irda_task task  )  [static]
 

Definition at line 110 of file tekram.c.

References ASSERT, byte, ERROR, FALSE, irda_task::instance, IRDA_DEBUG, IRDA_TASK_CHILD_DONE, IRDA_TASK_CHILD_INIT, IRDA_TASK_CHILD_WAIT, IRDA_TASK_DONE, irda_task_execute(), IRDA_TASK_INIT, irda_task_next_state(), IRDA_TASK_WAIT, MSECS_TO_JIFFIES, NULL, irda_task::param, ret, speed, irda_task::state, TEKRAM_115200, TEKRAM_19200, TEKRAM_38400, TEKRAM_57600, TEKRAM_9600, TEKRAM_PW, tekram_reset(), TRUE, udelay, and WARNING.

Here is the call graph for this function:

void tekram_cleanup void   ) 
 

Definition at line 63 of file tekram.c.

References irda_device_unregister_dongle().

Here is the call graph for this function:

static void tekram_close dongle_t self  )  [static]
 

Definition at line 79 of file tekram.c.

References dongle_t::dev, FALSE, IRDA_DEBUG, irda_task_delete(), MOD_DEC_USE_COUNT, dongle_t::reset_task, and dongle_t::speed_task.

Here is the call graph for this function:

int __init tekram_init void   ) 
 

Definition at line 58 of file tekram.c.

References irda_device_register_dongle().

Referenced by irda_device_init().

Here is the call graph for this function:

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

Definition at line 68 of file tekram.c.

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

Here is the call graph for this function:

int tekram_reset struct irda_task task  )  [static]
 

Definition at line 213 of file tekram.c.

References ASSERT, ERROR, FALSE, irda_task::instance, IRDA_DEBUG, IRDA_TASK_DONE, IRDA_TASK_INIT, irda_task_next_state(), IRDA_TASK_WAIT1, IRDA_TASK_WAIT2, MSECS_TO_JIFFIES, NULL, ret, irda_task::state, TRUE, and udelay.

Referenced by tekram_change_speed().

Here is the call graph for this function:


Variable Documentation

struct dongle_reg dongle [static]
 

Initial value:

Definition at line 49 of file tekram.c.