Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
radio-trust.c File Reference
#include <stdarg.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/videodev2.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include "radio-isa.h"

Go to the source code of this file.

Data Structures

struct  trust
 

Macros

#define CONFIG_RADIO_TRUST_PORT   -1
 
#define TRUST_MAX   2
 
#define TDA7318_ADDR   0x88
 
#define TSA6060T_ADDR   0xc4
 
#define TR_DELAY   do { inb(tr->isa.io); inb(tr->isa.io); inb(tr->isa.io); } while (0)
 
#define TR_SET_SCL   outb(tr->ioval |= 2, tr->isa.io)
 
#define TR_CLR_SCL   outb(tr->ioval &= 0xfd, tr->isa.io)
 
#define TR_SET_SDA   outb(tr->ioval |= 1, tr->isa.io)
 
#define TR_CLR_SDA   outb(tr->ioval &= 0xfe, tr->isa.io)
 

Functions

 MODULE_AUTHOR ("Eric Lammerts, Russell Kroll, Quay Lu, Donald Song, Jason Lewis, Scott McGrath, William McGrath")
 
 MODULE_DESCRIPTION ("A driver for the Trust FM Radio card.")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("0.1.99")
 
 module_param_array (io, int, NULL, 0444)
 
 MODULE_PARM_DESC (io,"I/O addresses of the Trust FM Radio card (0x350 or 0x358)")
 
 module_param_array (radio_nr, int, NULL, 0444)
 
 MODULE_PARM_DESC (radio_nr,"Radio device numbers")
 
 module_init (trust_init)
 
 module_exit (trust_exit)
 

Macro Definition Documentation

#define CONFIG_RADIO_TRUST_PORT   -1

Definition at line 37 of file radio-trust.c.

#define TDA7318_ADDR   0x88

Definition at line 64 of file radio-trust.c.

#define TR_CLR_SCL   outb(tr->ioval &= 0xfd, tr->isa.io)

Definition at line 69 of file radio-trust.c.

#define TR_CLR_SDA   outb(tr->ioval &= 0xfe, tr->isa.io)

Definition at line 71 of file radio-trust.c.

#define TR_DELAY   do { inb(tr->isa.io); inb(tr->isa.io); inb(tr->isa.io); } while (0)

Definition at line 67 of file radio-trust.c.

#define TR_SET_SCL   outb(tr->ioval |= 2, tr->isa.io)

Definition at line 68 of file radio-trust.c.

#define TR_SET_SDA   outb(tr->ioval |= 1, tr->isa.io)

Definition at line 70 of file radio-trust.c.

#define TRUST_MAX   2

Definition at line 40 of file radio-trust.c.

#define TSA6060T_ADDR   0xc4

Definition at line 65 of file radio-trust.c.

Function Documentation

MODULE_AUTHOR ( "Eric  Lammerts,
Russell  Kroll,
Quay  Lu,
Donald  Song,
Jason  Lewis,
Scott  McGrath,
William McGrath"   
)
MODULE_DESCRIPTION ( "A driver for the Trust FM Radio card."  )
module_exit ( trust_exit  )
module_init ( trust_init  )
MODULE_LICENSE ( "GPL"  )
module_param_array ( io  ,
int  ,
NULL  ,
0444   
)
module_param_array ( radio_nr  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( io  ,
"I/O addresses of the Trust FM Radio card (0x350 or 0x358)"   
)
MODULE_PARM_DESC ( radio_nr  ,
"Radio device numbers"   
)
MODULE_VERSION ( "0.1.99"  )