]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Include/Protocol/LegacyInterrupt.h
Reviewed the description in the FatBinPkg .dec file.
[mirror_edk2.git] / IntelFrameworkPkg / Include / Protocol / LegacyInterrupt.h
index 0ebbc5143a01c24521332219ff633b7c11cfd453..8c952ebf9ef081e66cac0d4ff8d76d1d349de693 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  This protocol manages the legacy memory regions between 0xc0000 - 0xfffff\r
+  This protocol abstracts the PIRQ programming from the generic EFI Compatibility Support Modules (CSMs).\r
 \r
   Copyright (c) 2007, Intel Corporation\r
   All rights reserved. This program and the accompanying materials\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:  LegacyInterrupt.h\r
-\r
   @par Revision Reference:\r
   This protocol is defined in Framework for EFI Compatibility Support Module spec\r
-  Version 0.96\r
+  Version 0.97.\r
 \r
 **/\r
 \r
@@ -34,14 +32,14 @@ typedef struct _EFI_LEGACY_INTERRUPT_PROTOCOL EFI_LEGACY_INTERRUPT_PROTOCOL;
   Get the number of PIRQs this hardware supports.\r
 \r
   @param  This                  Protocol instance pointer.\r
-  @param  NumberPirsq           Number of PIRQs.\r
+  @param  NumberPirsq           Number of PIRQs that are supported.\r
 \r
-  @retval EFI_SUCCESS           Number of PIRQs returned.\r
+  @retval EFI_SUCCESS           The number of PIRQs was returned successfully.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_LEGACY_INTERRUPT_GET_NUMBER_PIRQS) (\r
+(EFIAPI *EFI_LEGACY_INTERRUPT_GET_NUMBER_PIRQS)(\r
   IN EFI_LEGACY_INTERRUPT_PROTOCOL            *This,\r
   OUT UINT8                                   *NumberPirqs\r
   );\r
@@ -54,12 +52,12 @@ EFI_STATUS
   @param  Device                PCI Device\r
   @param  Function              PCI Function\r
 \r
-  @retval EFI_SUCCESS           Bus/Device/Function returned\r
+  @retval EFI_SUCCESS           The Bus, Device, and Function were returned successfully\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_LEGACY_INTERRUPT_GET_LOCATION) (\r
+(EFIAPI *EFI_LEGACY_INTERRUPT_GET_LOCATION)(\r
   IN EFI_LEGACY_INTERRUPT_PROTOCOL            *This,\r
   OUT UINT8                                   *Bus,\r
   OUT UINT8                                   *Device,\r
@@ -79,7 +77,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_LEGACY_INTERRUPT_READ_PIRQ) (\r
+(EFIAPI *EFI_LEGACY_INTERRUPT_READ_PIRQ)(\r
   IN EFI_LEGACY_INTERRUPT_PROTOCOL           *This,\r
   IN  UINT8                                  PirqNumber,\r
   OUT UINT8                                  *PirqData\r
@@ -90,41 +88,36 @@ EFI_STATUS
 \r
   @param  This                  Protocol instance pointer.\r
   @param  PirqNumber            PIRQ register to read.\r
-  @param  PirqData              Data written.\r
+  @param  PirqData              Data to write.\r
 \r
-  @retval EFI_SUCCESS           Table pointer returned\r
+  @retval EFI_SUCCESS           The PIRQ was programmed\r
   @retval EFI_INVALID_PARAMETER Invalid PIRQ number\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_LEGACY_INTERRUPT_WRITE_PIRQ) (\r
+(EFIAPI *EFI_LEGACY_INTERRUPT_WRITE_PIRQ)(\r
   IN EFI_LEGACY_INTERRUPT_PROTOCOL           *This,\r
   IN  UINT8                                  PirqNumber,\r
   IN UINT8                                   PirqData\r
   );\r
 \r
-/**\r
-  @par Protocol Description:\r
-  Abstracts the PIRQ programming from the generic EFI Compatibility Support Modules\r
-\r
-  @param GetNumberPirqs\r
-  Gets the number of PIRQs supported.\r
-\r
-  @param GetLocation\r
-  Gets the PCI bus, device, and function that associated with this protocol.\r
-\r
-  @param ReadPirq\r
-  Reads the indicated PIRQ register.\r
-\r
-  @param WritePirq\r
-  Writes to the indicated PIRQ register.\r
-\r
-**/\r
 struct _EFI_LEGACY_INTERRUPT_PROTOCOL {\r
+///\r
+///   Gets the number of PIRQs supported.\r
+///\r
   EFI_LEGACY_INTERRUPT_GET_NUMBER_PIRQS GetNumberPirqs;\r
+///\r
+/// Gets the PCI bus, device, and function that associated with this protocol.\r
+///\r
   EFI_LEGACY_INTERRUPT_GET_LOCATION     GetLocation;\r
+///\r
+/// Reads the indicated PIRQ register.\r
+///\r
   EFI_LEGACY_INTERRUPT_READ_PIRQ        ReadPirq;\r
+///\r
+/// Writes to the indicated PIRQ register.\r
+///\r
   EFI_LEGACY_INTERRUPT_WRITE_PIRQ       WritePirq;\r
 };\r
 \r