From 6619ffef1ac825f47ff0ac16eecfa0225bdc7f2a Mon Sep 17 00:00:00 2001 From: Andrew de Quincy Date: Fri, 12 Nov 2004 13:51:21 +0000 Subject: Support for KNC1/Cinergy CI modules. Patch by Olivier Gournet and myself. --- linux/drivers/media/dvb/ttpci/budget.h | 62 ++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 29 deletions(-) (limited to 'linux/drivers/media/dvb/ttpci/budget.h') diff --git a/linux/drivers/media/dvb/ttpci/budget.h b/linux/drivers/media/dvb/ttpci/budget.h index d97bece77..de7c0bf34 100644 --- a/linux/drivers/media/dvb/ttpci/budget.h +++ b/linux/drivers/media/dvb/ttpci/budget.h @@ -21,49 +21,51 @@ extern int budget_debug; do { if ((budget_debug & level)) { printk("%s: %s(): ",__stringify(KBUILD_MODNAME), __FUNCTION__); printk(args); } } while (0) struct budget_info { - char *name; - int type; + char *name; + int type; }; /* place to store all the necessary device information */ struct budget { /* devices */ - struct dvb_device dvb_dev; - struct dvb_net dvb_net; + struct dvb_device dvb_dev; + struct dvb_net dvb_net; - struct saa7146_dev *dev; + struct saa7146_dev *dev; - struct i2c_adapter i2c_adap; - struct budget_info *card; + struct i2c_adapter i2c_adap; + struct budget_info *card; - unsigned char *grabbing; - struct saa7146_pgtable pt; + unsigned char *grabbing; + struct saa7146_pgtable pt; - struct tasklet_struct fidb_tasklet; - struct tasklet_struct vpe_tasklet; + struct tasklet_struct fidb_tasklet; + struct tasklet_struct vpe_tasklet; - struct dmxdev dmxdev; - struct dvb_demux demux; + struct dmxdev dmxdev; + struct dvb_demux demux; - struct dmx_frontend hw_frontend; - struct dmx_frontend mem_frontend; + struct dmx_frontend hw_frontend; + struct dmx_frontend mem_frontend; - int fe_synced; - struct semaphore pid_mutex; - - int ci_present; - int video_port; + int fe_synced; + struct semaphore pid_mutex; + + int ci_present; + int video_port; u8 tsf; u32 ttbp; int feeding; - spinlock_t feedlock; + spinlock_t feedlock; + + spinlock_t debilock; - struct dvb_adapter *dvb_adapter; - struct dvb_frontend *dvb_frontend; - void *priv; + struct dvb_adapter *dvb_adapter; + struct dvb_frontend *dvb_frontend; + void *priv; }; #define MAKE_BUDGET_INFO(x_var,x_name,x_type) \ @@ -94,11 +96,13 @@ static struct saa7146_pci_extension_data x_var = { \ #define BUDGET_VIDEO_PORTB 1 extern int ttpci_budget_init (struct budget *budget, - struct saa7146_dev* dev, - struct saa7146_pci_extension_data *info); + struct saa7146_dev *dev, + struct saa7146_pci_extension_data *info); extern int ttpci_budget_deinit (struct budget *budget); -extern void ttpci_budget_irq10_handler (struct saa7146_dev* dev, u32 *isr); -extern void ttpci_budget_set_video_port(struct saa7146_dev* dev, int video_port); +extern void ttpci_budget_irq10_handler (struct saa7146_dev *dev, u32 * isr); +extern void ttpci_budget_set_video_port (struct saa7146_dev *dev, + int video_port); +extern u32 ttpci_budget_debiread (struct budget *budget, u32 config, int addr, int count); +extern u8 ttpci_budget_debiwrite (struct budget *budget, u32 config, int addr, int count, u32 value); #endif - -- cgit v1.2.3