X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FProtocol%2FTapeIo.h;h=6183a2083c61d4e19b97919c6a133dc8f58c61b2;hb=74fec7085b01caac858ef511056e72b2b9ad5795;hp=8f15b3a2aa9be9028a131e10b059f8f46bed529a;hpb=878ddf1fc3540a715f63594ed22b6929e881afb4;p=mirror_edk2.git diff --git a/MdePkg/Include/Protocol/TapeIo.h b/MdePkg/Include/Protocol/TapeIo.h index 8f15b3a2aa..6183a2083c 100644 --- a/MdePkg/Include/Protocol/TapeIo.h +++ b/MdePkg/Include/Protocol/TapeIo.h @@ -2,7 +2,7 @@ EFI_TAPE_IO_PROTOCOL as defined in the UEFI 2.0. Provide services to control and access a tape device. - Copyright (c) 2006, Intel Corporation + Copyright (c) 2006 - 2008, 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: TapeIo.h - **/ #ifndef __EFI_TAPE_IO_PROTOCOL_H__ @@ -67,19 +65,18 @@ typedef struct { @retval EFI_INVALID_PARAMETER A NULL Buffer was specified with a non-zero BufferSize or the device is operating in fixed block size mode and the BufferSize was not a multiple of - device¡¯s fixed block size + device's fixed block size @retval EFI_DEVICE_ERROR A device error occurred while attempting to transfer data from the media. **/ typedef EFI_STATUS -(EFIAPI *EFI_TAPE_READ) ( +(EFIAPI *EFI_TAPE_READ)( IN EFI_TAPE_IO_PROTOCOL *This, IN OUT UINTN *BufferSize, OUT VOID *Buffer - ) -; + ); /** Writes to the tape. @@ -104,19 +101,18 @@ EFI_STATUS @retval EFI_INVALID_PARAMETER A NULL Buffer was specified with a non-zero BufferSize or the device is operating in fixed block size mode and the BufferSize was not a multiple of - device¡¯s fixed block size + device's fixed block size @retval EFI_DEVICE_ERROR A device error occurred while attempting to transfer data from the media. **/ typedef EFI_STATUS -(EFIAPI *EFI_TAPE_WRITE) ( +(EFIAPI *EFI_TAPE_WRITE)( IN EFI_TAPE_IO_PROTOCOL *This, IN UINTN *BufferSize, IN VOID *Buffer - ) -; + ); /** @@ -135,10 +131,9 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_TAPE_REWIND) ( +(EFIAPI *EFI_TAPE_REWIND)( IN EFI_TAPE_IO_PROTOCOL *This - ) -; + ); /** @@ -147,6 +142,9 @@ EFI_STATUS @param This A pointer to the EFI_TAPE_IO_PROTOCOL instance. @param Direction Direction and number of data blocks or filemarks to space over on media. @param Type Type of mark to space over on media. + The following Type marks are mandatory: + BLOCK type : 0 + FILEMARK type : 1 @retval EFI_SUCCESS The media was successfully repositioned. @retval EFI_END_OF_MEDIA Beginning or end of media was reached before the @@ -164,12 +162,11 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_TAPE_SPACE) ( +(EFIAPI *EFI_TAPE_SPACE)( IN EFI_TAPE_IO_PROTOCOL *This, INTN Direction, UINTN Type - ) -; + ); /** @@ -192,11 +189,10 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_TAPE_WRITEFM) ( +(EFIAPI *EFI_TAPE_WRITEFM)( IN EFI_TAPE_IO_PROTOCOL *This, IN UINTN Count - ) -; + ); /** @@ -216,12 +212,17 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_TAPE_RESET) ( +(EFIAPI *EFI_TAPE_RESET)( IN EFI_TAPE_IO_PROTOCOL *This, IN BOOLEAN ExtendedVerification - ) -; - + ); + +/// +/// The EFI_TAPE_IO_PROTOCOL provides basic sequential operations for tape devices. +/// These include read, write, rewind, space, write filemarks and reset functions. +/// Per this specification, a boot application uses the services of this protocol +/// to load the bootloader image from tape. +/// struct _EFI_TAPE_IO_PROTOCOL { EFI_TAPE_READ TapeRead; EFI_TAPE_WRITE TapeWrite;