Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
radio-shark.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/workqueue.h>
#include <media/v4l2-device.h>
#include <sound/tea575x-tuner.h>

Go to the source code of this file.

Data Structures

struct  shark_device
 

Macros

#define SHARK_IN_EP   0x83
 
#define SHARK_OUT_EP   0x05
 
#define TEA575X_BIT_MONO   (1<<22) /* 0 = stereo, 1 = mono */
 
#define TEA575X_BIT_BAND_MASK   (3<<20)
 
#define TEA575X_BIT_BAND_FM   (0<<20)
 
#define TB_LEN   6
 
#define DRV_NAME   "radioshark"
 
#define v4l2_dev_to_shark(d)   container_of(d, struct shark_device, v4l2_dev)
 

Enumerations

enum  {
  BLUE_LED, BLUE_PULSE_LED, RED_LED, NO_LEDS,
  BLUE_IS_PULSE
}
 

Functions

 MODULE_AUTHOR ("Hans de Goede <[email protected]>")
 
 MODULE_DESCRIPTION ("Griffin radioSHARK, USB radio receiver driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, usb_shark_device_table)
 
 module_usb_driver (usb_shark_driver)
 

Macro Definition Documentation

#define DRV_NAME   "radioshark"

Definition at line 58 of file radio-shark.c.

#define SHARK_IN_EP   0x83

Definition at line 50 of file radio-shark.c.

#define SHARK_OUT_EP   0x05

Definition at line 51 of file radio-shark.c.

#define TB_LEN   6

Definition at line 57 of file radio-shark.c.

#define TEA575X_BIT_BAND_FM   (0<<20)

Definition at line 55 of file radio-shark.c.

#define TEA575X_BIT_BAND_MASK   (3<<20)

Definition at line 54 of file radio-shark.c.

#define TEA575X_BIT_MONO   (1<<22) /* 0 = stereo, 1 = mono */

Definition at line 53 of file radio-shark.c.

#define v4l2_dev_to_shark (   d)    container_of(d, struct shark_device, v4l2_dev)

Definition at line 60 of file radio-shark.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
BLUE_LED 
BLUE_PULSE_LED 
RED_LED 
NO_LEDS 
BLUE_IS_PULSE 

Definition at line 63 of file radio-shark.c.

Function Documentation

MODULE_AUTHOR ( "Hans de Goede <[email protected]>"  )
MODULE_DESCRIPTION ( "Griffin  radioSHARK,
USB radio receiver driver  
)
MODULE_DEVICE_TABLE ( usb  ,
usb_shark_device_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( usb_shark_driver  )