Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
budget-core.c File Reference
#include "budget.h"
#include "ttpci-eeprom.h"

Go to the source code of this file.

Macros

#define TS_WIDTH   (2 * TS_SIZE)
 
#define TS_WIDTH_ACTIVY   TS_SIZE
 
#define TS_WIDTH_DVBC   TS_SIZE
 
#define TS_HEIGHT_MASK   0xf00
 
#define TS_HEIGHT_MASK_ACTIVY   0xc00
 
#define TS_HEIGHT_MASK_DVBC   0xe00
 
#define TS_MIN_BUFSIZE_K   188
 
#define TS_MAX_BUFSIZE_K   1410
 
#define TS_MAX_BUFSIZE_K_ACTIVY   564
 
#define TS_MAX_BUFSIZE_K_DVBC   1316
 
#define BUFFER_WARNING_WAIT   (30*HZ)
 

Functions

 module_param_named (debug, budget_debug, int, 0644)
 
 module_param_named (bufsize, dma_buffer_size, int, 0444)
 
 MODULE_PARM_DESC (debug,"Turn on/off budget debugging (default:off).")
 
 MODULE_PARM_DESC (bufsize,"DMA buffer size in KB, default: 188, min: 188, max: 1410 (Activy: 564)")
 
int ttpci_budget_debiread (struct budget *budget, u32 config, int addr, int count, int uselocks, int nobusyloop)
 
int ttpci_budget_debiwrite (struct budget *budget, u32 config, int addr, int count, u32 value, int uselocks, int nobusyloop)
 
int ttpci_budget_init (struct budget *budget, struct saa7146_dev *dev, struct saa7146_pci_extension_data *info, struct module *owner, short *adapter_nums)
 
void ttpci_budget_init_hooks (struct budget *budget)
 
int ttpci_budget_deinit (struct budget *budget)
 
void ttpci_budget_irq10_handler (struct saa7146_dev *dev, u32 *isr)
 
void ttpci_budget_set_video_port (struct saa7146_dev *dev, int video_port)
 
 EXPORT_SYMBOL_GPL (ttpci_budget_debiread)
 
 EXPORT_SYMBOL_GPL (ttpci_budget_debiwrite)
 
 EXPORT_SYMBOL_GPL (ttpci_budget_init)
 
 EXPORT_SYMBOL_GPL (ttpci_budget_init_hooks)
 
 EXPORT_SYMBOL_GPL (ttpci_budget_deinit)
 
 EXPORT_SYMBOL_GPL (ttpci_budget_irq10_handler)
 
 EXPORT_SYMBOL_GPL (ttpci_budget_set_video_port)
 
 EXPORT_SYMBOL_GPL (budget_debug)
 
 MODULE_LICENSE ("GPL")
 

Variables

int budget_debug
 

Macro Definition Documentation

#define BUFFER_WARNING_WAIT   (30*HZ)

Definition at line 51 of file budget-core.c.

#define TS_HEIGHT_MASK   0xf00

Definition at line 44 of file budget-core.c.

#define TS_HEIGHT_MASK_ACTIVY   0xc00

Definition at line 45 of file budget-core.c.

#define TS_HEIGHT_MASK_DVBC   0xe00

Definition at line 46 of file budget-core.c.

#define TS_MAX_BUFSIZE_K   1410

Definition at line 48 of file budget-core.c.

#define TS_MAX_BUFSIZE_K_ACTIVY   564

Definition at line 49 of file budget-core.c.

#define TS_MAX_BUFSIZE_K_DVBC   1316

Definition at line 50 of file budget-core.c.

#define TS_MIN_BUFSIZE_K   188

Definition at line 47 of file budget-core.c.

#define TS_WIDTH   (2 * TS_SIZE)

Definition at line 41 of file budget-core.c.

#define TS_WIDTH_ACTIVY   TS_SIZE

Definition at line 42 of file budget-core.c.

#define TS_WIDTH_DVBC   TS_SIZE

Definition at line 43 of file budget-core.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ttpci_budget_debiread  )
EXPORT_SYMBOL_GPL ( ttpci_budget_debiwrite  )
EXPORT_SYMBOL_GPL ( ttpci_budget_init  )
EXPORT_SYMBOL_GPL ( ttpci_budget_init_hooks  )
EXPORT_SYMBOL_GPL ( ttpci_budget_deinit  )
EXPORT_SYMBOL_GPL ( ttpci_budget_irq10_handler  )
EXPORT_SYMBOL_GPL ( ttpci_budget_set_video_port  )
EXPORT_SYMBOL_GPL ( budget_debug  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
budget_debug  ,
int  ,
0644   
)
module_param_named ( bufsize  ,
dma_buffer_size  ,
int  ,
0444   
)
MODULE_PARM_DESC ( debug  ,
"Turn on/off budget debugging (default:off)."   
)
MODULE_PARM_DESC ( bufsize  ,
"DMA buffer size in  KB,
default:188  ,
min:188  ,
max:1410(Activy:564)"   
)
int ttpci_budget_debiread ( struct budget budget,
u32  config,
int  addr,
int  count,
int  uselocks,
int  nobusyloop 
)

Definition at line 234 of file budget-core.c.

int ttpci_budget_debiwrite ( struct budget budget,
u32  config,
int  addr,
int  count,
u32  value,
int  uselocks,
int  nobusyloop 
)

Definition at line 273 of file budget-core.c.

int ttpci_budget_deinit ( struct budget budget)

Definition at line 551 of file budget-core.c.

int ttpci_budget_init ( struct budget budget,
struct saa7146_dev dev,
struct saa7146_pci_extension_data info,
struct module owner,
short adapter_nums 
)

Definition at line 411 of file budget-core.c.

void ttpci_budget_init_hooks ( struct budget budget)

Definition at line 543 of file budget-core.c.

void ttpci_budget_irq10_handler ( struct saa7146_dev dev,
u32 isr 
)

Definition at line 570 of file budget-core.c.

void ttpci_budget_set_video_port ( struct saa7146_dev dev,
int  video_port 
)

Definition at line 580 of file budget-core.c.

Variable Documentation

int budget_debug

Definition at line 53 of file budget-core.c.