aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/mantis/mantis_common.h
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2009-12-04 03:57:28 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 08:55:43 -0500
commitbc832fa2c0310c25ed60204616ccef4f8db088f3 (patch)
tree4544c2e786cc462d2b9d143b3c3a0ad7cd74a424 /drivers/media/dvb/mantis/mantis_common.h
parent3e978a8284080d801d20cda377d9cf7c12fe68b9 (diff)
V4L/DVB (13798): [Mantis] Enable power for all cards, use byte mode only on relevant devices
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_common.h')
-rw-r--r--drivers/media/dvb/mantis/mantis_common.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/media/dvb/mantis/mantis_common.h b/drivers/media/dvb/mantis/mantis_common.h
index e912c5962e3a..6ae3aabe5604 100644
--- a/drivers/media/dvb/mantis/mantis_common.h
+++ b/drivers/media/dvb/mantis/mantis_common.h
@@ -32,6 +32,7 @@
32#define MANTIS_NOTICE 1 32#define MANTIS_NOTICE 1
33#define MANTIS_INFO 2 33#define MANTIS_INFO 2
34#define MANTIS_DEBUG 3 34#define MANTIS_DEBUG 3
35#define MANTIS_TMG 9
35 36
36#define dprintk(y, z, format, arg...) do { \ 37#define dprintk(y, z, format, arg...) do { \
37 if (z) { \ 38 if (z) { \
@@ -43,6 +44,8 @@
43 printk(KERN_INFO "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 44 printk(KERN_INFO "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
44 else if ((mantis->verbose > MANTIS_DEBUG) && (mantis->verbose > y)) \ 45 else if ((mantis->verbose > MANTIS_DEBUG) && (mantis->verbose > y)) \
45 printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 46 printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
47 else if ((mantis->verbose > MANTIS_TMG) && (mantis->verbose > y)) \
48 printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
46 } else { \ 49 } else { \
47 if (mantis->verbose > y) \ 50 if (mantis->verbose > y) \
48 printk(format , ##arg); \ 51 printk(format , ##arg); \
@@ -54,9 +57,6 @@
54 57
55#define mmwrite(dat, addr) mwrite((dat), (mantis->mmio + (addr))) 58#define mmwrite(dat, addr) mwrite((dat), (mantis->mmio + (addr)))
56#define mmread(addr) mread(mantis->mmio + (addr)) 59#define mmread(addr) mread(mantis->mmio + (addr))
57#define mmand(dat, addr) mmwrite((dat) & mmread(addr), addr)
58#define mmor(dat, addr) mmwrite((dat) | mmread(addr), addr)
59#define mmaor(dat, addr) mmwrite((dat) | ((mask) & mmread(addr)), addr)
60 60
61#define MANTIS_TS_188 0 61#define MANTIS_TS_188 0
62#define MANTIS_TS_204 1 62#define MANTIS_TS_204 1
@@ -75,6 +75,11 @@
75 .driver_data = (unsigned long) (__configptr) \ 75 .driver_data = (unsigned long) (__configptr) \
76} 76}
77 77
78enum mantis_i2c_mode {
79 MANTIS_PAGE_MODE = 0,
80 MANTIS_BYTE_MODE,
81};
82
78struct mantis_pci; 83struct mantis_pci;
79 84
80struct mantis_hwconfig { 85struct mantis_hwconfig {
@@ -91,6 +96,8 @@ struct mantis_hwconfig {
91 96
92 u8 power; 97 u8 power;
93 u8 reset; 98 u8 reset;
99
100 enum mantis_i2c_mode i2c_mode;
94}; 101};
95 102
96struct mantis_pci { 103struct mantis_pci {