Lines Matching defs:av7110

5 #include "av7110.h"
294 * area between PCI bus and av7110,
356 /* used by boot protocol to load firmware into av7110 DRAM */
367 extern int av7110_bootarm(struct av7110 *av7110);
368 extern int av7110_firmversion(struct av7110 *av7110);
373 extern int av7110_wait_msgstate(struct av7110 *av7110, u16 flags);
374 extern int av7110_fw_cmd(struct av7110 *av7110, int type, int com, int num, ...);
375 extern int av7110_fw_request(struct av7110 *av7110, u16 *request_buf,
380 extern int av7110_debiwrite(struct av7110 *av7110, u32 config,
382 extern u32 av7110_debiread(struct av7110 *av7110, u32 config,
388 static inline void iwdebi(struct av7110 *av7110, u32 config, int addr, u32 val, unsigned int count)
390 av7110_debiwrite(av7110, config, addr, val, count);
394 static inline void mwdebi(struct av7110 *av7110, u32 config, int addr,
397 memcpy(av7110->debi_virt, val, count);
398 av7110_debiwrite(av7110, config, addr, 0, count);
401 static inline u32 irdebi(struct av7110 *av7110, u32 config, int addr, u32 val, unsigned int count)
405 res=av7110_debiread(av7110, config, addr, count);
407 memcpy(av7110->debi_virt, (char *) &res, count);
412 static inline void wdebi(struct av7110 *av7110, u32 config, int addr, u32 val, unsigned int count)
416 spin_lock_irqsave(&av7110->debilock, flags);
417 av7110_debiwrite(av7110, config, addr, val, count);
418 spin_unlock_irqrestore(&av7110->debilock, flags);
421 static inline u32 rdebi(struct av7110 *av7110, u32 config, int addr, u32 val, unsigned int count)
426 spin_lock_irqsave(&av7110->debilock, flags);
427 res=av7110_debiread(av7110, config, addr, count);
428 spin_unlock_irqrestore(&av7110->debilock, flags);
433 static inline void ARM_ResetMailBox(struct av7110 *av7110)
437 spin_lock_irqsave(&av7110->debilock, flags);
438 av7110_debiread(av7110, DEBINOSWAP, IRQ_RX, 2);
439 av7110_debiwrite(av7110, DEBINOSWAP, IRQ_RX, 0, 2);
440 spin_unlock_irqrestore(&av7110->debilock, flags);
443 static inline void ARM_ClearMailBox(struct av7110 *av7110)
445 iwdebi(av7110, DEBINOSWAP, IRQ_RX, 0, 2);
448 static inline void ARM_ClearIrq(struct av7110 *av7110)
450 irdebi(av7110, DEBINOSWAP, IRQ_RX, 0, 2);
457 static inline int SendDAC(struct av7110 *av7110, u8 addr, u8 data)
459 return av7110_fw_cmd(av7110, COMTYPE_AUDIODAC, AudioDAC, 2, addr, data);
462 static inline int av7710_set_video_mode(struct av7110 *av7110, int mode)
464 return av7110_fw_cmd(av7110, COMTYPE_ENCODER, SetVidMode, 1, mode);
467 static inline int vidcom(struct av7110 *av7110, u32 com, u32 arg)
469 return av7110_fw_cmd(av7110, COMTYPE_MISC, AV7110_FW_VIDEO_COMMAND, 4,
474 static inline int audcom(struct av7110 *av7110, u32 com)
476 return av7110_fw_cmd(av7110, COMTYPE_MISC, AV7110_FW_AUDIO_COMMAND, 2,
480 static inline int Set22K(struct av7110 *av7110, int state)
482 return av7110_fw_cmd(av7110, COMTYPE_AUDIODAC, (state ? ON22K : OFF22K), 0);
486 extern int av7110_diseqc_send(struct av7110 *av7110, int len, u8 *msg, unsigned long burst);
490 extern int av7110_osd_cmd(struct av7110 *av7110, osd_cmd_t *dc);
491 extern int av7110_osd_capability(struct av7110 *av7110, osd_cap_t *cap);