]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.h
MdeModulePkg: Move IsaBusDxe driver to MdeModulePkg.
[mirror_edk2.git] / MdeModulePkg / Bus / Isa / IsaBusDxe / IsaBusDxe.h
diff --git a/MdeModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.h b/MdeModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.h
new file mode 100644 (file)
index 0000000..86f6f56
--- /dev/null
@@ -0,0 +1,46 @@
+/** @file\r
+  Header file for the ISA BUS driver.\r
+\r
+  Copyright (c) 2015, 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
+\r
+**/\r
+\r
+#ifndef _ISA_BUS_H_\r
+#define _ISA_BUS_H_\r
+\r
+#include <Uefi.h>\r
+#include <Protocol/IsaHc.h>\r
+#include <Library/UefiLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/DevicePathLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
+#include <Protocol/DevicePath.h>\r
+#include <Protocol/ServiceBinding.h>\r
+\r
+typedef struct {\r
+  UINT32                          Signature;\r
+  EFI_SERVICE_BINDING_PROTOCOL    ServiceBinding;\r
+  EFI_ISA_HC_PROTOCOL             *IsaHc;       ///< ISA HC protocol produced by the ISA Host Controller driver\r
+  EFI_HANDLE                      IsaHcHandle;  ///< ISA HC handle created by the ISA Host Controller driver\r
+} ISA_BUS_PRIVATE_DATA;\r
+#define ISA_BUS_PRIVATE_DATA_SIGNATURE    SIGNATURE_32 ('_', 'i', 's', 'b')\r
+#define ISA_BUS_PRIVATE_DATA_FROM_THIS(a) CR (a, ISA_BUS_PRIVATE_DATA, ServiceBinding, ISA_BUS_PRIVATE_DATA_SIGNATURE)\r
+\r
+typedef struct {\r
+  UINT32                          Signature;\r
+  BOOLEAN                         InDestroying; ///< Flag to avoid DestroyChild() re-entry.\r
+} ISA_BUS_CHILD_PRIVATE_DATA;\r
+#define ISA_BUS_CHILD_PRIVATE_DATA_SIGNATURE    SIGNATURE_32 ('_', 'i', 's', 'c')\r
+\r
+extern EFI_DRIVER_BINDING_PROTOCOL gIsaBusDriverBinding;\r
+\r
+#endif\r