Add in the 1st version of ECP.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2832 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*++
|
||||
|
||||
Copyright (c) 2004 - 2006, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
WinNtIo.c
|
||||
|
||||
Abstract:
|
||||
|
||||
This protocol allows an EFI driver (DLL) in the NT emulation envirnment
|
||||
to make Win32 API calls.
|
||||
|
||||
--*/
|
||||
|
||||
#include "EfiWinNt.h"
|
||||
#include EFI_PROTOCOL_DEFINITION (WinNtIo)
|
||||
|
||||
EFI_GUID gEfiWinNtIoProtocolGuid = EFI_WIN_NT_IO_PROTOCOL_GUID;
|
||||
|
||||
EFI_GUID_STRING(&gEfiWinNtIoProtocolGuid, "EFI Win NT I/O Protocol", "Win32 API I/O protocol");
|
||||
|
||||
EFI_GUID gEfiWinNtVirtualDisksGuid = EFI_WIN_NT_VIRTUAL_DISKS_GUID;
|
||||
EFI_GUID gEfiWinNtPhysicalDisksGuid = EFI_WIN_NT_PHYSICAL_DISKS_GUID;
|
||||
EFI_GUID gEfiWinNtFileSystemGuid = EFI_WIN_NT_FILE_SYSTEM_GUID;
|
||||
EFI_GUID gEfiWinNtSerialPortGuid = EFI_WIN_NT_SERIAL_PORT_GUID;
|
||||
EFI_GUID gEfiWinNtUgaGuid = EFI_WIN_NT_UGA_GUID;
|
||||
EFI_GUID gEfiWinNtGopGuid = EFI_WIN_NT_GOP_GUID;
|
||||
EFI_GUID gEfiWinNtConsoleGuid = EFI_WIN_NT_CONSOLE_GUID;
|
||||
EFI_GUID gEfiWinNtMemoryGuid = EFI_WIN_NT_MEMORY_GUID;
|
||||
EFI_GUID gEfiWinNtCPUModelGuid = EFI_WIN_NT_CPU_MODEL_GUID;
|
||||
EFI_GUID gEfiWinNtCPUSpeedGuid = EFI_WIN_NT_CPU_SPEED_GUID;
|
||||
EFI_GUID gEfiWinNtPassThroughGuid = EFI_WIN_NT_PASS_THROUGH_GUID;
|
@@ -0,0 +1,163 @@
|
||||
/*++
|
||||
|
||||
Copyright (c) 2004 - 2006, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
WinNtIo.h
|
||||
|
||||
Abstract:
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef _WIN_NT_IO_H_
|
||||
#define _WIN_NT_IO_H_
|
||||
|
||||
#define EFI_WIN_NT_IO_PROTOCOL_GUID \
|
||||
{ \
|
||||
0x96eb4ad6, 0xa32a, 0x11d4, 0xbc, 0xfd, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
//
|
||||
// The following APIs require EfiWinNT.h. In some environmnets the GUID
|
||||
// definitions are needed but the EfiWinNT.h is not included.
|
||||
// EfiWinNT.h is needed to support WINDOWS API requirements.
|
||||
//
|
||||
#ifdef _EFI_WIN_NT_H_
|
||||
|
||||
#include EFI_PROTOCOL_DEFINITION (WinNtThunk)
|
||||
|
||||
typedef struct {
|
||||
EFI_WIN_NT_THUNK_PROTOCOL *WinNtThunk;
|
||||
EFI_GUID *TypeGuid;
|
||||
CHAR16 *EnvString;
|
||||
UINT16 InstanceNumber;
|
||||
} EFI_WIN_NT_IO_PROTOCOL;
|
||||
|
||||
#endif
|
||||
|
||||
extern EFI_GUID gEfiWinNtIoProtocolGuid;
|
||||
|
||||
//
|
||||
// The following GUIDs are used in EFI_WIN_NT_IO_PROTOCOL_GUID
|
||||
// Device paths. They map 1:1 with NT envirnment variables. The variables
|
||||
// define what virtual hardware the emulator/WinNtBusDriver will produce.
|
||||
//
|
||||
//
|
||||
// EFI_WIN_NT_VIRTUAL_DISKS
|
||||
//
|
||||
#define EFI_WIN_NT_VIRTUAL_DISKS_GUID \
|
||||
{ \
|
||||
0xc95a928, 0xa006, 0x11d4, 0xbc, 0xfa, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtVirtualDisksGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_PHYSICAL_DISKS
|
||||
//
|
||||
#define EFI_WIN_NT_PHYSICAL_DISKS_GUID \
|
||||
{ \
|
||||
0xc95a92f, 0xa006, 0x11d4, 0xbc, 0xfa, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtPhysicalDisksGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_FILE_SYSTEM
|
||||
//
|
||||
#define EFI_WIN_NT_FILE_SYSTEM_GUID \
|
||||
{ \
|
||||
0xc95a935, 0xa006, 0x11d4, 0xbc, 0xfa, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtFileSystemGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_SERIAL_PORT
|
||||
//
|
||||
#define EFI_WIN_NT_SERIAL_PORT_GUID \
|
||||
{ \
|
||||
0xc95a93d, 0xa006, 0x11d4, 0xbc, 0xfa, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtSerialPortGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_UGA
|
||||
//
|
||||
#define EFI_WIN_NT_UGA_GUID \
|
||||
{ \
|
||||
0xab248e99, 0xabe1, 0x11d4, 0xbd, 0xd, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtUgaGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_GOP
|
||||
//
|
||||
#define EFI_WIN_NT_GOP_GUID \
|
||||
{ \
|
||||
0x4e11e955, 0xccca, 0x11d4, 0xbd, 0xd, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtGopGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_CONSOLE
|
||||
//
|
||||
#define EFI_WIN_NT_CONSOLE_GUID \
|
||||
{ \
|
||||
0xba73672c, 0xa5d3, 0x11d4, 0xbd, 0x0, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtConsoleGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_MEMORY
|
||||
//
|
||||
#define EFI_WIN_NT_MEMORY_GUID \
|
||||
{ \
|
||||
0x99042912, 0x122a, 0x11d4, 0xbd, 0xd, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtMemoryGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_CPU_MODEL
|
||||
//
|
||||
#define EFI_WIN_NT_CPU_MODEL_GUID \
|
||||
{ \
|
||||
0xbee9b6ce, 0x2f8a, 0x11d4, 0xbd, 0xd, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtCPUModelGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_CPU_SPEED
|
||||
//
|
||||
#define EFI_WIN_NT_CPU_SPEED_GUID \
|
||||
{ \
|
||||
0xd4f29055, 0xe1fb, 0x11d4, 0xbd, 0xd, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtCPUSpeedGuid;
|
||||
|
||||
//
|
||||
// EFI_WIN_NT_PASS_THROUGH
|
||||
//
|
||||
#define EFI_WIN_NT_PASS_THROUGH_GUID \
|
||||
{ \
|
||||
0xcc664eb8, 0x3c24, 0x4086, 0xb6, 0xf6, 0x34, 0xe8, 0x56, 0xbc, 0xe3, 0x6e \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiWinNtPassThroughGuid;
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user