Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
stk1160-core.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <media/saa7115.h>
#include "stk1160.h"
#include "stk1160-reg.h"

Go to the source code of this file.

Macros

#define hb_mult(wMaxPacketSize)   (1 + (((wMaxPacketSize) >> 11) & 0x03))
 

Functions

 module_param (input, int, 0644)
 
 MODULE_PARM_DESC (input,"Set default input")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Ezequiel Garcia")
 
 MODULE_DESCRIPTION ("STK1160 driver")
 
 MODULE_DEVICE_TABLE (usb, stk1160_id_table)
 
int stk1160_read_reg (struct stk1160 *dev, u16 reg, u8 *value)
 
int stk1160_write_reg (struct stk1160 *dev, u16 reg, u16 value)
 
void stk1160_select_input (struct stk1160 *dev)
 
 module_usb_driver (stk1160_usb_driver)
 

Macro Definition Documentation

#define hb_mult (   wMaxPacketSize)    (1 + (((wMaxPacketSize) >> 11) & 0x03))

Definition at line 168 of file stk1160-core.c.

Function Documentation

MODULE_AUTHOR ( "Ezequiel Garcia"  )
MODULE_DESCRIPTION ( "STK1160 driver )
MODULE_DEVICE_TABLE ( usb  ,
stk1160_id_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( input  ,
int  ,
0644   
)
MODULE_PARM_DESC ( input  ,
"Set default input  
)
module_usb_driver ( stk1160_usb_driver  )
int stk1160_read_reg ( struct stk1160 dev,
u16  reg,
u8 value 
)

Definition at line 66 of file stk1160-core.c.

void stk1160_select_input ( struct stk1160 dev)

Definition at line 101 of file stk1160-core.c.

int stk1160_write_reg ( struct stk1160 dev,
u16  reg,
u16  value 
)

Definition at line 84 of file stk1160-core.c.