]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Include/EfiDepex.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Include / EfiDepex.h
diff --git a/EdkCompatibilityPkg/Foundation/Include/EfiDepex.h b/EdkCompatibilityPkg/Foundation/Include/EfiDepex.h
new file mode 100644 (file)
index 0000000..62a7784
--- /dev/null
@@ -0,0 +1,54 @@
+/*++\r
+\r
+Copyright (c) 2004, Intel Corporation                                                         \r
+All rights reserved. This program and the accompanying materials                          \r
+are licensed and made available under the terms and conditions of the BSD License         \r
+which accompanies this distribution.  The full text of the license may be found at        \r
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Module Name:\r
+  EfiDepex.h\r
+\r
+Abstract:\r
+  This include file is only used in *.DXS files. Do not use this \r
+  include file in normal DXE code.\r
+\r
+  Depex - Dependency Expresion\r
+\r
+  The BNF grammar is thus:\r
+     <depex>   ::= before GUID       \r
+                 | after GUID\r
+                 | SOR <bool>\r
+                 | <bool>            \r
+     <bool>    ::= <bool> and <term> \r
+                 | <bool> or <term>  \r
+                 | <term>            \r
+     <term>    ::= not <factor>      \r
+                 | <factor>          \r
+     <factor>  ::= <bool>            \r
+                 | <boolval>         \r
+                 | <depinst>         \r
+                 | <termval>         \r
+     <boolval> ::= true              \r
+                 | false             \r
+     <depinst> ::= push GUID         \r
+     <termval> ::= end               \r
+\r
+--*/\r
+\r
+#ifndef _EFI_DEPEX_H_\r
+#define _EFI_DEPEX_H_\r
+\r
+#include "Tiano.h"\r
+\r
+//\r
+// The Depex grammer needs the string "TRUE" and "FALSE" we must\r
+// undo any pre-processor redefinitions\r
+//\r
+#undef TRUE\r
+#undef FALSE\r
+\r
+#endif\r