Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
radio-sf16fmr2.c File Reference
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/isa.h>
#include <linux/pnp.h>
#include <sound/tea575x-tuner.h>

Go to the source code of this file.

Data Structures

struct  fmr2
 

Macros

#define FMR2_MAX   2
 
#define FMR2_PORT   0x384
 
#define STR_DATA   (1 << 0)
 
#define STR_CLK   (1 << 1)
 
#define STR_WREN   (1 << 2)
 
#define STR_MOST   (1 << 3)
 
#define PT_ST   (1 << 4)
 
#define PT_CK   (1 << 5)
 
#define PT_DATA   (1 << 6)
 
#define FMR2_HASVOL   (1 << 7)
 
#define TC9154A_ATT_MAJ_0DB   (1 << 0)
 
#define TC9154A_ATT_MAJ_10DB   (1 << 1)
 
#define TC9154A_ATT_MAJ_20DB   (1 << 2)
 
#define TC9154A_ATT_MAJ_30DB   (1 << 3)
 
#define TC9154A_ATT_MAJ_40DB   (1 << 4)
 
#define TC9154A_ATT_MAJ_50DB   (1 << 5)
 
#define TC9154A_ATT_MAJ_60DB   (1 << 6)
 
#define TC9154A_ATT_MIN_0DB   (1 << 7)
 
#define TC9154A_ATT_MIN_2DB   (1 << 8)
 
#define TC9154A_ATT_MIN_4DB   (1 << 9)
 
#define TC9154A_ATT_MIN_6DB   (1 << 10)
 
#define TC9154A_ATT_MIN_8DB   (1 << 11)
 
#define TC9154A_CHANNEL_LEFT   (1 << 13)
 
#define TC9154A_CHANNEL_RIGHT   (1 << 14)
 
#define TC9154A_ATT_MAJ(x)   (1 << x)
 
#define TC9154A_ATT_MIN(x)   (1 << (7 + x))
 

Functions

 MODULE_AUTHOR ("Ondrej Zary")
 
 MODULE_DESCRIPTION ("MediaForte SF16-FMR2 and SF16-FMD2 FM radio card driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param_array (radio_nr, int, NULL, 0444)
 
 MODULE_PARM_DESC (radio_nr,"Radio device numbers")
 
 MODULE_DEVICE_TABLE (pnp, fmr2_pnp_ids)
 
 module_init (fmr2_init)
 
 module_exit (fmr2_exit)
 

Variables

struct isa_driver fmr2_isa_driver
 
struct pnp_driver fmr2_pnp_driver
 

Macro Definition Documentation

#define FMR2_HASVOL   (1 << 7)

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

#define FMR2_MAX   2

Definition at line 24 of file radio-sf16fmr2.c.

#define FMR2_PORT   0x384

Definition at line 45 of file radio-sf16fmr2.c.

#define PT_CK   (1 << 5)

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

#define PT_DATA   (1 << 6)

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

#define PT_ST   (1 << 4)

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

#define STR_CLK   (1 << 1)

Definition at line 49 of file radio-sf16fmr2.c.

#define STR_DATA   (1 << 0)

Definition at line 48 of file radio-sf16fmr2.c.

#define STR_MOST   (1 << 3)

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

#define STR_WREN   (1 << 2)

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

#define TC9154A_ATT_MAJ (   x)    (1 << x)

Definition at line 112 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MAJ_0DB   (1 << 0)

Definition at line 94 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MAJ_10DB   (1 << 1)

Definition at line 95 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MAJ_20DB   (1 << 2)

Definition at line 96 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MAJ_30DB   (1 << 3)

Definition at line 97 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MAJ_40DB   (1 << 4)

Definition at line 98 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MAJ_50DB   (1 << 5)

Definition at line 99 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MAJ_60DB   (1 << 6)

Definition at line 100 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MIN (   x)    (1 << (7 + x))

Definition at line 113 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MIN_0DB   (1 << 7)

Definition at line 102 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MIN_2DB   (1 << 8)

Definition at line 103 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MIN_4DB   (1 << 9)

Definition at line 104 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MIN_6DB   (1 << 10)

Definition at line 105 of file radio-sf16fmr2.c.

#define TC9154A_ATT_MIN_8DB   (1 << 11)

Definition at line 106 of file radio-sf16fmr2.c.

#define TC9154A_CHANNEL_LEFT   (1 << 13)

Definition at line 108 of file radio-sf16fmr2.c.

#define TC9154A_CHANNEL_RIGHT   (1 << 14)

Definition at line 109 of file radio-sf16fmr2.c.

Function Documentation

MODULE_AUTHOR ( "Ondrej Zary"  )
MODULE_DESCRIPTION ( "MediaForte SF16-FMR2 and SF16-FMD2 FM radio card driver )
MODULE_DEVICE_TABLE ( pnp  ,
fmr2_pnp_ids   
)
module_exit ( fmr2_exit  )
module_init ( fmr2_init  )
MODULE_LICENSE ( "GPL"  )
module_param_array ( radio_nr  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( radio_nr  ,
"Radio device numbers"   
)

Variable Documentation

struct isa_driver fmr2_isa_driver
Initial value:
= {
.match = fmr2_isa_match,
.remove = __devexit_p(fmr2_isa_remove),
.driver = {
.name = "radio-sf16fmr2",
},
}

Definition at line 310 of file radio-sf16fmr2.c.

struct pnp_driver fmr2_pnp_driver
Initial value:
= {
.name = "radio-sf16fmr2",
.id_table = fmr2_pnp_ids,
.probe = fmr2_pnp_probe,
.remove = __devexit_p(fmr2_pnp_remove),
}

Definition at line 318 of file radio-sf16fmr2.c.