https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
		
			
				
	
	
		
			79 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			79 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*++
 | |
| 
 | |
| Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>
 | |
| SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| Module Name:
 | |
| 
 | |
|   EmuBlockIo.h
 | |
| 
 | |
| Abstract:
 | |
| 
 | |
|   Produce block IO abstractions for real devices on your PC using Posix APIs.
 | |
|   The configuration of what devices to mount or emulate comes from UNIX
 | |
|   environment variables. The variables must be visible to the Microsoft*
 | |
|   Developer Studio for them to work.
 | |
| 
 | |
|   * Other names and brands may be claimed as the property of others.
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef _EMU_BLOCK_IO_H_
 | |
| #define _EMU_BLOCK_IO_H_
 | |
| 
 | |
| #include <PiDxe.h>
 | |
| #include <Protocol/EmuIoThunk.h>
 | |
| #include <Protocol/BlockIo.h>
 | |
| #include <Protocol/BlockIo2.h>
 | |
| #include <Protocol/EmuBlockIo.h>
 | |
| 
 | |
| #include <Guid/EmuPhysicalDisk.h>
 | |
| #include <Guid/EmuVirtualDisk.h>
 | |
| 
 | |
| #include <Library/DebugLib.h>
 | |
| #include <Library/BaseLib.h>
 | |
| #include <Library/UefiDriverEntryPoint.h>
 | |
| #include <Library/UefiLib.h>
 | |
| #include <Library/BaseMemoryLib.h>
 | |
| #include <Library/MemoryAllocationLib.h>
 | |
| #include <Library/UefiBootServicesTableLib.h>
 | |
| 
 | |
| 
 | |
| //
 | |
| // Language supported for driverconfiguration protocol
 | |
| //
 | |
| 
 | |
| #define EMU_BLOCK_IO_PRIVATE_SIGNATURE SIGNATURE_32 ('E', 'M', 'b', 'k')
 | |
| typedef struct {
 | |
|   UINTN                       Signature;
 | |
|   EMU_IO_THUNK_PROTOCOL       *IoThunk;
 | |
|   EMU_BLOCK_IO_PROTOCOL       *Io;
 | |
| 
 | |
|   EFI_HANDLE                  EfiHandle;
 | |
|   EFI_BLOCK_IO_PROTOCOL       BlockIo;
 | |
|   EFI_BLOCK_IO2_PROTOCOL      BlockIo2;
 | |
|   EFI_BLOCK_IO_MEDIA          Media;
 | |
| 
 | |
|   EFI_UNICODE_STRING_TABLE    *ControllerNameTable;
 | |
| 
 | |
| } EMU_BLOCK_IO_PRIVATE;
 | |
| 
 | |
| #define EMU_BLOCK_IO_PRIVATE_DATA_FROM_THIS(a) \
 | |
|          CR(a, EMU_BLOCK_IO_PRIVATE, BlockIo, EMU_BLOCK_IO_PRIVATE_SIGNATURE)
 | |
| 
 | |
| #define EMU_BLOCK_IO2_PRIVATE_DATA_FROM_THIS(a) \
 | |
|          CR(a, EMU_BLOCK_IO_PRIVATE, BlockIo2, EMU_BLOCK_IO_PRIVATE_SIGNATURE)
 | |
| 
 | |
| 
 | |
| //
 | |
| // Block I/O Global Variables
 | |
| //
 | |
| extern EFI_DRIVER_BINDING_PROTOCOL        gEmuBlockIoDriverBinding;
 | |
| extern EFI_COMPONENT_NAME_PROTOCOL        gEmuBlockIoComponentName;
 | |
| extern EFI_COMPONENT_NAME2_PROTOCOL       gEmuBlockIoComponentName2;
 | |
| extern EFI_DRIVER_CONFIGURATION_PROTOCOL  gEmuBlockIoDriverConfiguration;
 | |
| extern EFI_DRIVER_DIAGNOSTICS_PROTOCOL    gEmuBlockIoDriverDiagnostics;
 | |
| extern EFI_DRIVER_DIAGNOSTICS2_PROTOCOL   gEmuBlockIoDriverDiagnostics2;
 | |
| 
 | |
| #endif
 |