]> git.proxmox.com Git - mirror_edk2.git/commitdiff
remove reference to the obsolete EFI_LIGHT_ISA_IO_PROTOCOL. This protocol is introduc...
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 11 Jun 2008 05:26:24 +0000 (05:26 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 11 Jun 2008 05:26:24 +0000 (05:26 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5340 6f19259b-4bc3-4df7-8a09-765794883524

EdkCompatibilityPkg/Foundation/Protocol/IsaIo/IsaIo.c
EdkCompatibilityPkg/Foundation/Protocol/IsaIo/IsaIo.h

index 3b868be1bd2b9c5bb158645549f880f7b0b54321..5f04fe7cc55fee12cf634601a8fafa10cf9a4f38 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2004, Intel Corporation                                                         \r
+Copyright (c) 2004 - 2008, 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
@@ -15,8 +15,7 @@ Module Name:
     \r
 Abstract:\r
 \r
-    EFI_ISA_IO_PROTOCOL or EFI_LIGHT_ISA_IO_PROTOCOL \r
-    based on macro SIZE_REDUCTION_ISA_COMBINED.\r
+    EFI_ISA_IO_PROTOCOL\r
 \r
 Revision History\r
 \r
@@ -26,17 +25,9 @@ Revision History
 \r
 #include EFI_PROTOCOL_DEFINITION (IsaIo)\r
 \r
-#ifndef SIZE_REDUCTION_ISA_COMBINED\r
 //\r
 // EFI_ISA_IO_PROTOCOL\r
 //\r
 EFI_GUID  gEfiIsaIoProtocolGuid = EFI_ISA_IO_PROTOCOL_GUID;\r
 EFI_GUID_STRING(&gEfiIsaIoProtocolGuid, "ISA IO Protocol", "ISA IO Protocol");\r
 \r
-#else\r
-//\r
-// EFI_LIGHT_ISA_IO_PROTOCOL\r
-//\r
-EFI_GUID  gEfiLightIsaIoProtocolGuid = EFI_LIGHT_ISA_IO_PROTOCOL_GUID;\r
-EFI_GUID_STRING(&gEfiLightIsaIoProtocolGuid, "Light ISA IO Protocol", "Light ISA IO Protocol");\r
-#endif\r
index bedcf5a376603013b811d66c7f931f9421c14659..7af129249c3c32f3927198e4c47017e778eb2667 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2004 - 2006, Intel Corporation                                                         \r
+Copyright (c) 2004 - 2008, 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
@@ -15,8 +15,7 @@ Module Name:
     \r
 Abstract:\r
 \r
-    EFI_ISA_IO_PROTOCOL or EFI_LIGHT_ISA_IO_PROTOCOL \r
-    based on macro SIZE_REDUCTION_ISA_COMBINED.\r
+    EFI_ISA_IO_PROTOCOL\r
 \r
 Revision History\r
 \r
@@ -76,8 +75,6 @@ typedef enum {
   EfiIsaIoOperationMaximum\r
 } EFI_ISA_IO_PROTOCOL_OPERATION;\r
 \r
-#ifndef SIZE_REDUCTION_ISA_COMBINED\r
-\r
 //\r
 // Specific for ISA I/O Protocol\r
 //\r
@@ -185,178 +182,5 @@ struct _EFI_ISA_IO_PROTOCOL {
 \r
 extern EFI_GUID gEfiIsaIoProtocolGuid;\r
 \r
-#else\r
-\r
-//\r
-// Specific for Light ISA I/O Protocol\r
-//\r
-\r
-#define EFI_INTERFACE_DEFINITION_FOR_ISA_IO EFI_LIGHT_ISA_IO_PROTOCOL\r
-#define EFI_ISA_IO_PROTOCOL_VERSION         &gEfiLightIsaIoProtocolGuid\r
-#define EFI_ISA_IO_OPERATION_TOKEN          EfiIsaIoOperationSlaveWrite  \r
-\r
-#define ADD_SERIAL_NAME(x, y)\r
-\r
-//\r
-// Global ID for the Light ISA I/O Protocol\r
-//\r
-\r
-#define EFI_LIGHT_ISA_IO_PROTOCOL_GUID \\r
-  { 0x7cc7ed80, 0x9a68, 0x4781, {0x80, 0xe4, 0xda, 0x16, 0x99, 0x10, 0x5a, 0xfe} }\r
-\r
-EFI_FORWARD_DECLARATION (EFI_LIGHT_ISA_IO_PROTOCOL);\r
-\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_LIGHT_ISA_IO_PROTOCOL_IO_MEM) (\r
-  IN     EFI_LIGHT_ISA_IO_PROTOCOL    *This,\r
-  IN     EFI_ISA_IO_PROTOCOL_WIDTH    Width,\r
-  IN     UINT32                       Offset,\r
-  IN     UINTN                        Count,\r
-  IN OUT VOID                         *Buffer\r
-  )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  Performs an ISA I/O Read/Write Cycle\r
-  EFI_LIGHT_ISA_IO_PROTOCOL doesn't verfiy access for I/O operation.\r
-\r
-Arguments:\r
-\r
-  This                  - A pointer to the EFI_ISA_IO_PROTOCOL or EFI_LIGHT_ISA_IO_PROTOCOL instance.\r
-  Width                 - Signifies the width of the I/O operation.\r
-  Offset                - The offset in ISA I/O space to start the I/O operation.  \r
-  Count                 - The number of I/O operations to perform. \r
-  Buffer                - The source/destination buffer\r
-\r
-Returns:\r
-\r
-  EFI_SUCCESS           - The data was read from or written to the device sucessfully.\r
-  EFI_UNSUPPORTED       - The Offset is not valid for this device.\r
-  EFI_INVALID_PARAMETER - Width or Count, or both, were invalid.\r
-  EFI_OUT_OF_RESOURCES  - The request could not be completed due to a lack of resources.\r
-\r
---*/  \r
-;\r
-\r
-typedef struct {\r
-  EFI_LIGHT_ISA_IO_PROTOCOL_IO_MEM  Read;\r
-  EFI_LIGHT_ISA_IO_PROTOCOL_IO_MEM  Write;\r
-} EFI_LIGHT_ISA_IO_PROTOCOL_ACCESS;\r
-\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_LIGHT_ISA_IO_PROTOCOL_MAP) (\r
-  IN     EFI_LIGHT_ISA_IO_PROTOCOL      *This,\r
-  IN     EFI_ISA_IO_PROTOCOL_OPERATION  Operation,\r
-  IN     UINT8                          ChannelNumber      OPTIONAL,\r
-  IN     UINT32                         ChannelAttributes,\r
-  IN     VOID                           *HostAddress,\r
-  IN OUT UINTN                          *NumberOfBytes,\r
-  OUT    EFI_PHYSICAL_ADDRESS           *DeviceAddress,\r
-  OUT    VOID                           **Mapping\r
-  )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  Maps a memory region for DMA, EFI_LIGHT_ISA_IO_PROTOCOL only supports \r
-  Slave read/write operation to save code size.\r
-\r
-Arguments:\r
-\r
-  This                  - A pointer to the EFI_LIGHT_ISA_IO_PROTOCOL instance.\r
-  Operation             - Indicates the type of DMA (slave or bus master), and if \r
-                          the DMA operation is going to read or write to system memory. \r
-  ChannelNumber         - The slave channel number to use for this DMA operation. \r
-                          If Operation and ChannelAttributes shows that this device \r
-                          performs bus mastering DMA, then this field is ignored.  \r
-                          The legal range for this field is 0..7.  \r
-  ChannelAttributes     - The attributes of the DMA channel to use for this DMA operation\r
-  HostAddress           - The system memory address to map to the device.  \r
-  NumberOfBytes         - On input the number of bytes to map.  On output the number \r
-                          of bytes that were mapped.\r
-  DeviceAddress         - The resulting map address for the bus master device to use \r
-                          to access the hosts HostAddress.  \r
-  Mapping               - A resulting value to pass to EFI_ISA_IO.Unmap().\r
-\r
-Returns:\r
-\r
-  EFI_SUCCESS           - The range was mapped for the returned NumberOfBytes.\r
-  EFI_INVALID_PARAMETER - The Operation or HostAddress is undefined.\r
-  EFI_UNSUPPORTED       - The HostAddress can not be mapped as a common buffer.\r
-  EFI_DEVICE_ERROR      - The system hardware could not map the requested address.\r
-  EFI_OUT_OF_RESOURCES  - The memory pages could not be allocated.\r
-\r
---*/\r
-;\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_LIGHT_ISA_IO_PROTOCOL_UNMAP) (\r
-  IN EFI_LIGHT_ISA_IO_PROTOCOL     *This,\r
-  IN  VOID                         *Mapping\r
-  )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  Unmaps a memory region for DMA\r
-\r
-Arguments:\r
-\r
-  This             - A pointer to the EFI_ISA_IO_PROTOCOL or EFI_LIGHT_ISA_IO_PROTOCOL instance.\r
-  Mapping          - The mapping value returned from EFI_ISA_IO.Map().\r
-\r
-Returns:\r
-\r
-  EFI_SUCCESS      - The range was unmapped.\r
-  EFI_DEVICE_ERROR - The data was not committed to the target system memory.\r
-\r
---*/  \r
-;      \r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_LIGHT_ISA_IO_PROTOCOL_FLUSH) (\r
-  IN EFI_LIGHT_ISA_IO_PROTOCOL     *This\r
-  )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  Flushes a DMA buffer\r
-\r
-Arguments:\r
-\r
-  This             - A pointer to the EFI_ISA_IO_PROTOCOL or EFI_LIGHT_ISA_IO_PROTOCOL instance.\r
-\r
-Returns:\r
-\r
-  EFI_SUCCESS      - The buffers were flushed.\r
-  EFI_DEVICE_ERROR - The buffers were not flushed due to a hardware error.\r
-\r
---*/  \r
-;\r
-\r
-//\r
-// Interface structure for the Light ISA I/O Protocol\r
-//\r
-struct _EFI_LIGHT_ISA_IO_PROTOCOL {\r
-  EFI_LIGHT_ISA_IO_PROTOCOL_ACCESS     Io;\r
-  EFI_LIGHT_ISA_IO_PROTOCOL_MAP        Map;\r
-  EFI_LIGHT_ISA_IO_PROTOCOL_UNMAP      Unmap;\r
-  EFI_LIGHT_ISA_IO_PROTOCOL_FLUSH      Flush;\r
-  EFI_ISA_ACPI_RESOURCE_LIST           *ResourceList;\r
-  UINT32                               RomSize;\r
-  VOID                                 *RomImage;\r
-};\r
-\r
-extern EFI_GUID gEfiLightIsaIoProtocolGuid;\r
-\r
-#endif\r
 \r
 #endif\r