mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-22 21:24:35 +02:00
Update NT32 emulation platform to produce dummy CPU I/O 2 Protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9528 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6741aad96b
commit
b8d5cb491e
@ -525,7 +525,7 @@ Returns:
|
|||||||
Status = gBS->InstallMultipleProtocolInterfaces (
|
Status = gBS->InstallMultipleProtocolInterfaces (
|
||||||
&mCpuTemplate.Handle,
|
&mCpuTemplate.Handle,
|
||||||
&gEfiCpuArchProtocolGuid, &mCpuTemplate.Cpu,
|
&gEfiCpuArchProtocolGuid, &mCpuTemplate.Cpu,
|
||||||
&gEfiCpuIoProtocolGuid, &mCpuTemplate.CpuIo,
|
&gEfiCpuIo2ProtocolGuid, &mCpuTemplate.CpuIo,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
@ -29,7 +29,7 @@ Abstract:
|
|||||||
#include <Protocol/Smbios.h>
|
#include <Protocol/Smbios.h>
|
||||||
#include <Protocol/FrameworkHii.h>
|
#include <Protocol/FrameworkHii.h>
|
||||||
#include <Guid/DataHubRecords.h>
|
#include <Guid/DataHubRecords.h>
|
||||||
#include <Protocol/CpuIo.h>
|
#include <Protocol/CpuIo2.h>
|
||||||
#include <Protocol/WinNtIo.h>
|
#include <Protocol/WinNtIo.h>
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
@ -53,7 +53,7 @@ typedef struct {
|
|||||||
EFI_HANDLE Handle;
|
EFI_HANDLE Handle;
|
||||||
|
|
||||||
EFI_CPU_ARCH_PROTOCOL Cpu;
|
EFI_CPU_ARCH_PROTOCOL Cpu;
|
||||||
EFI_CPU_IO_PROTOCOL CpuIo;
|
EFI_CPU_IO2_PROTOCOL CpuIo;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Local Data for CPU interface goes here
|
// Local Data for CPU interface goes here
|
||||||
@ -73,7 +73,7 @@ typedef struct {
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuMemoryServiceRead (
|
CpuMemoryServiceRead (
|
||||||
IN EFI_CPU_IO_PROTOCOL *This,
|
IN EFI_CPU_IO2_PROTOCOL *This,
|
||||||
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
@ -83,7 +83,7 @@ CpuMemoryServiceRead (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuMemoryServiceWrite (
|
CpuMemoryServiceWrite (
|
||||||
IN EFI_CPU_IO_PROTOCOL *This,
|
IN EFI_CPU_IO2_PROTOCOL *This,
|
||||||
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
@ -93,7 +93,7 @@ CpuMemoryServiceWrite (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuIoServiceRead (
|
CpuIoServiceRead (
|
||||||
IN EFI_CPU_IO_PROTOCOL *This,
|
IN EFI_CPU_IO2_PROTOCOL *This,
|
||||||
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINT64 UserAddress,
|
IN UINT64 UserAddress,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
@ -103,7 +103,7 @@ CpuIoServiceRead (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuIoServiceWrite (
|
CpuIoServiceWrite (
|
||||||
IN EFI_CPU_IO_PROTOCOL *This,
|
IN EFI_CPU_IO2_PROTOCOL *This,
|
||||||
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINT64 UserAddress,
|
IN UINT64 UserAddress,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**@file
|
/**@file
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2009, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -28,8 +28,6 @@ Abstract:
|
|||||||
#define IA32_MAX_IO_ADDRESS 0xFFFF
|
#define IA32_MAX_IO_ADDRESS 0xFFFF
|
||||||
#define IA32_MAX_MEM_ADDRESS 0xFFFFFFFF
|
#define IA32_MAX_MEM_ADDRESS 0xFFFFFFFF
|
||||||
|
|
||||||
EFI_CPU_IO_PROTOCOL mCpuIoProtocol;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CpuIoCheckAddressRange (
|
CpuIoCheckAddressRange (
|
||||||
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
||||||
@ -42,7 +40,7 @@ CpuIoCheckAddressRange (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuMemoryServiceRead (
|
CpuMemoryServiceRead (
|
||||||
IN EFI_CPU_IO_PROTOCOL *This,
|
IN EFI_CPU_IO2_PROTOCOL *This,
|
||||||
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
@ -97,7 +95,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuMemoryServiceWrite (
|
CpuMemoryServiceWrite (
|
||||||
IN EFI_CPU_IO_PROTOCOL *This,
|
IN EFI_CPU_IO2_PROTOCOL *This,
|
||||||
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
@ -151,7 +149,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuIoServiceRead (
|
CpuIoServiceRead (
|
||||||
IN EFI_CPU_IO_PROTOCOL *This,
|
IN EFI_CPU_IO2_PROTOCOL *This,
|
||||||
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINT64 UserAddress,
|
IN UINT64 UserAddress,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
@ -212,7 +210,7 @@ Returns:
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuIoServiceWrite (
|
CpuIoServiceWrite (
|
||||||
IN EFI_CPU_IO_PROTOCOL *This,
|
IN EFI_CPU_IO2_PROTOCOL *This,
|
||||||
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
IN EFI_CPU_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINT64 UserAddress,
|
IN UINT64 UserAddress,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
gEfiWinNtIoProtocolGuid # PROTOCOL_NOTIFY SOMETIMES_CONSUMED
|
gEfiWinNtIoProtocolGuid # PROTOCOL_NOTIFY SOMETIMES_CONSUMED
|
||||||
gEfiSmbiosProtocolGuid # PROTOCOL SOMETIMES_CONSUMED
|
gEfiSmbiosProtocolGuid # PROTOCOL SOMETIMES_CONSUMED
|
||||||
gEfiWinNtIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
gEfiWinNtIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||||
gEfiCpuIoProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
gEfiCpuIo2ProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
||||||
gEfiCpuArchProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
gEfiCpuArchProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user