From 2b59fcd5b3d446ec2f509a68fda24dce62d4c8d3 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Wed, 15 Jun 2011 18:51:30 +0000 Subject: 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 --- InOsEmuPkg/Include/Protocol/EmuSnp.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'InOsEmuPkg/Include/Protocol') 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 + #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 ); /** -- cgit v1.2.3