📄 pcmcia.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: pcmcia.c
//
#include <windows.h>
#include <ceddk.h>
#include <oal.h>
#include <au1.h>
//------------------------------------------------------------------------------
BOOL OALPCMCIATransBusAddress(
UINT32 busNumber, UINT64 busAddress, UINT32 *pAddressSpace,
UINT64 *pSystemAddress
) {
BOOL rc = FALSE;
OALMSG(OAL_PCI&&OAL_FUNC, (
L"+OALPCMCIATranslateBusAddress(%d, 0x%08x%08x, %d)\r\n",
busNumber, (UINT32)(busAddress >> 32), (UINT32)busAddress,
*pAddressSpace
));
if (pAddressSpace == NULL || pSystemAddress == NULL) goto cleanUp;
// PCCard implementation doesn't uses address space
*pSystemAddress = AU1_PCMCIA_IO_REGS_PA + busAddress;
*pAddressSpace = 0;
rc = TRUE;
cleanUp:
OALMSG(OAL_PCI&&OAL_FUNC, (
L"-OALPCMCIATranslateBusAddress(addressSpace = %d, "
L"systemAddress = 0x%08x%08x, rc = %d)\r\n", *pAddressSpace,
(UINT32)(*pSystemAddress >> 32), (UINT32)*pSystemAddress, rc
));
return rc;
}
//------------------------------------------------------------------------------
VOID OALPCMCIAPowerOff(UINT32 busId)
{
}
//------------------------------------------------------------------------------
VOID OALPCMCIAPowerOn(UINT32 busId)
{
}
//------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -