aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-reg.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-12 06:41:29 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 14:53:33 -0500
commita924a499adb89f52046936deac87264774652a81 (patch)
tree657e649eff39c384c1413e5acfb453001a249bc8 /drivers/media/video/em28xx/em28xx-reg.h
parent1958578da6f3971227fca94a62429cdf0bd3c699 (diff)
V4L/DVB (9607): em28xx: Properly implement poll support for IR's
The first em28xx were based on i2c IR's. However, some newer designs are coming with a polling-based IR. Those are done by reading a register set at em28xx. This patch adds core polling support for those devices. Later patches will add support for some device-specific IR's. This patch adds the same basic IR polling code used by bttv, cx88 and saa7134, and shares the common getkey masks defined at ir-common. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-reg.h')
-rw-r--r--drivers/media/video/em28xx/em28xx-reg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-reg.h b/drivers/media/video/em28xx/em28xx-reg.h
index 50d1790d84f..f67955a1b81 100644
--- a/drivers/media/video/em28xx/em28xx-reg.h
+++ b/drivers/media/video/em28xx/em28xx-reg.h
@@ -71,6 +71,13 @@
71#define EM28XX_R42_AC97ADDR 0x42 71#define EM28XX_R42_AC97ADDR 0x42
72#define EM28XX_R43_AC97BUSY 0x43 72#define EM28XX_R43_AC97BUSY 0x43
73 73
74#define EM28XX_R45_IR 0x45
75 /* 0x45 bit 7 - parity bit
76 bits 6-0 - count
77 0x46 IR brand
78 0x47 IR data
79 */
80
74/* em202 registers */ 81/* em202 registers */
75#define EM28XX_R02_MASTER_AC97 0x02 82#define EM28XX_R02_MASTER_AC97 0x02
76#define EM28XX_R10_LINE_IN_AC97 0x10 83#define EM28XX_R10_LINE_IN_AC97 0x10