summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-02 05:27:47 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-02 05:27:47 +0000
commitc715423427f1df58c456a73aa226b4305108fc85 (patch)
treec8585f6dff25b1d0b03bcc831d25de68aff8e0d0
parent358e78ed4c7615e5ce41cef8ded511390974fc7f (diff)
downloadedk2-c715423427f1df58c456a73aa226b4305108fc85.zip
edk2-c715423427f1df58c456a73aa226b4305108fc85.tar.gz
edk2-c715423427f1df58c456a73aa226b4305108fc85.tar.bz2
Refine CPU I/O Protocol definition.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8718 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFrameworkPkg/Include/Protocol/CpuIo.h63
1 files changed, 23 insertions, 40 deletions
diff --git a/IntelFrameworkPkg/Include/Protocol/CpuIo.h b/IntelFrameworkPkg/Include/Protocol/CpuIo.h
index 696ea69..39cead9 100644
--- a/IntelFrameworkPkg/Include/Protocol/CpuIo.h
+++ b/IntelFrameworkPkg/Include/Protocol/CpuIo.h
@@ -2,7 +2,7 @@
This code abstracts the CPU IO Protocol which installed by some platform or chipset-specific
PEIM that abstracts the processor-visible I/O operations.
- Copyright (c) 2007, Intel Corporation
+ Copyright (c) 2007 - 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -11,8 +11,6 @@
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
- Module Name: CpuIO.h
-
@par Revision Reference:
CPU IO Protocol is defined in Framework of EFI CPU IO Protocol Spec
Version 0.9
@@ -31,11 +29,9 @@
typedef struct _EFI_CPU_IO_PROTOCOL EFI_CPU_IO_PROTOCOL;
-//
-// *******************************************************
-// EFI_CPU_IO_PROTOCOL_WIDTH
-// *******************************************************
-//
+///
+/// Enumeration that defines the width of the I/O operation.
+///
typedef enum {
EfiCpuIoWidthUint8,
EfiCpuIoWidthUint16,
@@ -52,11 +48,6 @@ typedef enum {
EfiCpuIoWidthMaximum
} EFI_CPU_IO_PROTOCOL_WIDTH;
-//
-// *******************************************************
-// EFI_CPU_IO_PROTOCOL_IO_MEM
-// *******************************************************
-//
/**
Enables a driver to access memory-mapped registers in the EFI system memory space.
Or, Enables a driver to access registers in the EFI CPU I/O space.
@@ -85,40 +76,32 @@ EFI_STATUS
IN OUT VOID *Buffer
);
-//
-// *******************************************************
-// EFI_CPU_IO_PROTOCOL_ACCESS
-// *******************************************************
-//
+///
+/// Servies for read and write accesses.
+///
typedef struct {
+ ///
+ /// This service provides the various modalities of memory and I/O read.
+ ///
EFI_CPU_IO_PROTOCOL_IO_MEM Read;
+ ///
+ /// This service provides the various modalities of memory and I/O write.
+ ///
EFI_CPU_IO_PROTOCOL_IO_MEM Write;
} EFI_CPU_IO_PROTOCOL_ACCESS;
-//
-// *******************************************************
-// EFI_CPU_IO_PROTOCOL
-// *******************************************************
-//
-/**
- Provides the basic memory and I/O interfaces that are used to abstract
- accesses to devices in a system.
-
- @param Mem.Read
- Allows reads from memory-mapped I/O space.
-
- @param Mem.Write
- Allows writes to memory-mapped I/O space.
-
- @param Io.Read
- Allows reads from I/O space.
-
- @param Io.Write
- Allows writes to I/O space.
-
-**/
+///
+/// Provides the basic memory and I/O interfaces that are used to abstract
+/// accesses to devices in a system.
+///
struct _EFI_CPU_IO_PROTOCOL {
+ ///
+ /// Enables a driver to access memory-mapped registers in the EFI system memory space.
+ ///
EFI_CPU_IO_PROTOCOL_ACCESS Mem;
+ ///
+ /// Enables a driver to access registers in the EFI CPU I/O space.
+ ///
EFI_CPU_IO_PROTOCOL_ACCESS Io;
};