/*++\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
snp.h\r
\r
#include "IndustryStandard/pci22.h"\r
\r
-#define SNP_DEBUG 0\r
#define FOUR_GIGABYTES (UINT64) 0x100000000ULL\r
\r
-#if SNP_DEBUG\r
-#undef D_NET\r
-#define D_NET D_WARN\r
-#define SNP_PRINT(DebugInfo) Print (DebugInfo)\r
-#else\r
-#define SNP_PRINT(DebugInfo)\r
-#endif\r
-\r
#define SNP_DRIVER_SIGNATURE EFI_SIGNATURE_32 ('s', 'n', 'd', 's')\r
#define MAX_MAP_LENGTH 100\r
\r
extern EFI_COMPONENT_NAME_PROTOCOL gSimpleNetworkComponentName;\r
extern EFI_DRIVER_BINDING_PROTOCOL gSimpleNetworkDriverBinding;\r
\r
+extern EFI_PCI_IO_PROTOCOL *mPciIoFncs;\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+SimpleNetworkComponentNameGetDriverName (\r
+ IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
+ IN CHAR8 *Language,\r
+ OUT CHAR16 **DriverName\r
+ );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+SimpleNetworkComponentNameGetControllerName (\r
+ IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
+ IN EFI_HANDLE ControllerHandle,\r
+ IN EFI_HANDLE ChildHandle OPTIONAL,\r
+ IN CHAR8 *Language,\r
+ OUT CHAR16 **ControllerName\r
+ );\r
+\r
//\r
// Virtual to physical mapping for all UNDI 3.0s.\r
//\r
)\r
;\r
\r
+VOID\r
+EFIAPI\r
+SnpWaitForPacketNotify (\r
+ IN EFI_EVENT Event,\r
+ IN VOID *SnpPtr\r
+ );\r
+\r
+EFI_STATUS\r
+pxe_start (\r
+ SNP_DRIVER *snp\r
+ );\r
+\r
+EFI_STATUS\r
+pxe_stop (\r
+ SNP_DRIVER *snp\r
+ );\r
+\r
+EFI_STATUS\r
+pxe_init (\r
+ SNP_DRIVER *snp,\r
+ UINT16 OpFlags\r
+ );\r
+\r
+EFI_STATUS\r
+pxe_shutdown (\r
+ SNP_DRIVER *snp\r
+ );\r
+\r
+EFI_STATUS\r
+pxe_get_stn_addr (\r
+ SNP_DRIVER *snp\r
+ );\r
+\r
typedef\r
EFI_STATUS\r
(*issue_undi32_command) (\r
UINT64 cdb\r
);\r
+\r
typedef\r
VOID\r
(*ptr) (\r
\r
#define SNP_MEM_PAGES(x) (((x) - 1) / 4096 + 1)\r
\r
-#if SNP_DEBUG\r
-extern\r
-VOID\r
-snp_wait_for_key (\r
- VOID\r
- )\r
-;\r
-#endif\r
-\r
#endif /* _SNP_H */\r