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
This commit is contained in:
andrewfish
2011-06-15 18:51:30 +00:00
parent a0aab286ec
commit 2b59fcd5b3
11 changed files with 2270 additions and 61 deletions

View File

@@ -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
);
/**