]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/AtapiPassThruDxe/AtapiPassThru.h
Save original PCI attributes in start() function and restore it in Stop() for those...
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / AtapiPassThruDxe / AtapiPassThru.h
index ac1db971d724e601b73ce785affc4f1c6320fdd3..1ac174c7a0b9e9abad11b2483e9242d9a4850e2e 100644 (file)
@@ -1,12 +1,12 @@
 /** @file\r
 /** @file\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
+  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
 \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
+  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:  AtapiPassThru.h\r
 \r
 \r
   Module Name:  AtapiPassThru.h\r
 \r
@@ -102,6 +102,7 @@ typedef struct {
   EFI_SCSI_PASS_THRU_PROTOCOL      ScsiPassThru;\r
   EFI_SCSI_PASS_THRU_MODE          ScsiPassThruMode;\r
   EFI_PCI_IO_PROTOCOL              *PciIo;\r
   EFI_SCSI_PASS_THRU_PROTOCOL      ScsiPassThru;\r
   EFI_SCSI_PASS_THRU_MODE          ScsiPassThruMode;\r
   EFI_PCI_IO_PROTOCOL              *PciIo;\r
+  UINT64                           OriginalPciAttributes;\r
   //\r
   // Local Data goes here\r
   //\r
   //\r
   // Local Data goes here\r
   //\r
@@ -454,6 +455,7 @@ AtapiScsiPassThruDriverEntryPoint (
   @param  This\r
   @param  Controller\r
   @param  PciIo\r
   @param  This\r
   @param  Controller\r
   @param  PciIo\r
+  @param  OriginalPciAttributes\r
 \r
   @todo Add function description\r
   @todo This add argument description\r
 \r
   @todo Add function description\r
   @todo This add argument description\r
@@ -463,9 +465,10 @@ AtapiScsiPassThruDriverEntryPoint (
 **/\r
 EFI_STATUS\r
 RegisterAtapiScsiPassThru (\r
 **/\r
 EFI_STATUS\r
 RegisterAtapiScsiPassThru (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL *This,\r
   IN  EFI_HANDLE                  Controller,\r
   IN  EFI_HANDLE                  Controller,\r
-  IN  EFI_PCI_IO_PROTOCOL         *PciIo\r
+  IN  EFI_PCI_IO_PROTOCOL         *PciIo,\r
+  IN  UINT64                      OriginalPciAttributes\r
   )\r
 ;\r
 \r
   )\r
 ;\r
 \r
@@ -971,13 +974,13 @@ Routine Description:
 \r
 Arguments:\r
   PciIo             - Pointer to the EFI_PCI_IO_PROTOCOL instance\r
 \r
 Arguments:\r
   PciIo             - Pointer to the EFI_PCI_IO_PROTOCOL instance\r
-  IdeRegsBaseAddr   - Pointer to IDE_REGISTERS_BASE_ADDR to \r
+  IdeRegsBaseAddr   - Pointer to IDE_REGISTERS_BASE_ADDR to\r
                       receive IDE IO port registers' base addresses\r
                       receive IDE IO port registers' base addresses\r
-                      \r
+\r
 Returns:\r
 \r
   EFI_STATUS\r
 Returns:\r
 \r
   EFI_STATUS\r
-    \r
+\r
 --*/\r
 ;\r
 \r
 --*/\r
 ;\r
 \r
@@ -993,15 +996,15 @@ Routine Description:
   Initialize each Channel's Base Address of CommandBlock and ControlBlock.\r
 \r
 Arguments:\r
   Initialize each Channel's Base Address of CommandBlock and ControlBlock.\r
 \r
 Arguments:\r
-    \r
+\r
   AtapiScsiPrivate            - The pointer of ATAPI_SCSI_PASS_THRU_DEV\r
   IdeRegsBaseAddr             - The pointer of IDE_REGISTERS_BASE_ADDR\r
   AtapiScsiPrivate            - The pointer of ATAPI_SCSI_PASS_THRU_DEV\r
   IdeRegsBaseAddr             - The pointer of IDE_REGISTERS_BASE_ADDR\r
-  \r
+\r
 Returns:\r
 Returns:\r
-  \r
+\r
   None\r
 \r
   None\r
 \r
---*/  \r
+--*/\r
 ;\r
 \r
 #endif\r
 ;\r
 \r
 #endif\r