]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/Network/Snp32_64/Dxe/Snp.h
1. Removed #ifdef SNP_DEBUG and used debug lib to output information
[mirror_edk2.git] / EdkModulePkg / Universal / Network / Snp32_64 / Dxe / Snp.h
index 05c5a8bb92ffaa5332b181f9085a9c96b9570740..038c2e66b0765c7fd9b6c05b9ba5682e1d2f5af2 100644 (file)
@@ -1,12 +1,12 @@
 /*++\r
 /*++\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
 Module name:\r
     snp.h\r
@@ -22,17 +22,8 @@ Revision history:
 \r
 #include "IndustryStandard/pci22.h"\r
 \r
 \r
 #include "IndustryStandard/pci22.h"\r
 \r
-#define SNP_DEBUG       0\r
 #define FOUR_GIGABYTES  (UINT64) 0x100000000ULL\r
 \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
 #define SNP_DRIVER_SIGNATURE  EFI_SIGNATURE_32 ('s', 'n', 'd', 's')\r
 #define MAX_MAP_LENGTH        100\r
 \r
@@ -121,6 +112,29 @@ SNP_DRIVER;
 extern EFI_COMPONENT_NAME_PROTOCOL  gSimpleNetworkComponentName;\r
 extern EFI_DRIVER_BINDING_PROTOCOL  gSimpleNetworkDriverBinding;\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
 //  Virtual to physical mapping for all UNDI 3.0s.\r
 //\r
@@ -385,11 +399,45 @@ snp_undi32_receive (
   )\r
 ;\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
 typedef\r
 EFI_STATUS\r
 (*issue_undi32_command) (\r
   UINT64 cdb\r
   );\r
+\r
 typedef\r
 VOID\r
 (*ptr) (\r
 typedef\r
 VOID\r
 (*ptr) (\r
@@ -398,13 +446,4 @@ VOID
 \r
 #define SNP_MEM_PAGES(x)  (((x) - 1) / 4096 + 1)\r
 \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
 #endif /*  _SNP_H  */\r