]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Clean up .h files for the CPU I/O PPI and the CPU I/O 2 Protocol
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 14 Jan 2010 04:43:31 +0000 (04:43 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 14 Jan 2010 04:43:31 +0000 (04:43 +0000)
Minor clean up to PeiIoLibCpuIo.inf

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9739 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Ppi/CpuIo.h
MdePkg/Include/Protocol/CpuIo2.h
MdePkg/Library/PeiIoLibCpuIo/PeiIoLibCpuIo.inf

index e67a5a8f6ac554202f4179abc3e9524fd6f6b937..99821082e156382cecd01207db669b2058e709f1 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-  This PPI provides a set of memory- and I/O-based services. \r
+  This PPI provides a set of memory and I/O-based services. \r
   The perspective of the services is that of the processor, not the bus or system.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation                                                         \r
+  Copyright (c) 2006 - 2010, 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
@@ -48,13 +48,13 @@ typedef enum {
 /**\r
   Memory-based access services and I/O-based access services.\r
 \r
-  @param  PeiServices           An indirect pointer to the PEI Services Table\r
+  @param[in]  PeiServices  An indirect pointer to the PEI Services Table\r
                                 published by the PEI Foundation.\r
-  @param  This                  Pointer to local data for the interface.\r
-  @param  Width                 The width of the access. Enumerated in bytes.\r
-  @param  Address               The physical address of the access.\r
-  @param  Count                 The number of accesses to perform.\r
-  @param  Buffer                A pointer to the buffer of data.\r
+  @param[in]  This         Pointer to local data for the interface.\r
+  @param[in]  Width        The width of the access. Enumerated in bytes.\r
+  @param[in]  Address      The physical address of the access.\r
+  @param[in]  Count        The number of accesses to perform.\r
+  @param[out] Buffer       A pointer to the buffer of data.\r
 \r
   @retval EFI_SUCCESS           The function completed successfully.\r
   @retval EFI_NOT_YET_AVAILABLE The service has not been installed.\r
@@ -90,9 +90,10 @@ typedef struct {
 /**\r
   8-bit I/O read operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
 \r
   @return An 8-bit value returned from the I/O space.\r
 \r
@@ -108,9 +109,10 @@ UINT8
 /**\r
   16-bit I/O read operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
 \r
   @return A 16-bit value returned from the I/O space.\r
 \r
@@ -126,9 +128,10 @@ UINT16
 /**\r
   32-bit I/O read operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
 \r
   @return A 32-bit value returned from the I/O space.\r
 \r
@@ -144,9 +147,10 @@ UINT32
 /**\r
   64-bit I/O read operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
 \r
   @return A 64-bit value returned from the I/O space.\r
 \r
@@ -162,10 +166,11 @@ UINT64
 /**\r
   8-bit I/O write operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
-  @param  Data           The data to write.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
+  @param[in] Data         The data to write.\r
 \r
 **/\r
 typedef\r
@@ -180,10 +185,11 @@ VOID
 /**\r
   16-bit I/O write operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
-  @param  Data           The data to write.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
+  @param[in] Data         The data to write.\r
 \r
 **/\r
 typedef\r
@@ -198,10 +204,11 @@ VOID
 /**\r
   32-bit I/O write operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
-  @param  Data           The data to write.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
+  @param[in] Data         The data to write.\r
 \r
 **/\r
 typedef\r
@@ -216,10 +223,11 @@ VOID
 /**\r
   64-bit I/O write operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
-  @param  Data           The data to write.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
+  @param[in] Data         The data to write.\r
 \r
 **/\r
 typedef\r
@@ -234,9 +242,10 @@ VOID
 /**\r
   8-bit memory read operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
 \r
   @return An 8-bit value returned from the memory space.\r
 \r
@@ -252,9 +261,10 @@ UINT8
 /**\r
   16-bit memory read operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
 \r
   @return A 16-bit value returned from the memory space.\r
 \r
@@ -270,9 +280,10 @@ UINT16
 /**\r
   32-bit memory read operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
 \r
   @return A 32-bit value returned from the memory space.\r
 \r
@@ -288,9 +299,10 @@ UINT32
 /**\r
   64-bit memory read operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
 \r
   @return A 64-bit value returned from the memory space.\r
 \r
@@ -306,10 +318,11 @@ UINT64
 /**\r
   8-bit memory write operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
-  @param  Data           The data to write.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
+  @param[in] Data         The data to write.\r
 \r
 **/\r
 typedef\r
@@ -324,10 +337,11 @@ VOID
 /**\r
   16-bit memory write operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
-  @param  Data           The data to write.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
+  @param[in] Data         The data to write.\r
 \r
 **/\r
 typedef\r
@@ -342,10 +356,11 @@ VOID
 /**\r
   32-bit memory write operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
-  @param  Data           The data to write.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
+  @param[in] Data         The data to write.\r
 \r
 **/\r
 typedef\r
@@ -360,10 +375,11 @@ VOID
 /**\r
   64-bit memory write operations.\r
 \r
-  @param  PeiServices    An indirect pointer to the PEI Services Table published by the PEI Foundation.\r
-  @param  This           Pointer to local data for the interface.\r
-  @param  Address        The physical address of the access.\r
-  @param  Data           The data to write.\r
+  @param[in] PeiServices  An indirect pointer to the PEI Services Table published \r
+                          by the PEI Foundation.\r
+  @param[in] This         Pointer to local data for the interface.\r
+  @param[in] Address      The physical address of the access.\r
+  @param[in] Data         The data to write.\r
 \r
 **/\r
 typedef\r
@@ -380,8 +396,14 @@ VOID
 /// The perspective of the services is that of the processor, not the bus or system.\r
 ///\r
 struct _EFI_PEI_CPU_IO_PPI {\r
-  EFI_PEI_CPU_IO_PPI_ACCESS       Mem;      ///< Collection of memory-access services.\r
-  EFI_PEI_CPU_IO_PPI_ACCESS       Io;       ///< Collection of I/O-access services.\r
+  ///\r
+  /// Collection of memory-access services.\r
+  ///\r
+  EFI_PEI_CPU_IO_PPI_ACCESS       Mem;\r
+  ///\r
+  /// Collection of I/O-access services.\r
+  ///\r
+  EFI_PEI_CPU_IO_PPI_ACCESS       Io;\r
 \r
   EFI_PEI_CPU_IO_PPI_IO_READ8     IoRead8;\r
   EFI_PEI_CPU_IO_PPI_IO_READ16    IoRead16;\r
index 0156489eea323a6788d5d8e518e030cab6e9b6dd..78b3eb6998bac0e35f4dd882da728ef4079305a3 100644 (file)
@@ -12,7 +12,7 @@
   ExitBootServices(). It is different from the Framework CPU I/O Protocol, which is a runtime\r
   protocol and can be used by runtime drivers after ExitBootServices().\r
 \r
-  Copyright (c) 2007 - 2009, Intel Corporation\r
+  Copyright (c) 2007 - 2010, 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
@@ -30,7 +30,6 @@
 #ifndef __CPU_IO2_H__\r
 #define __CPU_IO2_H__\r
 \r
-\r
 #define EFI_CPU_IO2_PROTOCOL_GUID \\r
   { \\r
     0xad61f191, 0xae5f, 0x4c0e, {0xb9, 0xfa, 0xe8, 0x69, 0xd2, 0x88, 0xc6, 0x4f} \\r
@@ -38,7 +37,6 @@
 \r
 typedef struct _EFI_CPU_IO2_PROTOCOL EFI_CPU_IO2_PROTOCOL;\r
 \r
-\r
 ///\r
 /// Enumeration that defines the width of the I/O operation.\r
 ///\r
@@ -58,7 +56,6 @@ typedef enum {
   EfiCpuIoWidthMaximum\r
 } EFI_CPU_IO_PROTOCOL_WIDTH;\r
 \r
-\r
 /**\r
   Enables a driver to access registers in the PI CPU I/O space. \r
 \r
@@ -109,7 +106,6 @@ EFI_STATUS
   IN OUT VOID                              *Buffer\r
   );\r
 \r
-\r
 ///\r
 /// Service for read and write accesses.\r
 ///\r
@@ -124,7 +120,6 @@ typedef struct {
   EFI_CPU_IO_PROTOCOL_IO_MEM  Write;\r
 } EFI_CPU_IO_PROTOCOL_ACCESS;\r
 \r
-\r
 ///\r
 /// Provides the basic memory and I/O interfaces that are used to abstract\r
 /// accesses to devices in a system.\r
index bfea641ad5a35e12af2221045f611304db871ffd..f30838934829887c854571bee0e10265ce794067 100644 (file)
@@ -4,7 +4,7 @@
 # I/O Library implementation that uses the CPU I/O PPI for I/O\r
 #  and MMIO operations.\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation.\r
+# Copyright (c) 2006 - 2010, Intel Corporation.\r
 #\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
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC (EBC is for build only)\r
 #\r
 \r
-[Sources.common]\r
+[Sources]\r
   IoHighLevel.c\r
   IoLib.c\r
   IoLibMmioBuffer.c\r
  \r
-\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
 \r
-\r
 [LibraryClasses]\r
   PeiServicesTablePointerLib\r
   BaseLib\r