Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ivtv-firmware.c File Reference
#include "ivtv-driver.h"
#include "ivtv-mailbox.h"
#include "ivtv-firmware.h"
#include "ivtv-yuv.h"
#include "ivtv-ioctl.h"
#include "ivtv-cards.h"
#include <linux/firmware.h>
#include <media/saa7127.h>

Go to the source code of this file.

Macros

#define IVTV_MASK_SPU_ENABLE   0xFFFFFFFE
 
#define IVTV_MASK_VPU_ENABLE15   0xFFFFFFF6
 
#define IVTV_MASK_VPU_ENABLE16   0xFFFFFFFB
 
#define IVTV_CMD_VDM_STOP   0x00000000
 
#define IVTV_CMD_AO_STOP   0x00000005
 
#define IVTV_CMD_APU_PING   0x00000000
 
#define IVTV_CMD_VPU_STOP15   0xFFFFFFFE
 
#define IVTV_CMD_VPU_STOP16   0xFFFFFFEE
 
#define IVTV_CMD_HW_BLOCKS_RST   0xFFFFFFFF
 
#define IVTV_CMD_SPU_STOP   0x00000001
 
#define IVTV_CMD_SDRAM_PRECHARGE_INIT   0x0000001A
 
#define IVTV_CMD_SDRAM_REFRESH_INIT   0x80000640
 
#define IVTV_SDRAM_SLEEPTIME   600
 
#define IVTV_DECODE_INIT_MPEG_FILENAME   "v4l-cx2341x-init.mpg"
 
#define IVTV_DECODE_INIT_MPEG_SIZE   (152*1024)
 
#define IVTV_FW_ENC_SIZE   (376836)
 
#define IVTV_FW_DEC_SIZE   (256*1024)
 

Functions

void ivtv_halt_firmware (struct ivtv *itv)
 
void ivtv_firmware_versions (struct ivtv *itv)
 
int ivtv_firmware_init (struct ivtv *itv)
 
void ivtv_init_mpeg_decoder (struct ivtv *itv)
 
int ivtv_firmware_restart (struct ivtv *itv)
 
int ivtv_firmware_check (struct ivtv *itv, char *where)
 
 MODULE_FIRMWARE (CX2341X_FIRM_ENC_FILENAME)
 
 MODULE_FIRMWARE (CX2341X_FIRM_DEC_FILENAME)
 
 MODULE_FIRMWARE (IVTV_DECODE_INIT_MPEG_FILENAME)
 

Macro Definition Documentation

#define IVTV_CMD_AO_STOP   0x00000005

Definition at line 35 of file ivtv-firmware.c.

#define IVTV_CMD_APU_PING   0x00000000

Definition at line 36 of file ivtv-firmware.c.

#define IVTV_CMD_HW_BLOCKS_RST   0xFFFFFFFF

Definition at line 39 of file ivtv-firmware.c.

#define IVTV_CMD_SDRAM_PRECHARGE_INIT   0x0000001A

Definition at line 41 of file ivtv-firmware.c.

#define IVTV_CMD_SDRAM_REFRESH_INIT   0x80000640

Definition at line 42 of file ivtv-firmware.c.

#define IVTV_CMD_SPU_STOP   0x00000001

Definition at line 40 of file ivtv-firmware.c.

#define IVTV_CMD_VDM_STOP   0x00000000

Definition at line 34 of file ivtv-firmware.c.

#define IVTV_CMD_VPU_STOP15   0xFFFFFFFE

Definition at line 37 of file ivtv-firmware.c.

#define IVTV_CMD_VPU_STOP16   0xFFFFFFEE

Definition at line 38 of file ivtv-firmware.c.

#define IVTV_DECODE_INIT_MPEG_FILENAME   "v4l-cx2341x-init.mpg"

Definition at line 45 of file ivtv-firmware.c.

#define IVTV_DECODE_INIT_MPEG_SIZE   (152*1024)

Definition at line 46 of file ivtv-firmware.c.

#define IVTV_FW_DEC_SIZE   (256*1024)

Definition at line 50 of file ivtv-firmware.c.

#define IVTV_FW_ENC_SIZE   (376836)

Definition at line 49 of file ivtv-firmware.c.

#define IVTV_MASK_SPU_ENABLE   0xFFFFFFFE

Definition at line 31 of file ivtv-firmware.c.

#define IVTV_MASK_VPU_ENABLE15   0xFFFFFFF6

Definition at line 32 of file ivtv-firmware.c.

#define IVTV_MASK_VPU_ENABLE16   0xFFFFFFFB

Definition at line 33 of file ivtv-firmware.c.

#define IVTV_SDRAM_SLEEPTIME   600

Definition at line 43 of file ivtv-firmware.c.

Function Documentation

int ivtv_firmware_check ( struct ivtv itv,
char where 
)

Definition at line 335 of file ivtv-firmware.c.

int ivtv_firmware_init ( struct ivtv itv)

Definition at line 195 of file ivtv-firmware.c.

int ivtv_firmware_restart ( struct ivtv itv)

Definition at line 279 of file ivtv-firmware.c.

void ivtv_firmware_versions ( struct ivtv itv)

Definition at line 140 of file ivtv-firmware.c.

void ivtv_halt_firmware ( struct ivtv itv)

Definition at line 88 of file ivtv-firmware.c.

void ivtv_init_mpeg_decoder ( struct ivtv itv)

Definition at line 244 of file ivtv-firmware.c.

MODULE_FIRMWARE ( CX2341X_FIRM_ENC_FILENAME  )
MODULE_FIRMWARE ( CX2341X_FIRM_DEC_FILENAME  )
MODULE_FIRMWARE ( IVTV_DECODE_INIT_MPEG_FILENAME  )