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

📄 mv_drv.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_drv.c
 * 
 * Device version : P1284_133_MOD_ID 
 * 
 * Generated by GADGET, version 1.41 
 * GADGET generated by gcc version 2.95.2 19991024 (release)
 * Patched by dvp_gadget V1.1 (PERL 5.006001)
 * 
 * Options : -v -i 
 * 
 * Copyright Philips Semiconductors B.V. 
 *******************************************************/

#include <stdio.h>
#include <tmbslMgr.h>
#include "dv_dbg.h"
#include "mv_drvl.h"		/* Driver local header file */

#include "mv_drv.h"		/* Driver external function prototypes */
#include "mv_xs.h"		/* Driver access macro routines */


/*===========================================================================*/
/* Structure to hold copies of write only settings.                          */
/*===========================================================================*/
 MV_COPY_STRUCT MV_REG_COPY;
#ifdef DV_DEBUG
static char * LV_debugMsg = "\nMV_drv_init : tmbslGetModuleInfo failed\n";
#endif



/*===========================================================================*/
/* Pointer to structure overlayed over memory mapped device                  */
/*===========================================================================*/
#ifndef MV_IO_MAPPED
volatile MV_REG_STRUCT *MV_REG_PTR = 0;
#endif


/*===========================================================================*/
/* Initialisation routine                                                    */
/*===========================================================================*/
void MV_drv_init( void )
{
    tmbslModuleInfo_t lv_moduleInfo;
    tmErrorCode_t     lv_error;

    /*======================================================================*/
    /* Initialize regstruct registers                                       */
    /*======================================================================*/
    lv_error = tmbslGetModuleInfo(P1284_133_MOD_ID, tmUnit0, &lv_moduleInfo);
    if (lv_error != TM_OK)
    {
        DV_DBG_PRINT_ISR(LV_debugMsg);
    }
    MV_REG_PTR = (MV_REG_STRUCT *) lv_moduleInfo.pMmioVirtAddr;
/*===========================================================================*/
/* Initialize copystruct registers                                           */
/*===========================================================================*/
MV_REG_COPY.cmd_fbm =  (( 0 << MV_FBM_CMD_START ) & MV_FBM_CMD_MASK) ; 


}

⌨️ 快捷键说明

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