2 Root include file for Shell Package modules that utilize the SHELL_RETURN type
4 Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #define ABS(a) ((a<0)?(-(a)):(a))
20 typedef VOID
*SHELL_FILE_HANDLE
;
22 #define SHELL_FREE_NON_NULL(Pointer) \
24 if ((Pointer) != NULL) { \
25 FreePool((Pointer)); \
32 /// The operation completed successfully.
37 /// The image failed to load.
42 /// The parameter was incorrect.
44 SHELL_INVALID_PARAMETER
= 2,
47 /// The operation is not supported.
49 SHELL_UNSUPPORTED
= 3,
52 /// The buffer was not the proper size for the request.
54 SHELL_BAD_BUFFER_SIZE
= 4,
57 /// The buffer was not large enough to hold the requested data.
58 /// The required buffer size is returned in the appropriate
59 /// parameter when this error occurs.
61 SHELL_BUFFER_TOO_SMALL
= 5,
64 /// There is no data pending upon return.
69 /// The physical device reported an error while attempting the
72 SHELL_DEVICE_ERROR
= 7,
75 /// The device cannot be written to.
77 SHELL_WRITE_PROTECTED
= 8,
80 /// The resource has run out.
82 SHELL_OUT_OF_RESOURCES
= 9,
85 /// An inconsistency was detected on the file system causing the
86 /// operation to fail.
88 SHELL_VOLUME_CORRUPTED
= 10,
91 /// There is no more space on the file system.
93 SHELL_VOLUME_FULL
= 11,
96 /// The device does not contain any medium to perform the
102 /// The medium in the device has changed since the last
105 SHELL_MEDIA_CHANGED
= 13,
108 /// The item was not found.
110 SHELL_NOT_FOUND
= 14,
113 /// Access was denied.
115 SHELL_ACCESS_DENIED
= 15,
117 // note the skipping of 16 and 17
120 /// A timeout time expired.
125 /// The protocol has not been started.
127 SHELL_NOT_STARTED
= 19,
130 /// The protocol has already been started.
132 SHELL_ALREADY_STARTED
= 20,
135 /// The operation was aborted.
139 // note the skipping of 22, 23, and 24
142 /// A function encountered an internal version that was
143 /// incompatible with a version requested by the caller.
145 SHELL_INCOMPATIBLE_VERSION
= 25,
148 /// The function was not performed due to a security violation.
150 SHELL_SECURITY_VIOLATION
= 26,
153 /// The function was performed and resulted in an unequal
159 #endif //__SHELL_BASE__