Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ivtvfb.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/fb.h>
#include <linux/ivtvfb.h>
#include <linux/slab.h>
#include "ivtv-driver.h"
#include "ivtv-cards.h"
#include "ivtv-i2c.h"
#include "ivtv-udma.h"
#include "ivtv-mailbox.h"
#include "ivtv-firmware.h"

Go to the source code of this file.

Data Structures

struct  osd_info
 
struct  ivtv_osd_coords
 

Macros

#define IVTVFB_DBGFLG_WARN   (1 << 0)
 
#define IVTVFB_DBGFLG_INFO   (1 << 1)
 
#define IVTVFB_DEBUG(x, type, fmt, args...)
 
#define IVTVFB_DEBUG_WARN(fmt, args...)   IVTVFB_DEBUG(IVTVFB_DBGFLG_WARN, "warning", fmt , ## args)
 
#define IVTVFB_DEBUG_INFO(fmt, args...)   IVTVFB_DEBUG(IVTVFB_DBGFLG_INFO, "info", fmt , ## args)
 
#define IVTVFB_ERR(fmt, args...)   printk(KERN_ERR "ivtvfb%d: " fmt, itv->instance , ## args)
 
#define IVTVFB_WARN(fmt, args...)   printk(KERN_WARNING "ivtvfb%d: " fmt, itv->instance , ## args)
 
#define IVTVFB_INFO(fmt, args...)   printk(KERN_INFO "ivtvfb%d: " fmt, itv->instance , ## args)
 
#define IVTV_OSD_MAX_WIDTH   720
 
#define IVTV_OSD_MAX_HEIGHT   576
 
#define IVTV_OSD_BPP_8   0x00
 
#define IVTV_OSD_BPP_16_444   0x03
 
#define IVTV_OSD_BPP_16_555   0x02
 
#define IVTV_OSD_BPP_16_565   0x01
 
#define IVTV_OSD_BPP_32   0x04
 

Functions

 module_param (ivtvfb_card_id, int, 0444)
 
 module_param_named (debug, ivtvfb_debug, int, 0644)
 
 module_param (osd_laced, bool, 0444)
 
 module_param (osd_depth, int, 0444)
 
 module_param (osd_upper, int, 0444)
 
 module_param (osd_left, int, 0444)
 
 module_param (osd_yres, int, 0444)
 
 module_param (osd_xres, int, 0444)
 
 MODULE_PARM_DESC (ivtvfb_card_id,"Only use framebuffer of the specified ivtv card (0-31)\n""\t\t\tdefault -1: initialize all available framebuffers")
 
 MODULE_PARM_DESC (debug,"Debug level (bitmask). Default: errors only\n""\t\t\t(debug = 3 gives full debugging)")
 
 MODULE_PARM_DESC (osd_laced,"Interlaced mode\n""\t\t\t0=off\n""\t\t\t1=on\n""\t\t\tdefault off")
 
 MODULE_PARM_DESC (osd_depth,"Bits per pixel - 8, 16, 32\n""\t\t\tdefault 8")
 
 MODULE_PARM_DESC (osd_upper,"Vertical start position\n""\t\t\tdefault 0 (Centered)")
 
 MODULE_PARM_DESC (osd_left,"Horizontal start position\n""\t\t\tdefault 0 (Centered)")
 
 MODULE_PARM_DESC (osd_yres,"Display height\n""\t\t\tdefault 480 (PAL)\n""\t\t\t 400 (NTSC)")
 
 MODULE_PARM_DESC (osd_xres,"Display width\n""\t\t\tdefault 640")
 
 MODULE_AUTHOR ("Kevin Thayer, Chris Kennedy, Hans Verkuil, John Harvey, Ian Armstrong")
 
 MODULE_LICENSE ("GPL")
 
 module_init (ivtvfb_init)
 
 module_exit (ivtvfb_cleanup)
 

Macro Definition Documentation

#define IVTV_OSD_BPP_16_444   0x03

Definition at line 143 of file ivtvfb.c.

#define IVTV_OSD_BPP_16_555   0x02

Definition at line 144 of file ivtvfb.c.

#define IVTV_OSD_BPP_16_565   0x01

Definition at line 145 of file ivtvfb.c.

#define IVTV_OSD_BPP_32   0x04

Definition at line 146 of file ivtvfb.c.

#define IVTV_OSD_BPP_8   0x00

Definition at line 142 of file ivtvfb.c.

#define IVTV_OSD_MAX_HEIGHT   576

Definition at line 140 of file ivtvfb.c.

#define IVTV_OSD_MAX_WIDTH   720

Definition at line 139 of file ivtvfb.c.

#define IVTVFB_DBGFLG_INFO   (1 << 1)

Definition at line 122 of file ivtvfb.c.

#define IVTVFB_DBGFLG_WARN   (1 << 0)

Definition at line 121 of file ivtvfb.c.

#define IVTVFB_DEBUG (   x,
  type,
  fmt,
  args... 
)
Value:
do { \
if ((x) & ivtvfb_debug) \
printk(KERN_INFO "ivtvfb%d " type ": " fmt, itv->instance , ## args); \
} while (0)

Definition at line 124 of file ivtvfb.c.

#define IVTVFB_DEBUG_INFO (   fmt,
  args... 
)    IVTVFB_DEBUG(IVTVFB_DBGFLG_INFO, "info", fmt , ## args)

Definition at line 130 of file ivtvfb.c.

#define IVTVFB_DEBUG_WARN (   fmt,
  args... 
)    IVTVFB_DEBUG(IVTVFB_DBGFLG_WARN, "warning", fmt , ## args)

Definition at line 129 of file ivtvfb.c.

#define IVTVFB_ERR (   fmt,
  args... 
)    printk(KERN_ERR "ivtvfb%d: " fmt, itv->instance , ## args)

Definition at line 133 of file ivtvfb.c.

#define IVTVFB_INFO (   fmt,
  args... 
)    printk(KERN_INFO "ivtvfb%d: " fmt, itv->instance , ## args)

Definition at line 135 of file ivtvfb.c.

#define IVTVFB_WARN (   fmt,
  args... 
)    printk(KERN_WARNING "ivtvfb%d: " fmt, itv->instance , ## args)

Definition at line 134 of file ivtvfb.c.

Function Documentation

MODULE_AUTHOR ( "Kevin  Thayer,
Chris  Kennedy,
Hans  Verkuil,
John  Harvey,
Ian Armstrong"   
)
module_exit ( ivtvfb_cleanup  )
module_init ( ivtvfb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( ivtvfb_card_id  ,
int  ,
0444   
)
module_param ( osd_laced  ,
bool  ,
0444   
)
module_param ( osd_depth  ,
int  ,
0444   
)
module_param ( osd_upper  ,
int  ,
0444   
)
module_param ( osd_left  ,
int  ,
0444   
)
module_param ( osd_yres  ,
int  ,
0444   
)
module_param ( osd_xres  ,
int  ,
0444   
)
module_param_named ( debug  ,
ivtvfb_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( ivtvfb_card_id  ,
"Only use framebuffer of the specified ivtv card (0-31)\n""\t\t\tdefault -1: initialize all available framebuffers"   
)
MODULE_PARM_DESC ( debug  ,
"Debug level (bitmask). Default: errors only\n""\t\t\t(debug = 3 gives full debugging)"   
)
MODULE_PARM_DESC ( osd_laced  )
MODULE_PARM_DESC ( osd_depth  ,
"Bits per pixel -  8,
16  ,
32\n""\t\t\tdefault 8"   
)
MODULE_PARM_DESC ( osd_upper  ,
"Vertical start position\n""\t\t\tdefault 0 (Centered)"   
)
MODULE_PARM_DESC ( osd_left  ,
"Horizontal start position\n""\t\t\tdefault 0 (Centered)"   
)
MODULE_PARM_DESC ( osd_yres  ,
"Display height\n""\t\t\tdefault 480 (PAL)\n""\t\t\t 400 (NTSC)"   
)
MODULE_PARM_DESC ( osd_xres  ,
"Display width\n""\t\t\tdefault 640"   
)