+++ /dev/null
-/*++\r
-\r
-Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-Module Name:\r
-\r
- Arp.h\r
-\r
-Abstract:\r
-\r
- UEFI Arp protocol definition.\r
-\r
---*/\r
-\r
-#ifndef _ARP_H_\r
-#define _ARP_H_\r
-\r
-#include EFI_PROTOCOL_DEFINITION (ServiceBinding)\r
-\r
-#define EFI_ARP_SERVICE_BINDING_PROTOCOL_GUID \\r
- { 0xf44c00ee, 0x1f2c, 0x4a00, {0xaa, 0x9, 0x1c, 0x9f, 0x3e, 0x8, 0x0, 0xa3} }\r
-\r
-#define EFI_ARP_PROTOCOL_GUID \\r
- { 0xf4b427bb, 0xba21, 0x4f16, {0xbc, 0x4e, 0x43, 0xe4, 0x16, 0xab, 0x61, 0x9c} }\r
-\r
-EFI_FORWARD_DECLARATION (EFI_ARP_PROTOCOL);\r
-\r
-typedef struct _EFI_ARP_FIND_DATA {\r
-UINT32 Size;\r
-BOOLEAN DenyFlag;\r
-BOOLEAN StaticFlag;\r
-UINT16 HwAddressType;\r
-UINT16 SwAddressType;\r
-UINT8 HwAddressLength;\r
-UINT8 SwAddressLength;\r
-} EFI_ARP_FIND_DATA;\r
-\r
-\r
-//****************************************************\r
-// EFI_ARP_CONFIG_DATA\r
-//****************************************************\r
-typedef struct EFI_ARP_CONFIG_DATA {\r
- UINT16 SwAddressType; // Host byte order\r
- UINT8 SwAddressLength;\r
- VOID *StationAddress; // Network byte order\r
- UINT32 EntryTimeOut;\r
- UINT32 RetryCount;\r
- UINT32 RetryTimeOut;\r
-} EFI_ARP_CONFIG_DATA;\r
-\r
-\r
-typedef \r
-EFI_STATUS\r
-(EFIAPI *EFI_ARP_CONFIGURE) (\r
- IN EFI_ARP_PROTOCOL *This,\r
- IN EFI_ARP_CONFIG_DATA *ConfigData OPTIONAL\r
- );\r
-\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_ARP_ADD) (\r
- IN EFI_ARP_PROTOCOL *This,\r
- IN BOOLEAN DenyFlag,\r
- IN VOID *TargetSwAddress OPTIONAL,\r
- IN VOID *TargetHwAddress OPTIONAL,\r
- IN UINT32 TimeoutValue,\r
- IN BOOLEAN Overwrite\r
- );\r
-\r
-typedef \r
-EFI_STATUS\r
-(EFIAPI *EFI_ARP_FIND) (\r
- IN EFI_ARP_PROTOCOL *This,\r
- IN BOOLEAN BySwAddress,\r
- IN VOID *AddressBuffer OPTIONAL,\r
- OUT UINT32 *EntryLength OPTIONAL,\r
- OUT UINT32 *EntryCount OPTIONAL,\r
- OUT EFI_ARP_FIND_DATA **Entries OPTIONAL,\r
- IN BOOLEAN Refresh\r
-);\r
-\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_ARP_DELETE) (\r
- IN EFI_ARP_PROTOCOL *This,\r
- IN BOOLEAN BySwAddress,\r
- IN VOID *AddressBuffer OPTIONAL\r
- );\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_ARP_FLUSH) (\r
- IN EFI_ARP_PROTOCOL *This\r
- );\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_ARP_REQUEST) (\r
- IN EFI_ARP_PROTOCOL *This, \r
- IN VOID *TargetSwAddress OPTIONAL,\r
- IN EFI_EVENT ResolvedEvent OPTIONAL,\r
- OUT VOID *TargetHwAddress \r
- );\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_ARP_CANCEL) (\r
-IN EFI_ARP_PROTOCOL *This, \r
-IN VOID *TargetSwAddress OPTIONAL,\r
-IN EFI_EVENT ResolvedEvent OPTIONAL\r
-);\r
-\r
-struct _EFI_ARP_PROTOCOL {\r
- EFI_ARP_CONFIGURE Configure;\r
- EFI_ARP_ADD Add;\r
- EFI_ARP_FIND Find;\r
- EFI_ARP_DELETE Delete;\r
- EFI_ARP_FLUSH Flush;\r
- EFI_ARP_REQUEST Request;\r
- EFI_ARP_CANCEL Cancel;\r
-};\r
-\r
-\r
-extern EFI_GUID gEfiArpServiceBindingProtocolGuid;\r
-extern EFI_GUID gEfiArpProtocolGuid;\r
-\r
-#endif\r