summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/av7110_hw.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_hw.h')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110_hw.h39
1 files changed, 20 insertions, 19 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_hw.h b/linux/drivers/media/dvb/ttpci/av7110_hw.h
index 06664581f..c0f539b93 100644
--- a/linux/drivers/media/dvb/ttpci/av7110_hw.h
+++ b/linux/drivers/media/dvb/ttpci/av7110_hw.h
@@ -360,18 +360,19 @@ enum av7110_command_type {
-extern void reset_arm(struct av7110 *av7110);
-extern int bootarm(struct av7110 *av7110);
-extern void firmversion(struct av7110 *av7110);
+extern void av7110_reset_arm(struct av7110 *av7110);
+extern int av7110_bootarm(struct av7110 *av7110);
+extern void av7110_firmversion(struct av7110 *av7110);
#define FW_CI_LL_SUPPORT(arm_app) ((arm_app) & 0x80000000)
#define FW_VERSION(arm_app) ((arm_app) & 0x0000FFFF)
-extern int outcom(struct av7110 *av7110, int type, int com, int num, ...);
-extern int OutCommand(struct av7110 *av7110, u16* buf, int length);
-extern int SOutCommand(struct av7110 *av7110, u16* buf, int length);
-extern int SendCICommand(struct av7110 *av7110, u8 subcom, u8 *Params, u8 ParamLen);
-extern int CommandRequest(struct av7110 *av7110, u16 *Buff, int length, u16 *buf, int n);
-extern int RequestParameter(struct av7110 *av7110, u16 tag, u16* Buff, s16 length);
+extern int av7110_fw_cmd(struct av7110 *av7110, int type, int com, int num, ...);
+extern int __av7110_send_fw_cmd(struct av7110 *av7110, u16* buf, int length);
+extern int av7110_send_fw_cmd(struct av7110 *av7110, u16* buf, int length);
+extern int av7110_send_ci_cmd(struct av7110 *av7110, u8 subcom, u8 *buf, u8 len);
+extern int av7110_fw_request(struct av7110 *av7110, u16 *request_buf,
+ int request_buf_len, u16 *reply_buf, int reply_buf_len);
+extern int av7110_fw_query(struct av7110 *av7110, u16 tag, u16* Buff, s16 length);
/* DEBI (saa7146 data extension bus interface) access */
@@ -453,38 +454,38 @@ static inline void ARM_ClearIrq(struct av7110 *av7110)
static inline int SendDAC(struct av7110 *av7110, u8 addr, u8 data)
{
- return outcom(av7110, COMTYPE_AUDIODAC, AudioDAC, 2, addr, data);
+ return av7110_fw_cmd(av7110, COMTYPE_AUDIODAC, AudioDAC, 2, addr, data);
}
static inline void VidMode(struct av7110 *av7110, int mode)
{
- outcom(av7110, COMTYPE_ENCODER, SetVidMode, 1, mode);
+ av7110_fw_cmd(av7110, COMTYPE_ENCODER, SetVidMode, 1, mode);
}
static int inline vidcom(struct av7110 *av7110, u32 com, u32 arg)
{
- return outcom(av7110, 0x80, 0x02, 4,
- (com>>16), (com&0xffff),
- (arg>>16), (arg&0xffff));
+ return av7110_fw_cmd(av7110, 0x80, 0x02, 4,
+ (com>>16), (com&0xffff),
+ (arg>>16), (arg&0xffff));
}
static int inline audcom(struct av7110 *av7110, u32 com)
{
- return outcom(av7110, 0x80, 0x03, 4,
- (com>>16), (com&0xffff));
+ return av7110_fw_cmd(av7110, 0x80, 0x03, 4,
+ (com>>16), (com&0xffff));
}
static inline void Set22K(struct av7110 *av7110, int state)
{
- outcom(av7110, COMTYPE_AUDIODAC, (state ? ON22K : OFF22K), 0);
+ av7110_fw_cmd(av7110, COMTYPE_AUDIODAC, (state ? ON22K : OFF22K), 0);
}
-extern int SendDiSEqCMsg(struct av7110 *av7110, int len, u8 *msg, unsigned long burst);
+extern int av7110_diseqc_send(struct av7110 *av7110, int len, u8 *msg, unsigned long burst);
#ifdef CONFIG_DVB_AV7110_OSD
-extern int OSD_DrawCommand(struct av7110 *av7110, osd_cmd_t *dc);
+extern int av7110_osd_cmd(struct av7110 *av7110, osd_cmd_t *dc);
#endif /* CONFIG_DVB_AV7110_OSD */