Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
av7110_hw.h File Reference
#include "av7110.h"

Go to the source code of this file.

Macros

#define DEBINOSWAP   0x000e0000
 
#define DEBISWAB   0x001e0000
 
#define DEBISWAP   0x002e0000
 
#define ARM_WAIT_FREE   (HZ)
 
#define ARM_WAIT_SHAKE   (HZ/5)
 
#define ARM_WAIT_OSD   (HZ)
 
#define SB_GPIO   3
 
#define SB_OFF   SAA7146_GPIO_OUTLO /* SlowBlank off (TV-Mode) */
 
#define SB_ON   SAA7146_GPIO_INPUT /* SlowBlank on (AV-Mode) */
 
#define SB_WIDE   SAA7146_GPIO_OUTHI /* SlowBlank 6V (16/9-Mode) (not implemented) */
 
#define FB_GPIO   1
 
#define FB_OFF   SAA7146_GPIO_LO /* FastBlank off (CVBS-Mode) */
 
#define FB_ON   SAA7146_GPIO_OUTHI /* FastBlank on (RGB-Mode) */
 
#define FB_LOOP   SAA7146_GPIO_INPUT /* FastBlank loop-through (PC graphics ???) */
 
#define GPMQFull   0x0001 /* Main Message Queue Full */
 
#define GPMQOver   0x0002 /* Main Message Queue Overflow */
 
#define HPQFull   0x0004 /* High Priority Msg Queue Full */
 
#define HPQOver   0x0008
 
#define OSDQFull   0x0010 /* OSD Queue Full */
 
#define OSDQOver   0x0020
 
#define GPMQBusy   0x0040 /* Queue not empty, FW >= 261d */
 
#define HPQBusy   0x0080
 
#define OSDQBusy   0x0100
 
#define SECTION_EIT   0x01
 
#define SECTION_SINGLE   0x00
 
#define SECTION_CYCLE   0x02
 
#define SECTION_CONTINUOS   0x04
 
#define SECTION_MODE   0x06
 
#define SECTION_IPMPE   0x0C /* size up to 4k */
 
#define SECTION_HIGH_SPEED   0x1C /* larger buffer */
 
#define DATA_PIPING_FLAG   0x20 /* for Data Piping Filter */
 
#define PBUFSIZE_NONE   0x0000
 
#define PBUFSIZE_1P   0x0100
 
#define PBUFSIZE_2P   0x0200
 
#define PBUFSIZE_1K   0x0300
 
#define PBUFSIZE_2K   0x0400
 
#define PBUFSIZE_4K   0x0500
 
#define PBUFSIZE_8K   0x0600
 
#define PBUFSIZE_16K   0x0700
 
#define PBUFSIZE_32K   0x0800
 
#define VID_NONE_PREF   0x00 /* No aspect ration processing preferred */
 
#define VID_PAN_SCAN_PREF   0x01 /* Pan and Scan Display preferred */
 
#define VID_VERT_COMP_PREF   0x02 /* Vertical compression display preferred */
 
#define VID_VC_AND_PS_PREF   0x03 /* PanScan and vertical Compression if allowed */
 
#define VID_CENTRE_CUT_PREF   0x05 /* PanScan with zero vector */
 
#define AV_VIDEO_CMD_STOP   0x000e
 
#define AV_VIDEO_CMD_PLAY   0x000d
 
#define AV_VIDEO_CMD_FREEZE   0x0102
 
#define AV_VIDEO_CMD_FFWD   0x0016
 
#define AV_VIDEO_CMD_SLOW   0x0022
 
#define AUDIO_CMD_MUTE   0x0001
 
#define AUDIO_CMD_UNMUTE   0x0002
 
#define AUDIO_CMD_PCM16   0x0010
 
#define AUDIO_CMD_STEREO   0x0080
 
#define AUDIO_CMD_MONO_L   0x0100
 
#define AUDIO_CMD_MONO_R   0x0200
 
#define AUDIO_CMD_SYNC_OFF   0x000e
 
#define AUDIO_CMD_SYNC_ON   0x000f
 
#define DATA_NONE   0x00
 
#define DATA_FSECTION   0x01
 
#define DATA_IPMPE   0x02
 
#define DATA_MPEG_RECORD   0x03
 
#define DATA_DEBUG_MESSAGE   0x04
 
#define DATA_COMMON_INTERFACE   0x05
 
#define DATA_MPEG_PLAY   0x06
 
#define DATA_BMP_LOAD   0x07
 
#define DATA_IRCOMMAND   0x08
 
#define DATA_PIPING   0x09
 
#define DATA_STREAMING   0x0a
 
#define DATA_CI_GET   0x0b
 
#define DATA_CI_PUT   0x0c
 
#define DATA_MPEG_VIDEO_EVENT   0x0d
 
#define DATA_PES_RECORD   0x10
 
#define DATA_PES_PLAY   0x11
 
#define DATA_TS_RECORD   0x12
 
#define DATA_TS_PLAY   0x13
 
#define CI_CMD_ERROR   0x00
 
#define CI_CMD_ACK   0x01
 
#define CI_CMD_SYSTEM_READY   0x02
 
#define CI_CMD_KEYPRESS   0x03
 
#define CI_CMD_ON_TUNED   0x04
 
#define CI_CMD_ON_SWITCH_PROGRAM   0x05
 
#define CI_CMD_SECTION_ARRIVED   0x06
 
#define CI_CMD_SECTION_TIMEOUT   0x07
 
#define CI_CMD_TIME   0x08
 
#define CI_CMD_ENTER_MENU   0x09
 
#define CI_CMD_FAST_PSI   0x0a
 
#define CI_CMD_GET_SLOT_INFO   0x0b
 
#define CI_MSG_NONE   0x00
 
#define CI_MSG_CI_INFO   0x01
 
#define CI_MSG_MENU   0x02
 
#define CI_MSG_LIST   0x03
 
#define CI_MSG_TEXT   0x04
 
#define CI_MSG_REQUEST_INPUT   0x05
 
#define CI_MSG_INPUT_COMPLETE   0x06
 
#define CI_MSG_LIST_MORE   0x07
 
#define CI_MSG_MENU_MORE   0x08
 
#define CI_MSG_CLOSE_MMI_IMM   0x09
 
#define CI_MSG_SECTION_REQUEST   0x0a
 
#define CI_MSG_CLOSE_FILTER   0x0b
 
#define CI_PSI_COMPLETE   0x0c
 
#define CI_MODULE_READY   0x0d
 
#define CI_SWITCH_PRG_REPLY   0x0e
 
#define CI_MSG_TEXT_MORE   0x0f
 
#define CI_MSG_CA_PMT   0xe0
 
#define CI_MSG_ERROR   0xf0
 
#define DPRAM_BASE   0x4000
 
#define AV7110_BOOT_STATE   (DPRAM_BASE + 0x3F8)
 
#define AV7110_BOOT_SIZE   (DPRAM_BASE + 0x3FA)
 
#define AV7110_BOOT_BASE   (DPRAM_BASE + 0x3FC)
 
#define AV7110_BOOT_BLOCK   (DPRAM_BASE + 0x400)
 
#define AV7110_BOOT_MAX_SIZE   0xc00
 
#define IRQ_STATE   (DPRAM_BASE + 0x0F4)
 
#define IRQ_STATE_EXT   (DPRAM_BASE + 0x0F6)
 
#define MSGSTATE   (DPRAM_BASE + 0x0F8)
 
#define COMMAND   (DPRAM_BASE + 0x0FC)
 
#define COM_BUFF   (DPRAM_BASE + 0x100)
 
#define COM_BUFF_SIZE   0x20
 
#define BUFF1_BASE   (DPRAM_BASE + 0x120)
 
#define BUFF1_SIZE   0xE0
 
#define DATA_BUFF0_BASE   (DPRAM_BASE + 0x200)
 
#define DATA_BUFF0_SIZE   0x0800
 
#define DATA_BUFF1_BASE   (DATA_BUFF0_BASE+DATA_BUFF0_SIZE)
 
#define DATA_BUFF1_SIZE   0x0800
 
#define DATA_BUFF2_BASE   (DATA_BUFF1_BASE+DATA_BUFF1_SIZE)
 
#define DATA_BUFF2_SIZE   0x0800
 
#define DATA_BUFF3_BASE   (DATA_BUFF2_BASE+DATA_BUFF2_SIZE)
 
#define DATA_BUFF3_SIZE   0x0400
 
#define Reserved   (DPRAM_BASE + 0x1E00)
 
#define Reserved_SIZE   0x1C0
 
#define STATUS_BASE   (DPRAM_BASE + 0x1FC0)
 
#define STATUS_LOOPS   (STATUS_BASE + 0x08)
 
#define STATUS_MPEG_WIDTH   (STATUS_BASE + 0x0C)
 
#define STATUS_MPEG_HEIGHT_AR   (STATUS_BASE + 0x0E)
 
#define RX_TYPE   (DPRAM_BASE + 0x1FE8)
 
#define RX_LEN   (DPRAM_BASE + 0x1FEA)
 
#define TX_TYPE   (DPRAM_BASE + 0x1FEC)
 
#define TX_LEN   (DPRAM_BASE + 0x1FEE)
 
#define RX_BUFF   (DPRAM_BASE + 0x1FF4)
 
#define TX_BUFF   (DPRAM_BASE + 0x1FF6)
 
#define HANDSHAKE_REG   (DPRAM_BASE + 0x1FF8)
 
#define COM_IF_LOCK   (DPRAM_BASE + 0x1FFA)
 
#define IRQ_RX   (DPRAM_BASE + 0x1FFC)
 
#define IRQ_TX   (DPRAM_BASE + 0x1FFE)
 
#define DRAM_START_CODE   0x2e000404
 
#define DRAM_MAX_CODE_SIZE   0x00100000
 
#define RESET_LINE   2
 
#define DEBI_DONE_LINE   1
 
#define ARM_IRQ_LINE   0
 
#define FW_CI_LL_SUPPORT(arm_app)   ((arm_app) & 0x80000000)
 
#define FW_4M_SDRAM(arm_app)   ((arm_app) & 0x40000000)
 
#define FW_VERSION(arm_app)   ((arm_app) & 0x0000FFFF)
 

Enumerations

enum  av7110_bootstate { BOOTSTATE_BUFFER_EMPTY = 0, BOOTSTATE_BUFFER_FULL = 1, BOOTSTATE_AV7110_BOOT_COMPLETE = 2 }
 
enum  av7110_type_rec_play_format {
  RP_None, AudioPES, AudioMp2, AudioPCM,
  VideoPES, AV_PES
}
 
enum  av7110_osd_palette_type {
  NoPalet = 0, Pal1Bit = 2, Pal2Bit = 4, Pal4Bit = 16,
  Pal8Bit = 256
}
 
enum  av7110_video_output_mode { NO_OUT = 0, CVBS_RGB_OUT = 1, CVBS_YC_OUT = 2, YC_OUT = 3 }
 
enum  av7110_osd_command {
  WCreate, WDestroy, WMoveD, WMoveA,
  WHide, WTop, DBox, DLine,
  DText, Set_Font, SetColor, SetBlend,
  SetWBlend, SetCBlend, SetNonBlend, LoadBmp,
  BlitBmp, ReleaseBmp, SetWTrans, SetWNoTrans,
  Set_Palette
}
 
enum  av7110_pid_command {
  MultiPID, VideoPID, AudioPID, InitFilt,
  FiltError, NewVersion, CacheError, AddPIDFilter,
  DelPIDFilter, Scan, SetDescr, SetIR,
  FlushTSQueue
}
 
enum  av7110_mpeg_command { SelAudChannels }
 
enum  av7110_audio_command {
  AudioDAC, CabADAC, ON22K, OFF22K,
  MainSwitch, ADSwitch, SendDiSEqC, SetRegister,
  SpdifSwitch
}
 
enum  av7110_request_command {
  AudioState, AudioBuffState, VideoState1, VideoState2,
  VideoState3, CrashCounter, ReqVersion, ReqVCXO,
  ReqRegister, ReqSecFilterError, ReqSTC
}
 
enum  av7110_encoder_command {
  SetVidMode, SetTestMode, LoadVidCode, SetMonitorType,
  SetPanScanType, SetFreezeMode, SetWSSConfig
}
 
enum  av7110_rec_play_state {
  __Record, __Stop, __Play, __Pause,
  __Slow, __FF_IP, __Scan_I, __Continue
}
 
enum  av7110_fw_cmd_misc { AV7110_FW_VIDEO_ZOOM = 1, AV7110_FW_VIDEO_COMMAND, AV7110_FW_AUDIO_COMMAND }
 
enum  av7110_command_type {
  COMTYPE_NOCOM, COMTYPE_PIDFILTER, COMTYPE_MPEGDECODER, COMTYPE_OSD,
  COMTYPE_BMP, COMTYPE_ENCODER, COMTYPE_AUDIODAC, COMTYPE_REQUEST,
  COMTYPE_SYSTEM, COMTYPE_REC_PLAY, COMTYPE_COMMON_IF, COMTYPE_PID_FILTER,
  COMTYPE_PES, COMTYPE_TS, COMTYPE_VIDEO, COMTYPE_AUDIO,
  COMTYPE_CI_LL, COMTYPE_MISC = 0x80
}
 

Functions

int av7110_bootarm (struct av7110 *av7110)
 
int av7110_firmversion (struct av7110 *av7110)
 
int av7110_wait_msgstate (struct av7110 *av7110, u16 flags)
 
int av7110_fw_cmd (struct av7110 *av7110, int type, int com, int num,...)
 
int av7110_fw_request (struct av7110 *av7110, u16 *request_buf, int request_buf_len, u16 *reply_buf, int reply_buf_len)
 
int av7110_debiwrite (struct av7110 *av7110, u32 config, int addr, u32 val, int count)
 
u32 av7110_debiread (struct av7110 *av7110, u32 config, int addr, int count)
 
int av7110_diseqc_send (struct av7110 *av7110, int len, u8 *msg, unsigned long burst)
 

Macro Definition Documentation

#define ARM_IRQ_LINE   0

Definition at line 362 of file av7110_hw.h.

#define ARM_WAIT_FREE   (HZ)

Definition at line 12 of file av7110_hw.h.

#define ARM_WAIT_OSD   (HZ)

Definition at line 14 of file av7110_hw.h.

#define ARM_WAIT_SHAKE   (HZ/5)

Definition at line 13 of file av7110_hw.h.

#define AUDIO_CMD_MONO_L   0x0100

Definition at line 230 of file av7110_hw.h.

#define AUDIO_CMD_MONO_R   0x0200

Definition at line 231 of file av7110_hw.h.

#define AUDIO_CMD_MUTE   0x0001

Definition at line 226 of file av7110_hw.h.

#define AUDIO_CMD_PCM16   0x0010

Definition at line 228 of file av7110_hw.h.

#define AUDIO_CMD_STEREO   0x0080

Definition at line 229 of file av7110_hw.h.

#define AUDIO_CMD_SYNC_OFF   0x000e

Definition at line 232 of file av7110_hw.h.

#define AUDIO_CMD_SYNC_ON   0x000f

Definition at line 233 of file av7110_hw.h.

#define AUDIO_CMD_UNMUTE   0x0002

Definition at line 227 of file av7110_hw.h.

#define AV7110_BOOT_BASE   (DPRAM_BASE + 0x3FC)

Definition at line 300 of file av7110_hw.h.

#define AV7110_BOOT_BLOCK   (DPRAM_BASE + 0x400)

Definition at line 301 of file av7110_hw.h.

#define AV7110_BOOT_MAX_SIZE   0xc00

Definition at line 302 of file av7110_hw.h.

#define AV7110_BOOT_SIZE   (DPRAM_BASE + 0x3FA)

Definition at line 299 of file av7110_hw.h.

#define AV7110_BOOT_STATE   (DPRAM_BASE + 0x3F8)

Definition at line 298 of file av7110_hw.h.

#define AV_VIDEO_CMD_FFWD   0x0016

Definition at line 222 of file av7110_hw.h.

#define AV_VIDEO_CMD_FREEZE   0x0102

Definition at line 221 of file av7110_hw.h.

#define AV_VIDEO_CMD_PLAY   0x000d

Definition at line 220 of file av7110_hw.h.

#define AV_VIDEO_CMD_SLOW   0x0022

Definition at line 223 of file av7110_hw.h.

#define AV_VIDEO_CMD_STOP   0x000e

Definition at line 219 of file av7110_hw.h.

#define BUFF1_BASE   (DPRAM_BASE + 0x120)

Definition at line 313 of file av7110_hw.h.

#define BUFF1_SIZE   0xE0

Definition at line 314 of file av7110_hw.h.

#define CI_CMD_ACK   0x01

Definition at line 259 of file av7110_hw.h.

#define CI_CMD_ENTER_MENU   0x09

Definition at line 267 of file av7110_hw.h.

#define CI_CMD_ERROR   0x00

Definition at line 258 of file av7110_hw.h.

#define CI_CMD_FAST_PSI   0x0a

Definition at line 268 of file av7110_hw.h.

#define CI_CMD_GET_SLOT_INFO   0x0b

Definition at line 269 of file av7110_hw.h.

#define CI_CMD_KEYPRESS   0x03

Definition at line 261 of file av7110_hw.h.

#define CI_CMD_ON_SWITCH_PROGRAM   0x05

Definition at line 263 of file av7110_hw.h.

#define CI_CMD_ON_TUNED   0x04

Definition at line 262 of file av7110_hw.h.

#define CI_CMD_SECTION_ARRIVED   0x06

Definition at line 264 of file av7110_hw.h.

#define CI_CMD_SECTION_TIMEOUT   0x07

Definition at line 265 of file av7110_hw.h.

#define CI_CMD_SYSTEM_READY   0x02

Definition at line 260 of file av7110_hw.h.

#define CI_CMD_TIME   0x08

Definition at line 266 of file av7110_hw.h.

#define CI_MODULE_READY   0x0d

Definition at line 284 of file av7110_hw.h.

#define CI_MSG_CA_PMT   0xe0

Definition at line 288 of file av7110_hw.h.

#define CI_MSG_CI_INFO   0x01

Definition at line 272 of file av7110_hw.h.

#define CI_MSG_CLOSE_FILTER   0x0b

Definition at line 282 of file av7110_hw.h.

#define CI_MSG_CLOSE_MMI_IMM   0x09

Definition at line 280 of file av7110_hw.h.

#define CI_MSG_ERROR   0xf0

Definition at line 289 of file av7110_hw.h.

#define CI_MSG_INPUT_COMPLETE   0x06

Definition at line 277 of file av7110_hw.h.

#define CI_MSG_LIST   0x03

Definition at line 274 of file av7110_hw.h.

#define CI_MSG_LIST_MORE   0x07

Definition at line 278 of file av7110_hw.h.

#define CI_MSG_MENU   0x02

Definition at line 273 of file av7110_hw.h.

#define CI_MSG_MENU_MORE   0x08

Definition at line 279 of file av7110_hw.h.

#define CI_MSG_NONE   0x00

Definition at line 271 of file av7110_hw.h.

#define CI_MSG_REQUEST_INPUT   0x05

Definition at line 276 of file av7110_hw.h.

#define CI_MSG_SECTION_REQUEST   0x0a

Definition at line 281 of file av7110_hw.h.

#define CI_MSG_TEXT   0x04

Definition at line 275 of file av7110_hw.h.

#define CI_MSG_TEXT_MORE   0x0f

Definition at line 286 of file av7110_hw.h.

#define CI_PSI_COMPLETE   0x0c

Definition at line 283 of file av7110_hw.h.

#define CI_SWITCH_PRG_REPLY   0x0e

Definition at line 285 of file av7110_hw.h.

#define COM_BUFF   (DPRAM_BASE + 0x100)

Definition at line 309 of file av7110_hw.h.

#define COM_BUFF_SIZE   0x20

Definition at line 310 of file av7110_hw.h.

#define COM_IF_LOCK   (DPRAM_BASE + 0x1FFA)

Definition at line 350 of file av7110_hw.h.

#define COMMAND   (DPRAM_BASE + 0x0FC)

Definition at line 308 of file av7110_hw.h.

#define DATA_BMP_LOAD   0x07

Definition at line 243 of file av7110_hw.h.

#define DATA_BUFF0_BASE   (DPRAM_BASE + 0x200)

Definition at line 316 of file av7110_hw.h.

#define DATA_BUFF0_SIZE   0x0800

Definition at line 317 of file av7110_hw.h.

#define DATA_BUFF1_BASE   (DATA_BUFF0_BASE+DATA_BUFF0_SIZE)

Definition at line 319 of file av7110_hw.h.

#define DATA_BUFF1_SIZE   0x0800

Definition at line 320 of file av7110_hw.h.

#define DATA_BUFF2_BASE   (DATA_BUFF1_BASE+DATA_BUFF1_SIZE)

Definition at line 322 of file av7110_hw.h.

#define DATA_BUFF2_SIZE   0x0800

Definition at line 323 of file av7110_hw.h.

#define DATA_BUFF3_BASE   (DATA_BUFF2_BASE+DATA_BUFF2_SIZE)

Definition at line 325 of file av7110_hw.h.

#define DATA_BUFF3_SIZE   0x0400

Definition at line 326 of file av7110_hw.h.

#define DATA_CI_GET   0x0b

Definition at line 247 of file av7110_hw.h.

#define DATA_CI_PUT   0x0c

Definition at line 248 of file av7110_hw.h.

#define DATA_COMMON_INTERFACE   0x05

Definition at line 241 of file av7110_hw.h.

#define DATA_DEBUG_MESSAGE   0x04

Definition at line 240 of file av7110_hw.h.

#define DATA_FSECTION   0x01

Definition at line 237 of file av7110_hw.h.

#define DATA_IPMPE   0x02

Definition at line 238 of file av7110_hw.h.

#define DATA_IRCOMMAND   0x08

Definition at line 244 of file av7110_hw.h.

#define DATA_MPEG_PLAY   0x06

Definition at line 242 of file av7110_hw.h.

#define DATA_MPEG_RECORD   0x03

Definition at line 239 of file av7110_hw.h.

#define DATA_MPEG_VIDEO_EVENT   0x0d

Definition at line 249 of file av7110_hw.h.

#define DATA_NONE   0x00

Definition at line 236 of file av7110_hw.h.

#define DATA_PES_PLAY   0x11

Definition at line 252 of file av7110_hw.h.

#define DATA_PES_RECORD   0x10

Definition at line 251 of file av7110_hw.h.

#define DATA_PIPING   0x09

Definition at line 245 of file av7110_hw.h.

#define DATA_PIPING_FLAG   0x20 /* for Data Piping Filter */

Definition at line 80 of file av7110_hw.h.

#define DATA_STREAMING   0x0a

Definition at line 246 of file av7110_hw.h.

#define DATA_TS_PLAY   0x13

Definition at line 254 of file av7110_hw.h.

#define DATA_TS_RECORD   0x12

Definition at line 253 of file av7110_hw.h.

#define DEBI_DONE_LINE   1

Definition at line 361 of file av7110_hw.h.

#define DEBINOSWAP   0x000e0000

Definition at line 8 of file av7110_hw.h.

#define DEBISWAB   0x001e0000

Definition at line 9 of file av7110_hw.h.

#define DEBISWAP   0x002e0000

Definition at line 10 of file av7110_hw.h.

#define DPRAM_BASE   0x4000

Definition at line 295 of file av7110_hw.h.

#define DRAM_MAX_CODE_SIZE   0x00100000

Definition at line 357 of file av7110_hw.h.

#define DRAM_START_CODE   0x2e000404

Definition at line 356 of file av7110_hw.h.

#define FB_GPIO   1

Definition at line 48 of file av7110_hw.h.

#define FB_LOOP   SAA7146_GPIO_INPUT /* FastBlank loop-through (PC graphics ???) */

Definition at line 51 of file av7110_hw.h.

#define FB_OFF   SAA7146_GPIO_LO /* FastBlank off (CVBS-Mode) */

Definition at line 49 of file av7110_hw.h.

#define FB_ON   SAA7146_GPIO_OUTHI /* FastBlank on (RGB-Mode) */

Definition at line 50 of file av7110_hw.h.

#define FW_4M_SDRAM (   arm_app)    ((arm_app) & 0x40000000)

Definition at line 369 of file av7110_hw.h.

#define FW_CI_LL_SUPPORT (   arm_app)    ((arm_app) & 0x80000000)

Definition at line 368 of file av7110_hw.h.

#define FW_VERSION (   arm_app)    ((arm_app) & 0x0000FFFF)

Definition at line 370 of file av7110_hw.h.

#define GPMQBusy   0x0040 /* Queue not empty, FW >= 261d */

Definition at line 68 of file av7110_hw.h.

#define GPMQFull   0x0001 /* Main Message Queue Full */

Definition at line 62 of file av7110_hw.h.

#define GPMQOver   0x0002 /* Main Message Queue Overflow */

Definition at line 63 of file av7110_hw.h.

#define HANDSHAKE_REG   (DPRAM_BASE + 0x1FF8)

Definition at line 349 of file av7110_hw.h.

#define HPQBusy   0x0080

Definition at line 69 of file av7110_hw.h.

#define HPQFull   0x0004 /* High Priority Msg Queue Full */

Definition at line 64 of file av7110_hw.h.

#define HPQOver   0x0008

Definition at line 65 of file av7110_hw.h.

#define IRQ_RX   (DPRAM_BASE + 0x1FFC)

Definition at line 352 of file av7110_hw.h.

#define IRQ_STATE   (DPRAM_BASE + 0x0F4)

Definition at line 305 of file av7110_hw.h.

#define IRQ_STATE_EXT   (DPRAM_BASE + 0x0F6)

Definition at line 306 of file av7110_hw.h.

#define IRQ_TX   (DPRAM_BASE + 0x1FFE)

Definition at line 353 of file av7110_hw.h.

#define MSGSTATE   (DPRAM_BASE + 0x0F8)

Definition at line 307 of file av7110_hw.h.

#define OSDQBusy   0x0100

Definition at line 70 of file av7110_hw.h.

#define OSDQFull   0x0010 /* OSD Queue Full */

Definition at line 66 of file av7110_hw.h.

#define OSDQOver   0x0020

Definition at line 67 of file av7110_hw.h.

#define PBUFSIZE_16K   0x0700

Definition at line 89 of file av7110_hw.h.

#define PBUFSIZE_1K   0x0300

Definition at line 85 of file av7110_hw.h.

#define PBUFSIZE_1P   0x0100

Definition at line 83 of file av7110_hw.h.

#define PBUFSIZE_2K   0x0400

Definition at line 86 of file av7110_hw.h.

#define PBUFSIZE_2P   0x0200

Definition at line 84 of file av7110_hw.h.

#define PBUFSIZE_32K   0x0800

Definition at line 90 of file av7110_hw.h.

#define PBUFSIZE_4K   0x0500

Definition at line 87 of file av7110_hw.h.

#define PBUFSIZE_8K   0x0600

Definition at line 88 of file av7110_hw.h.

#define PBUFSIZE_NONE   0x0000

Definition at line 82 of file av7110_hw.h.

__u8 Reserved   (DPRAM_BASE + 0x1E00)

Definition at line 328 of file av7110_hw.h.

#define Reserved_SIZE   0x1C0

Definition at line 329 of file av7110_hw.h.

#define RESET_LINE   2

Definition at line 360 of file av7110_hw.h.

#define RX_BUFF   (DPRAM_BASE + 0x1FF4)

Definition at line 346 of file av7110_hw.h.

#define RX_LEN   (DPRAM_BASE + 0x1FEA)

Definition at line 342 of file av7110_hw.h.

#define RX_TYPE   (DPRAM_BASE + 0x1FE8)

Definition at line 341 of file av7110_hw.h.

#define SB_GPIO   3

Definition at line 43 of file av7110_hw.h.

#define SB_OFF   SAA7146_GPIO_OUTLO /* SlowBlank off (TV-Mode) */

Definition at line 44 of file av7110_hw.h.

#define SB_ON   SAA7146_GPIO_INPUT /* SlowBlank on (AV-Mode) */

Definition at line 45 of file av7110_hw.h.

#define SB_WIDE   SAA7146_GPIO_OUTHI /* SlowBlank 6V (16/9-Mode) (not implemented) */

Definition at line 46 of file av7110_hw.h.

#define SECTION_CONTINUOS   0x04

Definition at line 76 of file av7110_hw.h.

#define SECTION_CYCLE   0x02

Definition at line 75 of file av7110_hw.h.

#define SECTION_EIT   0x01

Definition at line 73 of file av7110_hw.h.

#define SECTION_HIGH_SPEED   0x1C /* larger buffer */

Definition at line 79 of file av7110_hw.h.

#define SECTION_IPMPE   0x0C /* size up to 4k */

Definition at line 78 of file av7110_hw.h.

#define SECTION_MODE   0x06

Definition at line 77 of file av7110_hw.h.

#define SECTION_SINGLE   0x00

Definition at line 74 of file av7110_hw.h.

#define STATUS_BASE   (DPRAM_BASE + 0x1FC0)

Definition at line 333 of file av7110_hw.h.

#define STATUS_LOOPS   (STATUS_BASE + 0x08)

Definition at line 334 of file av7110_hw.h.

#define STATUS_MPEG_HEIGHT_AR   (STATUS_BASE + 0x0E)

Definition at line 338 of file av7110_hw.h.

#define STATUS_MPEG_WIDTH   (STATUS_BASE + 0x0C)

Definition at line 336 of file av7110_hw.h.

#define TX_BUFF   (DPRAM_BASE + 0x1FF6)

Definition at line 347 of file av7110_hw.h.

#define TX_LEN   (DPRAM_BASE + 0x1FEE)

Definition at line 344 of file av7110_hw.h.

#define TX_TYPE   (DPRAM_BASE + 0x1FEC)

Definition at line 343 of file av7110_hw.h.

#define VID_CENTRE_CUT_PREF   0x05 /* PanScan with zero vector */

Definition at line 216 of file av7110_hw.h.

#define VID_NONE_PREF   0x00 /* No aspect ration processing preferred */

Definition at line 212 of file av7110_hw.h.

#define VID_PAN_SCAN_PREF   0x01 /* Pan and Scan Display preferred */

Definition at line 213 of file av7110_hw.h.

#define VID_VC_AND_PS_PREF   0x03 /* PanScan and vertical Compression if allowed */

Definition at line 215 of file av7110_hw.h.

#define VID_VERT_COMP_PREF   0x02 /* Vertical compression display preferred */

Definition at line 214 of file av7110_hw.h.

Enumeration Type Documentation

Enumerator:
AudioDAC 
CabADAC 
ON22K 
OFF22K 
MainSwitch 
ADSwitch 
SendDiSEqC 
SetRegister 
SpdifSwitch 

Definition at line 138 of file av7110_hw.h.

Enumerator:
BOOTSTATE_BUFFER_EMPTY 
BOOTSTATE_BUFFER_FULL 
BOOTSTATE_AV7110_BOOT_COMPLETE 

Definition at line 17 of file av7110_hw.h.

Enumerator:
COMTYPE_NOCOM 
COMTYPE_PIDFILTER 
COMTYPE_MPEGDECODER 
COMTYPE_OSD 
COMTYPE_BMP 
COMTYPE_ENCODER 
COMTYPE_AUDIODAC 
COMTYPE_REQUEST 
COMTYPE_SYSTEM 
COMTYPE_REC_PLAY 
COMTYPE_COMMON_IF 
COMTYPE_PID_FILTER 
COMTYPE_PES 
COMTYPE_TS 
COMTYPE_VIDEO 
COMTYPE_AUDIO 
COMTYPE_CI_LL 
COMTYPE_MISC 

Definition at line 191 of file av7110_hw.h.

Enumerator:
SetVidMode 
SetTestMode 
LoadVidCode 
SetMonitorType 
SetPanScanType 
SetFreezeMode 
SetWSSConfig 

Definition at line 164 of file av7110_hw.h.

Enumerator:
AV7110_FW_VIDEO_ZOOM 
AV7110_FW_VIDEO_COMMAND 
AV7110_FW_AUDIO_COMMAND 

Definition at line 185 of file av7110_hw.h.

Enumerator:
SelAudChannels 

Definition at line 134 of file av7110_hw.h.

Enumerator:
WCreate 
WDestroy 
WMoveD 
WMoveA 
WHide 
WTop 
DBox 
DLine 
DText 
Set_Font 
SetColor 
SetBlend 
SetWBlend 
SetCBlend 
SetNonBlend 
LoadBmp 
BlitBmp 
ReleaseBmp 
SetWTrans 
SetWNoTrans 
Set_Palette 

Definition at line 94 of file av7110_hw.h.

Enumerator:
NoPalet 
Pal1Bit 
Pal2Bit 
Pal4Bit 
Pal8Bit 

Definition at line 33 of file av7110_hw.h.

Enumerator:
MultiPID 
VideoPID 
AudioPID 
InitFilt 
FiltError 
NewVersion 
CacheError 
AddPIDFilter 
DelPIDFilter 
Scan 
SetDescr 
SetIR 
FlushTSQueue 

Definition at line 118 of file av7110_hw.h.

Enumerator:
__Record 
__Stop 
__Play 
__Pause 
__Slow 
__FF_IP 
__Scan_I 
__Continue 

Definition at line 174 of file av7110_hw.h.

Enumerator:
AudioState 
AudioBuffState 
VideoState1 
VideoState2 
VideoState3 
CrashCounter 
ReqVersion 
ReqVCXO 
ReqRegister 
ReqSecFilterError 
ReqSTC 

Definition at line 150 of file av7110_hw.h.

Enumerator:
RP_None 
AudioPES 
AudioMp2 
AudioPCM 
VideoPES 
AV_PES 

Definition at line 24 of file av7110_hw.h.

Enumerator:
NO_OUT 
CVBS_RGB_OUT 
CVBS_YC_OUT 
YC_OUT 

Definition at line 53 of file av7110_hw.h.

Function Documentation

int av7110_bootarm ( struct av7110 av7110)

Definition at line 201 of file av7110_hw.c.

u32 av7110_debiread ( struct av7110 av7110,
u32  config,
int  addr,
int  count 
)

Definition at line 73 of file av7110_hw.c.

int av7110_debiwrite ( struct av7110 av7110,
u32  config,
int  addr,
u32  val,
int  count 
)

Definition at line 50 of file av7110_hw.c.

int av7110_diseqc_send ( struct av7110 av7110,
int  len,
u8 msg,
unsigned long  burst 
)

Definition at line 663 of file av7110_hw.c.

int av7110_firmversion ( struct av7110 av7110)

Definition at line 628 of file av7110_hw.c.

int av7110_fw_cmd ( struct av7110 av7110,
int  type,
int  com,
int  num,
  ... 
)

Definition at line 488 of file av7110_hw.c.

int av7110_fw_request ( struct av7110 av7110,
u16 request_buf,
int  request_buf_len,
u16 reply_buf,
int  reply_buf_len 
)

Definition at line 536 of file av7110_hw.c.

int av7110_wait_msgstate ( struct av7110 av7110,
u16  flags 
)

Definition at line 300 of file av7110_hw.c.