]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Framework/Include/TianoSpecDevicePath.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Framework / Include / TianoSpecDevicePath.h
1 /*++
2
3 Copyright (c) 2004 - 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 TianoSpecDevicePath.h
15
16 Abstract:
17
18 Tiano Device Path definitions in Tiano Spec.
19
20 --*/
21
22 #ifndef _TIANO_SPEC_DEVICE_PATH_H
23 #define _TIANO_SPEC_DEVICE_PATH_H
24
25 #pragma pack(1)
26
27 #if (EFI_SPECIFICATION_VERSION < 0x00020000)
28 //
29 // EFI Specification extension on Media Device Path
30 //
31 #define MEDIA_FV_FILEPATH_DP 0x06
32 typedef struct {
33 EFI_DEVICE_PATH_PROTOCOL Header;
34 EFI_GUID NameGuid;
35 } MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;
36 #endif
37
38
39 #if (EFI_SPECIFICATION_VERSION == 0x00020000)
40 //
41 // For UEFI 2.0, use GUIDed PIWG device path to work-around EFI Specification extension on Media Device Path
42 //
43 typedef struct {
44 EFI_DEVICE_PATH_PROTOCOL Header;
45 EFI_GUID PiwgSpecificDevicePath;
46 UINT32 Type;
47 } PIWG_DEVICE_PATH;
48
49 #define PIWG_MEDIA_FW_VOL_FILEPATH_DEVICE_PATH_TYPE 0x01
50 typedef struct {
51 PIWG_DEVICE_PATH Piwg;
52 EFI_GUID NameGuid;
53 } MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;
54
55 //
56 // Place holder for a future extension
57 //
58 #define PIWG_MEDIA_FW_VOL_DEVICE_PATH_TYPE 0x02
59 typedef struct {
60 PIWG_DEVICE_PATH Piwg;
61 EFI_GUID VolumeGuid;
62 } MEDIA_FW_VOL_DEVICE_PATH;
63 #endif
64
65 #if (EFI_SPECIFICATION_VERSION > 0x00020000)
66 //
67 // EFI Specification extension on Media Device Path was added to UEFI 2.1 specification,
68 // so the definition is moved to EfiDevicePath.h
69 //
70 #endif
71
72 #pragma pack()
73 #endif