summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg/Win/Host/WinHost.h
diff options
context:
space:
mode:
authorNickle Wang <nickle.wang@hpe.com>2020-04-09 11:20:39 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-06-04 08:41:07 +0000
commitbb78cfbec07eda45118b630a09b0af549b43a135 (patch)
tree2442addca3afae0b371cfc68ba2fdea5312efef9 /EmulatorPkg/Win/Host/WinHost.h
parent68d720fd92bbdbbfae5adee02d6d9fd24ca38f30 (diff)
downloadedk2-bb78cfbec07eda45118b630a09b0af549b43a135.tar.gz
edk2-bb78cfbec07eda45118b630a09b0af549b43a135.tar.bz2
edk2-bb78cfbec07eda45118b630a09b0af549b43a135.zip
EmulatorPkg/WinHost: Enable network support.
Follow the implementation from Unix host to implement SNP EMU_IO_THUNK_PROTOCOL and EMU_SNP_PROTOCOL. The network IO driver is the same one as Nt32. Please refer to NETWORK-IO Subproject for network Io driver(SnpNt32Io.dll). Signed-off-by: Nickle Wang <nickle.wang@hpe.com> Signed-off-by: Derek Lin <derek.lin2@hpe.com> Acked-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'EmulatorPkg/Win/Host/WinHost.h')
-rw-r--r--EmulatorPkg/Win/Host/WinHost.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/EmulatorPkg/Win/Host/WinHost.h b/EmulatorPkg/Win/Host/WinHost.h
index 0e52c003fc..b36fea254e 100644
--- a/EmulatorPkg/Win/Host/WinHost.h
+++ b/EmulatorPkg/Win/Host/WinHost.h
@@ -1,6 +1,7 @@
/**@file
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -29,6 +30,7 @@ Abstract:
#include <Protocol/EmuBlockIo.h>
#include <Protocol/BlockIo.h>
+#include <Protocol/EmuSnp.h>
#include <Library/BaseLib.h>
#include <Library/PeCoffLib.h>
@@ -41,6 +43,7 @@ Abstract:
#include <Library/BaseMemoryLib.h>
#include <Library/PeiServicesLib.h>
#include <Library/PeCoffExtraActionLib.h>
+#include <Library/NetLib.h>
#define TEMPORARY_RAM_SIZE 0x20000
@@ -200,4 +203,6 @@ extern EMU_THUNK_PROTOCOL gEmuThunkProtocol;
extern EMU_IO_THUNK_PROTOCOL mWinNtWndThunkIo;
extern EMU_IO_THUNK_PROTOCOL mWinNtFileSystemThunkIo;
extern EMU_IO_THUNK_PROTOCOL mWinNtBlockIoThunkIo;
+extern EMU_IO_THUNK_PROTOCOL mWinNtSnpThunkIo;
+
#endif