diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2009-12-04 03:41:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-01-17 08:55:42 -0500 |
commit | b3b961448f702339444036f94252ff2ba7a99feb (patch) | |
tree | f31007bb892091072fa97f43f5666105b1ea8f33 /drivers/media/dvb/mantis/mantis_reg.h | |
parent | add206368462434ba97e8fe4de98e5d47ffdb0a0 (diff) |
V4L/DVB (13795): [Mantis/Hopper] Code overhaul, add Hopper devices into the PCI ID list
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_reg.h')
-rw-r--r-- | drivers/media/dvb/mantis/mantis_reg.h | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/drivers/media/dvb/mantis/mantis_reg.h b/drivers/media/dvb/mantis/mantis_reg.h index 6f5cd4936763..0072e149a561 100644 --- a/drivers/media/dvb/mantis/mantis_reg.h +++ b/drivers/media/dvb/mantis/mantis_reg.h | |||
@@ -21,7 +21,7 @@ | |||
21 | #ifndef __MANTIS_REG_H | 21 | #ifndef __MANTIS_REG_H |
22 | #define __MANTIS_REG_H | 22 | #define __MANTIS_REG_H |
23 | 23 | ||
24 | // Interrupts | 24 | /* Interrupts */ |
25 | #define MANTIS_INT_STAT 0x00 | 25 | #define MANTIS_INT_STAT 0x00 |
26 | #define MANTIS_INT_MASK 0x04 | 26 | #define MANTIS_INT_MASK 0x04 |
27 | 27 | ||
@@ -49,8 +49,12 @@ | |||
49 | #define MANTIS_INT_RISCI (0x01 << 1) | 49 | #define MANTIS_INT_RISCI (0x01 << 1) |
50 | #define MANTIS_INT_I2CDONE (0x01 << 0) | 50 | #define MANTIS_INT_I2CDONE (0x01 << 0) |
51 | 51 | ||
52 | // DMA | 52 | /* DMA */ |
53 | #define MANTIS_DMA_CTL 0x08 | 53 | #define MANTIS_DMA_CTL 0x08 |
54 | #define MANTIS_GPIF_RD (0xff << 24) | ||
55 | #define MANTIS_GPIF_WR (0xff << 16) | ||
56 | #define MANTIS_CPU_DO (0x01 << 10) | ||
57 | #define MANTIS_DRV_DO (0x01 << 9) | ||
54 | #define MANTIS_I2C_RD (0x01 << 7) | 58 | #define MANTIS_I2C_RD (0x01 << 7) |
55 | #define MANTIS_I2C_WR (0x01 << 6) | 59 | #define MANTIS_I2C_WR (0x01 << 6) |
56 | #define MANTIS_DCAP_MODE (0x01 << 5) | 60 | #define MANTIS_DCAP_MODE (0x01 << 5) |
@@ -61,10 +65,16 @@ | |||
61 | #define MANTIS_DCAP_EN (0x01 << 1) | 65 | #define MANTIS_DCAP_EN (0x01 << 1) |
62 | #define MANTIS_RISC_EN (0x01 << 0) | 66 | #define MANTIS_RISC_EN (0x01 << 0) |
63 | 67 | ||
68 | /* DEBUG */ | ||
69 | #define MANTIS_DEBUGREG 0x0c | ||
70 | #define MANTIS_DATINV (0x0e << 7) | ||
71 | #define MANTIS_TOP_DEBUGSEL (0x07 << 4) | ||
72 | #define MANTIS_PCMCIA_DEBUGSEL (0x0f << 0) | ||
73 | |||
64 | #define MANTIS_RISC_START 0x10 | 74 | #define MANTIS_RISC_START 0x10 |
65 | #define MANTIS_RISC_PC 0x14 | 75 | #define MANTIS_RISC_PC 0x14 |
66 | 76 | ||
67 | // I2C | 77 | /* I2C */ |
68 | #define MANTIS_I2CDATA_CTL 0x18 | 78 | #define MANTIS_I2CDATA_CTL 0x18 |
69 | #define MANTIS_I2C_RATE_1 (0x00 << 6) | 79 | #define MANTIS_I2C_RATE_1 (0x00 << 6) |
70 | #define MANTIS_I2C_RATE_2 (0x01 << 6) | 80 | #define MANTIS_I2C_RATE_2 (0x01 << 6) |
@@ -73,6 +83,28 @@ | |||
73 | #define MANTIS_I2C_STOP (0x01 << 5) | 83 | #define MANTIS_I2C_STOP (0x01 << 5) |
74 | #define MANTIS_I2C_PGMODE (0x01 << 3) | 84 | #define MANTIS_I2C_PGMODE (0x01 << 3) |
75 | 85 | ||
86 | /* DATA */ | ||
87 | #define MANTIS_CMD_DATA_R1 0x20 | ||
88 | #define MANTIS_CMD_DATA_3 (0xff << 24) | ||
89 | #define MANTIS_CMD_DATA_2 (0xff << 16) | ||
90 | #define MANTIS_CMD_DATA_1 (0xff << 8) | ||
91 | #define MANTIS_CMD_DATA_0 (0xff << 0) | ||
92 | |||
93 | #define MANTIS_CMD_DATA_R2 0x24 | ||
94 | #define MANTIS_CMD_DATA_7 (0xff << 24) | ||
95 | #define MANTIS_CMD_DATA_6 (0xff << 16) | ||
96 | #define MANTIS_CMD_DATA_5 (0xff << 8) | ||
97 | #define MANTIS_CMD_DATA_4 (0xff << 0) | ||
98 | |||
99 | #define MANTIS_CONTROL 0x28 | ||
100 | #define MANTIS_DET (0x01 << 7) | ||
101 | #define MANTIS_DAT_CF_EN (0x01 << 6) | ||
102 | #define MANTIS_ACS (0x03 << 4) | ||
103 | #define MANTIS_VCCEN (0x01 << 3) | ||
104 | #define MANTIS_BYPASS (0x01 << 2) | ||
105 | #define MANTIS_MRST (0x01 << 1) | ||
106 | #define MANTIS_CRST_INT (0x01 << 0) | ||
107 | |||
76 | #define MANTIS_GPIF_CFGSLA 0x84 | 108 | #define MANTIS_GPIF_CFGSLA 0x84 |
77 | #define MANTIS_GPIF_WAITSMPL (0x07 << 28) | 109 | #define MANTIS_GPIF_WAITSMPL (0x07 << 28) |
78 | #define MANTIS_GPIF_BYTEADDRSUB (0x01 << 25) | 110 | #define MANTIS_GPIF_BYTEADDRSUB (0x01 << 25) |
@@ -162,4 +194,4 @@ | |||
162 | #define MANTIS_GPIF_LOGICRD (0xffff << 16) | 194 | #define MANTIS_GPIF_LOGICRD (0xffff << 16) |
163 | #define MANTIS_GPIF_LOGICRW (0xffff << 0) | 195 | #define MANTIS_GPIF_LOGICRW (0xffff << 0) |
164 | 196 | ||
165 | #endif //__MANTIS_REG_H | 197 | #endif /* __MANTIS_REG_H */ |