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

📄 dump_ebi.c

📁 Windows CE 6.0 BSP for VOIPAC Board (PXA270) Version 2b.
💻 C
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
//------------------------------------------------------------------------------
//
//  File:  dump_ebi.c
//
#include <windows.h>
#include <ceddk.h>
#include <oal.h>
#include <bcm11.h>

//------------------------------------------------------------------------------
//
//  Function:  BCM11DumpEBI
//
//  Dump EBI registers to debug output.
//
VOID BCM11DumpEBI()
{
    BCM11_EBI_REGS *pEBI = OALPAtoUA(BCM11_EBI_REGS_PA);
    
    OALLog(L"\r\n");
    OALLog(L"====== BCM11xx EBI Registers ======\r\n");

    OALLog(L" BASE_CS0              = 0x%08x\r\n", INREG32(&pEBI->BASE_CS0));
    OALLog(L" CONFIG_CS0            = 0x%08x\r\n", INREG32(&pEBI->CONFIG_CS0));
    OALLog(L" BASE_CS1              = 0x%08x\r\n", INREG32(&pEBI->BASE_CS1));
    OALLog(L" CONFIG_CS1            = 0x%08x\r\n", INREG32(&pEBI->CONFIG_CS1));
    OALLog(L" BASE_CS2              = 0x%08x\r\n", INREG32(&pEBI->BASE_CS2));
    OALLog(L" CONFIG_CS2            = 0x%08x\r\n", INREG32(&pEBI->CONFIG_CS2));
    OALLog(L" BASE_CS3              = 0x%08x\r\n", INREG32(&pEBI->BASE_CS3));
    OALLog(L" CONFIG_CS3            = 0x%08x\r\n", INREG32(&pEBI->CONFIG_CS3));
    OALLog(L" BASE_CS4              = 0x%08x\r\n", INREG32(&pEBI->BASE_CS4));
    OALLog(L" CONFIG_CS4            = 0x%08x\r\n", INREG32(&pEBI->CONFIG_CS4));
    OALLog(L" BASE_CS5              = 0x%08x\r\n", INREG32(&pEBI->BASE_CS5));
    OALLog(L" CONFIG_CS5            = 0x%08x\r\n", INREG32(&pEBI->CONFIG_CS5));
    OALLog(L" ECR                   = 0x%08x\r\n", INREG32(&pEBI->ECR));
    OALLog(L" DMA_CTRL              = 0x%08x\r\n", INREG32(&pEBI->DMA_CTRL));
    OALLog(L" DMA_RX_START          = 0x%08x\r\n", INREG32(&pEBI->DMA_RX_START));
    OALLog(L" DMA_RX_SIZE           = 0x%08x\r\n", INREG32(&pEBI->DMA_RX_SIZE));
    OALLog(L" DMA_TX_START          = 0x%08x\r\n", INREG32(&pEBI->DMA_TX_START));
    OALLog(L" DMA_TX_SIZE           = 0x%08x\r\n", INREG32(&pEBI->DMA_TX_SIZE));
    OALLog(L" DMA_STATUS            = 0x%08x\r\n", INREG32(&pEBI->DMA_STATUS));
    OALLog(L"===================================\r\n");
}

//------------------------------------------------------------------------------

⌨️ 快捷键说明

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