From 4243e3652e73b83204ee4c07a3e90347d3022701 Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 17 Mar 2008 21:13:45 +0000 Subject: Renamed to match filename naming recommendations. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4868 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Foundation/Efi/Protocol/DeviceIO/DeviceIO.c | 31 ----- .../Foundation/Efi/Protocol/DeviceIO/DeviceIO.h | 132 --------------------- .../Foundation/Efi/Protocol/DeviceIo/DeviceIO.c | 31 +++++ .../Foundation/Efi/Protocol/DeviceIo/DeviceIO.h | 132 +++++++++++++++++++++ 4 files changed, 163 insertions(+), 163 deletions(-) delete mode 100644 EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIO/DeviceIO.c delete mode 100644 EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIO/DeviceIO.h create mode 100644 EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/DeviceIO.c create mode 100644 EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/DeviceIO.h (limited to 'EdkCompatibilityPkg') diff --git a/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIO/DeviceIO.c b/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIO/DeviceIO.c deleted file mode 100644 index 34d90b75f4..0000000000 --- a/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIO/DeviceIO.c +++ /dev/null @@ -1,31 +0,0 @@ -/*++ - -Copyright (c) 2004, 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 -http://opensource.org/licenses/bsd-license.php - -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: - - DeviceIo.c - -Abstract: - - Device IO protocol as defined in the EFI 1.0 specification. - - Device IO is used to abstract hardware access to devices. It includes - memory mapped IO, IO, PCI Config space, and DMA. - - ---*/ - -#include "EfiSpec.h" -#include EFI_PROTOCOL_DEFINITION (DeviceIo) - -EFI_GUID gEfiDeviceIoProtocolGuid = EFI_DEVICE_IO_PROTOCOL_GUID; - -EFI_GUID_STRING(&gEfiDeviceIoProtocolGuid, "DeviceIo Protocol", "EFI 1.0 Device IO Protocol"); diff --git a/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIO/DeviceIO.h b/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIO/DeviceIO.h deleted file mode 100644 index d0f4678a50..0000000000 --- a/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIO/DeviceIO.h +++ /dev/null @@ -1,132 +0,0 @@ -/*++ - -Copyright (c) 2004, 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 -http://opensource.org/licenses/bsd-license.php - -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: - - DeviceIo.h - -Abstract: - - Device IO protocol as defined in the EFI 1.0 specification. - - Device IO is used to abstract hardware access to devices. It includes - memory mapped IO, IO, PCI Config space, and DMA. - - ---*/ - -#ifndef _DEVICE_IO_H_ -#define _DEVICE_IO_H_ - -#define EFI_DEVICE_IO_PROTOCOL_GUID \ - { \ - 0xaf6ac311, 0x84c3, 0x11d2, 0x8e, 0x3c, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b \ - } - -EFI_FORWARD_DECLARATION (EFI_DEVICE_IO_PROTOCOL); - -typedef enum { - IO_UINT8, - IO_UINT16, - IO_UINT32, - IO_UINT64, - MMIO_COPY_UINT8, - MMIO_COPY_UINT16, - MMIO_COPY_UINT32, - MMIO_COPY_UINT64 -} EFI_IO_WIDTH; - -typedef -EFI_STATUS -(EFIAPI *EFI_DEVICE_IO) ( - IN EFI_DEVICE_IO_PROTOCOL * This, - IN EFI_IO_WIDTH Width, - IN UINT64 Address, - IN UINTN Count, - IN OUT VOID *Buffer - ); - -typedef struct { - EFI_DEVICE_IO Read; - EFI_DEVICE_IO Write; -} EFI_IO_ACCESS; - -typedef -EFI_STATUS -(EFIAPI *EFI_PCI_DEVICE_PATH) ( - IN EFI_DEVICE_IO_PROTOCOL * This, - IN UINT64 Address, - IN OUT EFI_DEVICE_PATH_PROTOCOL **PciDevicePath - ); - -typedef enum { - EfiBusMasterRead, - EfiBusMasterWrite, - EfiBusMasterCommonBuffer -} EFI_IO_OPERATION_TYPE; - -typedef -EFI_STATUS -(EFIAPI *EFI_IO_MAP) ( - IN EFI_DEVICE_IO_PROTOCOL * This, - IN EFI_IO_OPERATION_TYPE Operation, - IN EFI_PHYSICAL_ADDRESS * HostAddress, - IN OUT UINTN *NumberOfBytes, - OUT EFI_PHYSICAL_ADDRESS * DeviceAddress, - OUT VOID **Mapping - ); - -typedef -EFI_STATUS -(EFIAPI *EFI_IO_UNMAP) ( - IN EFI_DEVICE_IO_PROTOCOL * This, - IN VOID *Mapping - ); - -typedef -EFI_STATUS -(EFIAPI *EFI_IO_ALLOCATE_BUFFER) ( - IN EFI_DEVICE_IO_PROTOCOL * This, - IN EFI_ALLOCATE_TYPE Type, - IN EFI_MEMORY_TYPE MemoryType, - IN UINTN Pages, - IN OUT EFI_PHYSICAL_ADDRESS * HostAddress - ); - -typedef -EFI_STATUS -(EFIAPI *EFI_IO_FLUSH) ( - IN EFI_DEVICE_IO_PROTOCOL * This - ); - -typedef -EFI_STATUS -(EFIAPI *EFI_IO_FREE_BUFFER) ( - IN EFI_DEVICE_IO_PROTOCOL * This, - IN UINTN Pages, - IN EFI_PHYSICAL_ADDRESS HostAddress - ); - -typedef struct _EFI_DEVICE_IO_PROTOCOL { - EFI_IO_ACCESS Mem; - EFI_IO_ACCESS Io; - EFI_IO_ACCESS Pci; - EFI_IO_MAP Map; - EFI_PCI_DEVICE_PATH PciDevicePath; - EFI_IO_UNMAP Unmap; - EFI_IO_ALLOCATE_BUFFER AllocateBuffer; - EFI_IO_FLUSH Flush; - EFI_IO_FREE_BUFFER FreeBuffer; -} EFI_DEVICE_IO_PROTOCOL; - -extern EFI_GUID gEfiDeviceIoProtocolGuid; - -#endif diff --git a/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/DeviceIO.c b/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/DeviceIO.c new file mode 100644 index 0000000000..34d90b75f4 --- /dev/null +++ b/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/DeviceIO.c @@ -0,0 +1,31 @@ +/*++ + +Copyright (c) 2004, 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 +http://opensource.org/licenses/bsd-license.php + +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: + + DeviceIo.c + +Abstract: + + Device IO protocol as defined in the EFI 1.0 specification. + + Device IO is used to abstract hardware access to devices. It includes + memory mapped IO, IO, PCI Config space, and DMA. + + +--*/ + +#include "EfiSpec.h" +#include EFI_PROTOCOL_DEFINITION (DeviceIo) + +EFI_GUID gEfiDeviceIoProtocolGuid = EFI_DEVICE_IO_PROTOCOL_GUID; + +EFI_GUID_STRING(&gEfiDeviceIoProtocolGuid, "DeviceIo Protocol", "EFI 1.0 Device IO Protocol"); diff --git a/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/DeviceIO.h b/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/DeviceIO.h new file mode 100644 index 0000000000..d0f4678a50 --- /dev/null +++ b/EdkCompatibilityPkg/Foundation/Efi/Protocol/DeviceIo/DeviceIO.h @@ -0,0 +1,132 @@ +/*++ + +Copyright (c) 2004, 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 +http://opensource.org/licenses/bsd-license.php + +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: + + DeviceIo.h + +Abstract: + + Device IO protocol as defined in the EFI 1.0 specification. + + Device IO is used to abstract hardware access to devices. It includes + memory mapped IO, IO, PCI Config space, and DMA. + + +--*/ + +#ifndef _DEVICE_IO_H_ +#define _DEVICE_IO_H_ + +#define EFI_DEVICE_IO_PROTOCOL_GUID \ + { \ + 0xaf6ac311, 0x84c3, 0x11d2, 0x8e, 0x3c, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b \ + } + +EFI_FORWARD_DECLARATION (EFI_DEVICE_IO_PROTOCOL); + +typedef enum { + IO_UINT8, + IO_UINT16, + IO_UINT32, + IO_UINT64, + MMIO_COPY_UINT8, + MMIO_COPY_UINT16, + MMIO_COPY_UINT32, + MMIO_COPY_UINT64 +} EFI_IO_WIDTH; + +typedef +EFI_STATUS +(EFIAPI *EFI_DEVICE_IO) ( + IN EFI_DEVICE_IO_PROTOCOL * This, + IN EFI_IO_WIDTH Width, + IN UINT64 Address, + IN UINTN Count, + IN OUT VOID *Buffer + ); + +typedef struct { + EFI_DEVICE_IO Read; + EFI_DEVICE_IO Write; +} EFI_IO_ACCESS; + +typedef +EFI_STATUS +(EFIAPI *EFI_PCI_DEVICE_PATH) ( + IN EFI_DEVICE_IO_PROTOCOL * This, + IN UINT64 Address, + IN OUT EFI_DEVICE_PATH_PROTOCOL **PciDevicePath + ); + +typedef enum { + EfiBusMasterRead, + EfiBusMasterWrite, + EfiBusMasterCommonBuffer +} EFI_IO_OPERATION_TYPE; + +typedef +EFI_STATUS +(EFIAPI *EFI_IO_MAP) ( + IN EFI_DEVICE_IO_PROTOCOL * This, + IN EFI_IO_OPERATION_TYPE Operation, + IN EFI_PHYSICAL_ADDRESS * HostAddress, + IN OUT UINTN *NumberOfBytes, + OUT EFI_PHYSICAL_ADDRESS * DeviceAddress, + OUT VOID **Mapping + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_IO_UNMAP) ( + IN EFI_DEVICE_IO_PROTOCOL * This, + IN VOID *Mapping + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_IO_ALLOCATE_BUFFER) ( + IN EFI_DEVICE_IO_PROTOCOL * This, + IN EFI_ALLOCATE_TYPE Type, + IN EFI_MEMORY_TYPE MemoryType, + IN UINTN Pages, + IN OUT EFI_PHYSICAL_ADDRESS * HostAddress + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_IO_FLUSH) ( + IN EFI_DEVICE_IO_PROTOCOL * This + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_IO_FREE_BUFFER) ( + IN EFI_DEVICE_IO_PROTOCOL * This, + IN UINTN Pages, + IN EFI_PHYSICAL_ADDRESS HostAddress + ); + +typedef struct _EFI_DEVICE_IO_PROTOCOL { + EFI_IO_ACCESS Mem; + EFI_IO_ACCESS Io; + EFI_IO_ACCESS Pci; + EFI_IO_MAP Map; + EFI_PCI_DEVICE_PATH PciDevicePath; + EFI_IO_UNMAP Unmap; + EFI_IO_ALLOCATE_BUFFER AllocateBuffer; + EFI_IO_FLUSH Flush; + EFI_IO_FREE_BUFFER FreeBuffer; +} EFI_DEVICE_IO_PROTOCOL; + +extern EFI_GUID gEfiDeviceIoProtocolGuid; + +#endif -- cgit v1.2.3