⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mv_spc.c

📁 tuner扫描
💻 C
字号:
/*==========================================================================*/
/*     (Copyright (C) 2003 Koninklijke Philips Electronics N.V.             */
/*     All rights reserved.                                                 */
/*     This source code and any compilation or derivative thereof is the    */
/*     proprietary information of Koninklijke Philips Electronics N.V.      */
/*     and is confidential in nature.                                       */
/*     Under no circumstances is this software to be exposed to or placed   */
/*     under an Open Source License of any type without the expressed       */
/*     written permission of Koninklijke Philips Electronics N.V.           */
/*==========================================================================*/
/********************************************************
 * File : mv_spc.c
 * 
 * Device version : P1284_133_MOD_ID 
 * 
 * Generated by GADGET, version 1.41 
 * 
 * Options : -v -i 
 * 
 * Copyright Philips Semiconductors B.V. 
 *******************************************************/
#include "mv_drvl.h"		/* Driver local header file */
#include "mv_drv.h"		/* Driver type definitions */
#include "mv_xs.h"		/* Driver access  header file */
#include "mv_spc.h"		/* Driver special functions header file */



/* Put in this file the special functions needed. */

#ifndef EMBEDDED
#  ifndef MV_IO_MAPPED
#    ifdef _REGISTER_LOG_

#define LONG_REGISTER_LSB 0xf

MV_REG_TYPE 
MV_READ_REG(MV_REG_TYPE in_reg, char in_tab[256])
{
  fprintf(GV_reg_log_file_ptr,"%d R %s %x %#x\n",GV_reg_log,in_tab,LONG_REGISTER_LSB,in_reg);
  return(in_reg);
}


void 
MV_WRITE_REG(MV_REG_TYPE *ou_reg_ptr, MV_REG_TYPE in_value, char in_tab[256])
{
   char video_int_clear_string[256] = "video_int_clear";
   char video_event_clear_string[256] = "video_event_clear";
   char fbm_event_clear_string[256] = "fbm_event_clear";
      
  *ou_reg_ptr = in_value;
  fprintf(GV_reg_log_file_ptr,"%d W %s %#x %x \n",GV_reg_log,in_tab,in_value,LONG_REGISTER_LSB);

  
  /* RESET of the interrupt bit of video_int_status */
  if(strcmp(in_tab,video_int_clear_string) == 0)
  {
     if(in_value != 0)
     {
        GV_reg_log = 0;
        MV_drv_set_video_int_status( MV_drv_video_int_status() & (!MV_drv_video_int_clear()) );
        MV_drv_set_video_int_clear(0);
        GV_reg_log = 1;       
     }
  }
  /* RESET of the interrupt bit of fbm_event */
  if(strcmp(in_tab,fbm_event_clear_string) == 0)
  {
     if(in_value != 0)
     {
        GV_reg_log = 0;
        MV_drv_set_fbm_event( MV_drv_fbm_event() & (!MV_drv_fbm_event_clear()) );
        MV_drv_set_fbm_event_clear(0);
        GV_reg_log = 1;       
     }
  }
  /* RESET of the interrupt bit of video_event */
  if(strcmp(in_tab,video_event_clear_string) == 0)
  {
     if(in_value != 0)
     {
        GV_reg_log = 0;
        MV_drv_set_video_event( MV_drv_video_event() & (!MV_drv_video_event_clear()) );
        MV_drv_set_video_event_clear(0);
        GV_reg_log = 1;       
     }
  }
  
}
#    endif /* (_REGISTER_LOG_) */
#  endif /* (NO MV_IO_MAPPED) */
#endif /* (EMBEDDED) */


/* Put in this file the special functions needed. */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -