summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Include
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-08 06:59:54 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-08 06:59:54 +0000
commitf4671790b4cb76c888b8e41bebd0c33477dbd940 (patch)
tree581b9c13a64c5a4a7285935d4d4cb619daacfdd3 /IntelFrameworkModulePkg/Include
parent6a194b7f2d9a60b9a42fdc8bdeb69bcc189fd0ed (diff)
downloadedk2-platforms-f4671790b4cb76c888b8e41bebd0c33477dbd940.tar.xz
Add comments for Include header files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8499 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Include')
-rw-r--r--IntelFrameworkModulePkg/Include/Guid/DataHubStatusCodeRecord.h5
-rw-r--r--IntelFrameworkModulePkg/Include/Guid/TianoDecompress.h (renamed from IntelFrameworkModulePkg/Include/Guid/CustomDecompress.h)4
-rw-r--r--IntelFrameworkModulePkg/Include/Protocol/IsaAcpi.h93
-rw-r--r--IntelFrameworkModulePkg/Include/Protocol/IsaIo.h121
-rw-r--r--IntelFrameworkModulePkg/Include/Protocol/PciHotPlugRequest.h16
-rw-r--r--IntelFrameworkModulePkg/Include/Protocol/Ps2Policy.h4
6 files changed, 215 insertions, 28 deletions
diff --git a/IntelFrameworkModulePkg/Include/Guid/DataHubStatusCodeRecord.h b/IntelFrameworkModulePkg/Include/Guid/DataHubStatusCodeRecord.h
index 5e3e709fbc..cbea8d56f9 100644
--- a/IntelFrameworkModulePkg/Include/Guid/DataHubStatusCodeRecord.h
+++ b/IntelFrameworkModulePkg/Include/Guid/DataHubStatusCodeRecord.h
@@ -1,8 +1,7 @@
/** @file
- GUID used to identify Data Hub records that originate from the Tiano
- ReportStatusCode API.
+ GUID used to identify Data Hub records logged by Status Code Runtime Protocol.
-Copyright (c) 2006, Intel Corporation
+Copyright (c) 2006 - 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
diff --git a/IntelFrameworkModulePkg/Include/Guid/CustomDecompress.h b/IntelFrameworkModulePkg/Include/Guid/TianoDecompress.h
index 610443c54b..e395cbc0ea 100644
--- a/IntelFrameworkModulePkg/Include/Guid/CustomDecompress.h
+++ b/IntelFrameworkModulePkg/Include/Guid/TianoDecompress.h
@@ -1,7 +1,7 @@
/** @file
- Custom decompress Guid definitions
+ Tiano Custom decompress Guid definition
-Copyright (c) 2006 - 2007, Intel Corporation
+Copyright (c) 2006 - 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
diff --git a/IntelFrameworkModulePkg/Include/Protocol/IsaAcpi.h b/IntelFrameworkModulePkg/Include/Protocol/IsaAcpi.h
index 573d5a4a60..e3ad06f60f 100644
--- a/IntelFrameworkModulePkg/Include/Protocol/IsaAcpi.h
+++ b/IntelFrameworkModulePkg/Include/Protocol/IsaAcpi.h
@@ -1,7 +1,7 @@
/** @file
- EFI ISA Acpi Protocol
+ ISA Acpi Protocol is used to operate and communicate with ISA device.
-Copyright (c) 2006 - 2007, Intel Corporation
+Copyright (c) 2006 - 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
@@ -56,11 +56,7 @@ typedef struct _EFI_ISA_ACPI_PROTOCOL EFI_ISA_ACPI_PROTOCOL;
//
// Resource List definition:
-// at first, the resource was defined as below
-// but in the future, it will be defined again that follow ACPI spec: ACPI resource type
-// so that, in this driver, we can interpret the ACPI table and get the ISA device information.
//
-
typedef enum {
EfiIsaAcpiResourceEndOfList,
EfiIsaAcpiResourceIo,
@@ -86,16 +82,33 @@ typedef struct {
EFI_ISA_ACPI_RESOURCE *ResourceItem;
} EFI_ISA_ACPI_RESOURCE_LIST;
-//
-// Prototypes for the ISA ACPI Protocol
-//
+/**
+ Enumerate the ISA devices on the ISA bus.
+
+ @param This Pointer to EFI_ISA_ACPI_PROTOCOL.
+ @param Device Found next ISA device.
+
+ @retval EFI_NOT_FOUND No device found.
+ @retval EFI_SUCCESS Success get the next ISA device.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_ACPI_DEVICE_ENUMERATE) (
IN EFI_ISA_ACPI_PROTOCOL *This,
OUT EFI_ISA_ACPI_DEVICE_ID **Device
);
-
+
+/**
+ Set ISA device power.
+
+ @param This Pointer to EFI_ISA_ACPI_PROTOCOL.
+ @param Device ISA device.
+ @param OnOff Whether to set power on or off.
+
+ @retval EFI_SUCCESS Successfully set ISA device.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_ACPI_SET_DEVICE_POWER) (
@@ -104,6 +117,17 @@ EFI_STATUS
IN BOOLEAN OnOff
);
+/**
+ Get current Resource of the specific ISA device.
+
+ @param This Pointer to EFI_ISA_ACPI_PROTOCOL.
+ @param Device ISA device.
+ @param ResourceList Returned resource list.
+
+ @retval EFI_SUCCESS Successfully get current resource.
+ @retval EFI_NOT_FOUND No resource found.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_ACPI_GET_CUR_RESOURCE) (
@@ -112,6 +136,16 @@ EFI_STATUS
OUT EFI_ISA_ACPI_RESOURCE_LIST **ResourceList
);
+/**
+ Get possible resource for the specific ISA device.
+
+ @param This Pointer to EFI_ISA_ACPI_PROTOCOL.
+ @param Device ISA device.
+ @param ResourceList Returned resource list.
+
+ @retval EFI_SUCCESS Successfully get possible resource.
+ @retval EFI_NOT_FOUND No resource found.
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_ACPI_GET_POS_RESOURCE) (
@@ -119,7 +153,17 @@ EFI_STATUS
IN EFI_ISA_ACPI_DEVICE_ID *Device,
OUT EFI_ISA_ACPI_RESOURCE_LIST **ResourceList
);
-
+
+/**
+ Set resources for the specific ISA device.
+
+ @param This Pointer to EFI_ISA_ACPI_PROTOCOL.
+ @param Device ISA device.
+ @param ResourceList Resource list will be set.
+
+ @retval EFI_SUCCESS Successfully set resource.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_ACPI_SET_RESOURCE) (
@@ -128,6 +172,16 @@ EFI_STATUS
IN EFI_ISA_ACPI_RESOURCE_LIST *ResourceList
);
+/**
+ Enable or disable ISA device.
+
+ @param This Pointer of EFI_ISA_ACPI_PROTOCOL.
+ @param Device ISA device.
+ @param Enable Enable/Disable.
+
+ @retval EFI_SUCCESS Successfully perform this action.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_ACPI_ENABLE_DEVICE) (
@@ -136,6 +190,15 @@ EFI_STATUS
IN BOOLEAN Enable
);
+/**
+ Init ISA device.
+
+ @param This Pointer to EFI_ISA_ACPI_PROTOCOL.
+ @param Device ISA device.
+
+ @retval EFI_SUCCESS Successfully initialize ISA device.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_ACPI_INIT_DEVICE) (
@@ -143,6 +206,14 @@ EFI_STATUS
IN EFI_ISA_ACPI_DEVICE_ID *Device
);
+/**
+ ISA Interface Init.
+
+ @param This Pointer of EFI_ISA_ACPI_PROTOCOL.
+
+ @retval EFI_SUCCESS Successfully initialize ISA interface.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_ACPI_INTERFACE_INIT) (
diff --git a/IntelFrameworkModulePkg/Include/Protocol/IsaIo.h b/IntelFrameworkModulePkg/Include/Protocol/IsaIo.h
index ce7f615621..9a2822937f 100644
--- a/IntelFrameworkModulePkg/Include/Protocol/IsaIo.h
+++ b/IntelFrameworkModulePkg/Include/Protocol/IsaIo.h
@@ -1,7 +1,7 @@
/** @file
- EFI ISA I/O Protocol
+ ISA I/O Protocol is used to perform ISA device Io/Mem operations.
-Copyright (c) 2006 - 2007, Intel Corporation
+Copyright (c) 2006 - 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
@@ -19,18 +19,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Protocol/IsaAcpi.h>
//
-// Global ID for the ISA I/O Protocol
+// Global GUID for the ISA I/O Protocol
//
-
#define EFI_ISA_IO_PROTOCOL_GUID \
{ 0x7ee2bd44, 0x3da0, 0x11d4, { 0x9a, 0x38, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } }
typedef struct _EFI_ISA_IO_PROTOCOL EFI_ISA_IO_PROTOCOL;
//
-// Prototypes for the ISA I/O Protocol
+// Width of ISA Io/Mem operation
//
-
typedef enum {
EfiIsaIoWidthUint8,
EfiIsaIoWidthUint16,
@@ -50,9 +48,9 @@ typedef enum {
//
// Attributes for common buffer allocations
//
-#define EFI_ISA_IO_ATTRIBUTE_MEMORY_WRITE_COMBINE 0x080 // Map a memory range so write are combined
-#define EFI_ISA_IO_ATTRIBUTE_MEMORY_CACHED 0x800 // Map a memory range so all r/w accesses are cached
-#define EFI_ISA_IO_ATTRIBUTE_MEMORY_DISABLE 0x1000 // Disable a memory range
+#define EFI_ISA_IO_ATTRIBUTE_MEMORY_WRITE_COMBINE 0x080 ///< Map a memory range so write are combined
+#define EFI_ISA_IO_ATTRIBUTE_MEMORY_CACHED 0x800 ///< Map a memory range so all r/w accesses are cached
+#define EFI_ISA_IO_ATTRIBUTE_MEMORY_DISABLE 0x1000 ///< Disable a memory range
//
// Channel attribute for DMA operations
@@ -76,6 +74,22 @@ typedef enum {
EfiIsaIoOperationMaximum
} EFI_ISA_IO_PROTOCOL_OPERATION;
+/**
+ Performs an ISA Io/Memory Read/Write Cycle
+
+ @param This A pointer to the EFI_ISA_IO_PROTOCOL instance.
+ @param Width Signifies the width of the Io/Memory operation.
+ @param Offset The offset in ISA Io/Memory space to start the Io/Memory operation.
+ @param Count The number of Io/Memory operations to perform.
+ @param Buffer [OUT] The destination buffer to store the results.
+ [IN] The source buffer to write data to the device.
+
+ @retval EFI_SUCCESS The data was read from / written to the device sucessfully.
+ @retval EFI_UNSUPPORTED The Offset is not valid for this device.
+ @retval EFI_INVALID_PARAMETER Width or Count, or both, were invalid.
+ @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_IO_PROTOCOL_IO_MEM) (
@@ -91,6 +105,21 @@ typedef struct {
EFI_ISA_IO_PROTOCOL_IO_MEM Write;
} EFI_ISA_IO_PROTOCOL_ACCESS;
+/**
+ Performs an ISA I/O Copy Memory
+
+ @param This A pointer to the EFI_ISA_IO_PROTOCOL instance.
+ @param Width Signifies the width of the memory copy operation.
+ @param DestOffset The offset of the destination
+ @param SrcOffset The offset of the source
+ @param Count The number of memory copy operations to perform
+
+ @retval EFI_SUCCESS The data was copied sucessfully.
+ @retval EFI_UNSUPPORTED The DestOffset or SrcOffset is not valid for this device.
+ @retval EFI_INVALID_PARAMETER Width or Count, or both, were invalid.
+ @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_IO_PROTOCOL_COPY_MEM) (
@@ -101,6 +130,32 @@ EFI_STATUS
IN UINTN Count
);
+/**
+ Maps a memory region for DMA
+
+ @param This A pointer to the EFI_ISA_IO_PROTOCOL instance.
+ @param Operation Indicates the type of DMA (slave or bus master), and if
+ the DMA operation is going to read or write to system memory.
+ @param ChannelNumber The slave channel number to use for this DMA operation.
+ If Operation and ChannelAttributes shows that this device
+ performs bus mastering DMA, then this field is ignored.
+ The legal range for this field is 0..7.
+ @param ChannelAttributes The attributes of the DMA channel to use for this DMA operation
+ @param HostAddress The system memory address to map to the device.
+ @param NumberOfBytes On input the number of bytes to map. On output the number
+ of bytes that were mapped.
+ @param DeviceAddress The resulting map address for the bus master device to use
+ to access the hosts HostAddress.
+ @param Mapping A resulting value to pass to EFI_ISA_IO.Unmap().
+
+
+ @retval EFI_SUCCESS The range was mapped for the returned NumberOfBytes.
+ @retval EFI_INVALID_PARAMETER The Operation or HostAddress is undefined.
+ @retval EFI_UNSUPPORTED The HostAddress can not be mapped as a common buffer.
+ @retval EFI_DEVICE_ERROR The system hardware could not map the requested address.
+ @retval EFI_OUT_OF_RESOURCES The memory pages could not be allocated.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_IO_PROTOCOL_MAP) (
@@ -114,6 +169,16 @@ EFI_STATUS
OUT VOID **Mapping
);
+/**
+ Unmaps a memory region for DMA
+
+ @param This A pointer to the EFI_ISA_IO_PROTOCOL instance.
+ @param Mapping The mapping value returned from EFI_ISA_IO.Map().
+
+ @retval EFI_SUCCESS The range was unmapped.
+ @retval EFI_DEVICE_ERROR The data was not committed to the target system memory.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_IO_PROTOCOL_UNMAP) (
@@ -121,6 +186,23 @@ EFI_STATUS
IN VOID *Mapping
);
+/**
+ Allocates a common buffer for DMA
+
+ @param This A pointer to the EFI_ISA_IO_PROTOCOL instance.
+ @param Type The type allocation to perform.
+ @param MemoryType The type of memory to allocate.
+ @param Pages The number of pages to allocate.
+ @param HostAddress A pointer to store the base address of the allocated range.
+ @param Attributes The requested bit mask of attributes for the allocated range.
+
+ @retval EFI_SUCCESS The requested memory pages were allocated.
+ @retval EFI_INVALID_PARAMETER Type is invalid or MemoryType is invalid or HostAddress is NULL
+ @retval EFI_UNSUPPORTED Attributes is unsupported or the memory range specified
+ by HostAddress, Pages, and Type is not available for common buffer use.
+ @retval EFI_OUT_OF_RESOURCES The memory pages could not be allocated.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_IO_PROTOCOL_ALLOCATE_BUFFER) (
@@ -132,6 +214,18 @@ EFI_STATUS
IN UINT64 Attributes
);
+/**
+ Frees a common buffer
+
+ @param This A pointer to the EFI_ISA_IO_PROTOCOL instance.
+ @param Pages The number of pages to free.
+ @param HostAddress The base address of the allocated range.
+
+
+ @retval EFI_SUCCESS The requested memory pages were freed.
+ @retval EFI_INVALID_PARAMETER The memory was not allocated with EFI_ISA_IO.AllocateBufer().
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_IO_PROTOCOL_FREE_BUFFER) (
@@ -140,6 +234,15 @@ EFI_STATUS
IN VOID *HostAddress
);
+/**
+ Flushes a DMA buffer
+
+ @param This A pointer to the EFI_ISA_IO_PROTOCOL instance.
+
+ @retval EFI_SUCCESS The buffers were flushed.
+ @retval EFI_DEVICE_ERROR The buffers were not flushed due to a hardware error.
+
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_ISA_IO_PROTOCOL_FLUSH) (
diff --git a/IntelFrameworkModulePkg/Include/Protocol/PciHotPlugRequest.h b/IntelFrameworkModulePkg/Include/Protocol/PciHotPlugRequest.h
index 748ec103d6..996b5b3265 100644
--- a/IntelFrameworkModulePkg/Include/Protocol/PciHotPlugRequest.h
+++ b/IntelFrameworkModulePkg/Include/Protocol/PciHotPlugRequest.h
@@ -1,6 +1,7 @@
/** @file
+ This protocol is used to add or remove all PCI child devices on the PCI root bridge.
-Copyright (c) 2006 - 2007, Intel Corporation
+Copyright (c) 2006 - 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
@@ -24,6 +25,19 @@ typedef enum {
typedef struct _EFI_PCI_HOTPLUG_REQUEST_PROTOCOL EFI_PCI_HOTPLUG_REQUEST_PROTOCOL;
+/**
+ Hot plug request notify.
+
+ @param This A pointer to the hot plug request protocol.
+ @param Operation The operation.
+ @param Controller A pointer to the controller.
+ @param RemainingDevicePath A pointer to the device path.
+ @param NumberOfChildren A the number of child handle in the ChildHandleBuffer.
+ @param ChildHandleBuffer A pointer to the array contain the child handle.
+
+ @retval EFI_NOT_FOUND Can not find bridge according to controller handle.
+ @retval EFI_SUCCESS Success operating.
+**/
typedef
EFI_STATUS
(EFIAPI *EFI_PCI_HOTPLUG_REQUEST_NOTIFY) (
diff --git a/IntelFrameworkModulePkg/Include/Protocol/Ps2Policy.h b/IntelFrameworkModulePkg/Include/Protocol/Ps2Policy.h
index e6d20a8d0d..0ea26bdfc5 100644
--- a/IntelFrameworkModulePkg/Include/Protocol/Ps2Policy.h
+++ b/IntelFrameworkModulePkg/Include/Protocol/Ps2Policy.h
@@ -1,7 +1,7 @@
/** @file
- Protocol used for PS/2 Policy definition.
+ PS/2 policy protocol abstracts the specific platform initialization and setting.
-Copyright (c) 2006 - 2007, Intel Corporation
+Copyright (c) 2006 - 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