kitl_cfg.h

来自「该BSP是基于PXA270+WINCE的BSP」· C头文件 代码 · 共 72 行

H
72
字号
//
// 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.
//
#ifndef __KITL_CFG_H
#define __KITL_CFG_H

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

OAL_KITL_ETH_DRIVER g_kitlEthSMSC91C111 = OAL_ETHDRV_LAN91C;
OAL_KITL_ETH_DRIVER g_kitlEthNE2000     = OAL_ETHDRV_NE2000;

#ifdef BSP_RNDIS_USB_KITL

VOID   PXA27X_RndisPowerOff();
VOID   PXA27X_RndisPowerOn();

#define OAL_ETHDRV_RNDIS_PXA27X    { \
    (OAL_KITLETH_INIT)HostMiniInit, \
    NULL, \
    NULL, \
    (OAL_KITLETH_SEND_FRAME)RndisEDbgSendFrame, \
    RndisEDbgGetFrame, \
    RndisEnableInts, \
    RndisDisableInts, \
    PXA27X_RndisPowerOff, \
    PXA27X_RndisPowerOn, \
    (OAL_KITLETH_CURRENT_PACKET_FILTER)RndisCurrentPacketFilter, \
    (OAL_KITLETH_MULTICAST_LIST)RndisMulticastList \
}

OAL_KITL_ETH_DRIVER g_kitlEthUsbRndis   = OAL_ETHDRV_RNDIS_PXA27X;

#endif

OAL_KITL_DEVICE g_kitlDevices[] = {
    { 
//------------------
//      L"SMSC91C111", Internal, (MAINSTONEII_BASE_REG_PA_SMSC_ETHERNET + 0x300), 0, OAL_KITL_TYPE_ETH, 
        L"SMSC91C111", Internal, (MAINSTONEII_BASE_REG_PA_SMSC_ETHERNET  ), 0, OAL_KITL_TYPE_ETH, 
//------------------
        &g_kitlEthSMSC91C111
    },
    { 
        L"NE2000_PCCARD", Internal, (BULVERDE_BASE_REG_PA_PCMCIA_S0_IO + 0x300), 0, OAL_KITL_TYPE_ETH, 
        &g_kitlEthNE2000
    },
    { 
        L"NE2000_PCCARD", Internal, (BULVERDE_BASE_REG_PA_PCMCIA_S1_IO + 0x300), 0, OAL_KITL_TYPE_ETH, 
        &g_kitlEthNE2000
    },
#ifdef BSP_RNDIS_USB_KITL
    {
        L"USB_RNDIS", Internal, BULVERDE_BASE_REG_PA_UDC, 0, OAL_KITL_TYPE_ETH,
        &g_kitlEthUsbRndis
    },
#endif
    {
        NULL, 0, 0, 0, 0, NULL
    }
};    

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

#endif

⌨️ 快捷键说明

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