diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-15 18:51:30 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-15 18:51:30 +0000 |
commit | 2b59fcd5b3d446ec2f509a68fda24dce62d4c8d3 (patch) | |
tree | 274c6b7f65498c273e56807fb8be697f6e175b6f /InOsEmuPkg/Include/Protocol | |
parent | a0aab286ece15e829114d6ba9a9b07ea92f691e6 (diff) | |
download | edk2-platforms-2b59fcd5b3d446ec2f509a68fda24dce62d4c8d3.tar.xz |
InOsEmuPkg: Update code to support BerkeleyPacketFilter, and add a template for LinuxPacketFilter.
BerkelyPacketFilter seems to work. Some one else will need to use the BerkeleyPacketFilter as a template and implement the LinuxPacketFilter. I don't think it will be that hard, as they are simular.
Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11828 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'InOsEmuPkg/Include/Protocol')
-rw-r--r-- | InOsEmuPkg/Include/Protocol/EmuSnp.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/InOsEmuPkg/Include/Protocol/EmuSnp.h b/InOsEmuPkg/Include/Protocol/EmuSnp.h index 2659c50862..fc8e24cfde 100644 --- a/InOsEmuPkg/Include/Protocol/EmuSnp.h +++ b/InOsEmuPkg/Include/Protocol/EmuSnp.h @@ -18,6 +18,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #ifndef __EMU_SNP_H__
#define __EMU_SNP_H__
+#include <Protocol/SimpleNetwork.h>
+
#define EMU_SNP_PROTOCOL_GUID \
{ 0xFD5FBE54, 0x8C35, 0xB345, { 0x8A, 0x0F, 0x7A, 0xC8, 0xA5, 0xFD, 0x05, 0x21 } }
@@ -25,13 +27,12 @@ typedef struct _EMU_SNP_PROTOCOL EMU_SNP_PROTOCOL; /**
- Changes the state of a network interface from "stopped" to "started".
+ Register storage for SNP Mode.
@param This Protocol instance pointer.
@param Mode SimpleNetworkProtocol Mode structure passed into driver.
@retval EFI_SUCCESS The network interface was started.
- @retval EFI_ALREADY_STARTED The network interface is already mapped.
@retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
**/
@@ -109,8 +110,8 @@ typedef EFI_STATUS
(EFIAPI *EMU_SNP_INITIALIZE)(
IN EMU_SNP_PROTOCOL *This,
- IN UINTN ExtraRxBufferSize OPTIONAL,
- IN UINTN ExtraTxBufferSize OPTIONAL
+ IN UINTN ExtraRxBufferSize OPTIONAL,
+ IN UINTN ExtraTxBufferSize OPTIONAL
);
/**
@@ -133,7 +134,7 @@ typedef EFI_STATUS
(EFIAPI *EMU_SNP_RESET)(
IN EMU_SNP_PROTOCOL *This,
- IN BOOLEAN ExtendedVerification
+ IN BOOLEAN ExtendedVerification
);
/**
@@ -183,11 +184,11 @@ typedef EFI_STATUS
(EFIAPI *EMU_SNP_RECEIVE_FILTERS)(
IN EMU_SNP_PROTOCOL *This,
- IN UINT32 Enable,
- IN UINT32 Disable,
- IN BOOLEAN ResetMCastFilter,
- IN UINTN MCastFilterCnt OPTIONAL,
- IN EFI_MAC_ADDRESS *MCastFilter OPTIONAL
+ IN UINT32 Enable,
+ IN UINT32 Disable,
+ IN BOOLEAN ResetMCastFilter,
+ IN UINTN MCastFilterCnt OPTIONAL,
+ IN EFI_MAC_ADDRESS *MCastFilter OPTIONAL
);
/**
@@ -209,8 +210,8 @@ typedef EFI_STATUS
(EFIAPI *EMU_SNP_STATION_ADDRESS)(
IN EMU_SNP_PROTOCOL *This,
- IN BOOLEAN Reset,
- IN EFI_MAC_ADDRESS *New OPTIONAL
+ IN BOOLEAN Reset,
+ IN EFI_MAC_ADDRESS *New OPTIONAL
);
/**
|