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

📄 dvm.h

📁 PXA270硬件测试源代码
💻 H
字号:
/******************************************************************************
**
**  COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
**  This software as well as the software described in it is furnished under 
**  license and may only be used or copied in accordance with the terms of the 
**  license. The information in this file is furnished for informational use 
**  only, is subject to change without notice, and should not be construed as 
**  a commitment by Intel Corporation. Intel Corporation assumes no 
**  responsibility or liability for any errors or inaccuracies that may appear 
**  in this document or any software that may be provided in association with 
**  this document. 
**  Except as permitted by such license, no part of this document may be 
**  reproduced, stored in a retrieval system, or transmitted in any form or by 
**  any means without the express written consent of Intel Corporation. 
**
**  FILENAME:       dvm.h
**
**  PURPOSE:        <Module description here>
**
**  LAST MODIFIED:  $Modtime: 7/17/03 1:01p $
******************************************************************************/

#ifndef _dvm_h
#define _dvm_h

void KDvmTest(PVOID arg, PCHAR param);

void DVMInit(void);
void DVMPwrdwn(void);
UINT SetCoreVoltage(UINT16 dacValue);
XLLP_UINT32_T DvmTest(void);
void DVMSetVolt(UINT16);
void KDVMSetVolt(PVOID arg, PCHAR param);
void ComboChange(INT LMult, INT TMult, UINT16 DACValue, UINT fBus);
void KDVMSetVoltFreq(PVOID arg, PCHAR param);
void KDVMTFreqChange(PVOID arg, PCHAR param);
void ClearAllSQC(void);
void ClearAllMBC(void);
void ClearAllDCE(void);
void InitiateFcs(int, int);

#define ERR_TS_DVM               0x80
#define ERR_TS_I2C_WRITE		 0x1
#define DAC_VAL					 0x1

#define PCMDn_MBC		XLLP_BIT_12
#define PCMDn_DCE		XLLP_BIT_11
#define PCMDn_LC		XLLP_BIT_10
#define PCMDn_SQC		( XLLP_BIT_9 | XLLP_BIT_8 )
#define PCMDn_CMDDAT   	(XLLP_BIT_7 |XLLP_BIT_6 | XLLP_BIT_5|XLLP_BIT_4  \
						|XLLP_BIT_3|XLLP_BIT_2|XLLP_BIT_1|XLLP_BIT_0)



#define PCFR_FVC		XLLP_BIT_10
#define PCFR_PI2C		XLLP_BIT_6

#define CCCR_FREQM		0x1f
#define CCCR_TURBM		0x380
#define TURBO_ON		0x20
#define FASTBUS_ON		0x40
#define SDCLK_DIV		0x400
#define DAC_MASK		0xffff0000

#endif // _dvm_h

⌨️ 快捷键说明

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