summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/budget.h
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2004-11-12 13:51:21 +0000
committerAndrew de Quincy <devnull@localhost>2004-11-12 13:51:21 +0000
commit6619ffef1ac825f47ff0ac16eecfa0225bdc7f2a (patch)
tree56f9ee78bb36ac4e01932812c5d85a7381885d9c /linux/drivers/media/dvb/ttpci/budget.h
parentfed16c767f240aabd0ab2ab38fb36a783922b6c5 (diff)
downloadmediapointer-dvb-s2-6619ffef1ac825f47ff0ac16eecfa0225bdc7f2a.tar.gz
mediapointer-dvb-s2-6619ffef1ac825f47ff0ac16eecfa0225bdc7f2a.tar.bz2
Support for KNC1/Cinergy CI modules. Patch by Olivier Gournet and myself.
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/budget.h')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget.h62
1 files changed, 33 insertions, 29 deletions
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
-