Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pd-main.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kref.h>
#include <linux/suspend.h>
#include <linux/usb/quirks.h>
#include <linux/ctype.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/firmware.h>
#include "vendorcmds.h"
#include "pd-common.h"

Go to the source code of this file.

Macros

#define VENDOR_ID   0x1B24
 
#define PRODUCT_ID   0x4001
 
#define TLG2300_FIRMWARE   "tlg2300_firmware.bin"
 

Functions

 MODULE_DEVICE_TABLE (usb, id_table)
 
 module_param (debug_mode, int, 0644)
 
 MODULE_PARM_DESC (debug_mode,"0 = disable, 1 = enable, 2 = verbose")
 
s32 send_set_req (struct poseidon *pd, u8 cmdid, s32 param, s32 *cmd_status)
 
s32 send_get_req (struct poseidon *pd, u8 cmdid, s32 param, void *buf, s32 *cmd_status, s32 datalen)
 
int set_tuner_mode (struct poseidon *pd, unsigned char mode)
 
void poseidon_delete (struct kref *kref)
 
 module_init (poseidon_init)
 
 module_exit (poseidon_exit)
 
 MODULE_AUTHOR ("Telegent Systems")
 
 MODULE_DESCRIPTION ("For tlg2300-based USB device ")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("0.0.2")
 
 MODULE_FIRMWARE (TLG2300_FIRMWARE)
 

Variables

int debug_mode
 

Macro Definition Documentation

#define PRODUCT_ID   0x4001

Definition at line 44 of file pd-main.c.

#define TLG2300_FIRMWARE   "tlg2300_firmware.bin"

Definition at line 56 of file pd-main.c.

#define VENDOR_ID   0x1B24

Definition at line 43 of file pd-main.c.

Function Documentation

MODULE_AUTHOR ( "Telegent Systems"  )
MODULE_DESCRIPTION ( "For tlg2300-based USB device )
MODULE_DEVICE_TABLE ( usb  ,
id_table   
)
module_exit ( poseidon_exit  )
MODULE_FIRMWARE ( TLG2300_FIRMWARE  )
module_init ( poseidon_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug_mode  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug_mode  ,
0 = disable,
= enable 
)
MODULE_VERSION ( "0.0.2"  )
void poseidon_delete ( struct kref kref)

Definition at line 191 of file pd-main.c.

s32 send_get_req ( struct poseidon pd,
u8  cmdid,
s32  param,
void buf,
s32 cmd_status,
s32  datalen 
)

Definition at line 104 of file pd-main.c.

s32 send_set_req ( struct poseidon pd,
u8  cmdid,
s32  param,
s32 cmd_status 
)

Definition at line 64 of file pd-main.c.

int set_tuner_mode ( struct poseidon pd,
unsigned char  mode 
)

Definition at line 178 of file pd-main.c.

Variable Documentation

int debug_mode

Definition at line 52 of file pd-main.c.