1 /*++
2 
3 Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
4 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   TianoSpecError.h
15 
16 Abstract:
17 
18   Tiano error codes defined in Tiano spec.
19 
20 --*/
21 
22 #ifndef _TIANO_SPEC_ERROR_H_
23 #define _TIANO_SPEC_ERROR_H_
24 
25 #include <EfiBind.h>
26 #define TIANO_ERROR(a)          (MAX_2_BITS | (a))
27 
28 //
29 // Tiano added a couple of return types. These are owned by UEFI specification
30 // and Tiano can not use them. Thus for UEFI 2.0 support we moved the values
31 // to a UEFI OEM extension range to conform to UEFI specification.
32 //
33 #if (EFI_SPECIFICATION_VERSION < 0x00020000)
34   #define EFI_NOT_AVAILABLE_YET   EFIERR (28)
35   #define EFI_UNLOAD_IMAGE        EFIERR (29)
36 #else
37   #define EFI_NOT_AVAILABLE_YET   TIANO_ERROR (0)
38   #define EFI_UNLOAD_IMAGE        TIANO_ERROR (1)
39 #endif
40 
41 #endif
42