]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.h
MdeModulePkg/AtaAtapiPassThru: Revert patch to disable Bus Master
[mirror_edk2.git] / MdeModulePkg / Bus / Isa / IsaBusDxe / IsaBusDxe.h
... / ...
CommitLineData
1/** @file\r
2 Header file for the ISA BUS driver.\r
3\r
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13\r
14**/\r
15\r
16#ifndef _ISA_BUS_H_\r
17#define _ISA_BUS_H_\r
18\r
19#include <Uefi.h>\r
20#include <Protocol/IsaHc.h>\r
21#include <Library/UefiLib.h>\r
22#include <Library/UefiBootServicesTableLib.h>\r
23#include <Library/DebugLib.h>\r
24#include <Library/DevicePathLib.h>\r
25#include <Library/MemoryAllocationLib.h>\r
26#include <Protocol/DevicePath.h>\r
27#include <Protocol/ServiceBinding.h>\r
28\r
29typedef struct {\r
30 UINT32 Signature;\r
31 EFI_SERVICE_BINDING_PROTOCOL ServiceBinding;\r
32 EFI_ISA_HC_PROTOCOL *IsaHc; ///< ISA HC protocol produced by the ISA Host Controller driver\r
33 EFI_HANDLE IsaHcHandle; ///< ISA HC handle created by the ISA Host Controller driver\r
34} ISA_BUS_PRIVATE_DATA;\r
35#define ISA_BUS_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('_', 'i', 's', 'b')\r
36#define ISA_BUS_PRIVATE_DATA_FROM_THIS(a) CR (a, ISA_BUS_PRIVATE_DATA, ServiceBinding, ISA_BUS_PRIVATE_DATA_SIGNATURE)\r
37\r
38typedef struct {\r
39 UINT32 Signature;\r
40 BOOLEAN InDestroying; ///< Flag to avoid DestroyChild() re-entry.\r
41} ISA_BUS_CHILD_PRIVATE_DATA;\r
42#define ISA_BUS_CHILD_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('_', 'i', 's', 'c')\r
43\r
44extern EFI_DRIVER_BINDING_PROTOCOL gIsaBusDriverBinding;\r
45\r
46#endif\r