xref: /illumos-gate/usr/src/uts/intel/sys/acpi/acapps.h (revision 20a2a10f)
17c478bd9Sstevel@tonic-gate /******************************************************************************
27c478bd9Sstevel@tonic-gate  *
37c478bd9Sstevel@tonic-gate  * Module Name: acapps - common include for ACPI applications/tools
47c478bd9Sstevel@tonic-gate  *
57c478bd9Sstevel@tonic-gate  *****************************************************************************/
67c478bd9Sstevel@tonic-gate 
735786f68SRobert Mustacchi /******************************************************************************
835786f68SRobert Mustacchi  *
935786f68SRobert Mustacchi  * 1. Copyright Notice
1035786f68SRobert Mustacchi  *
1135786f68SRobert Mustacchi  * Some or all of this work - Copyright (c) 1999 - 2018, Intel Corp.
127c478bd9Sstevel@tonic-gate  * All rights reserved.
137c478bd9Sstevel@tonic-gate  *
1435786f68SRobert Mustacchi  * 2. License
1535786f68SRobert Mustacchi  *
1635786f68SRobert Mustacchi  * 2.1. This is your license from Intel Corp. under its intellectual property
1735786f68SRobert Mustacchi  * rights. You may have additional license terms from the party that provided
1835786f68SRobert Mustacchi  * you this software, covering your right to use that party's intellectual
1935786f68SRobert Mustacchi  * property rights.
2035786f68SRobert Mustacchi  *
2135786f68SRobert Mustacchi  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
2235786f68SRobert Mustacchi  * copy of the source code appearing in this file ("Covered Code") an
2335786f68SRobert Mustacchi  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
2435786f68SRobert Mustacchi  * base code distributed originally by Intel ("Original Intel Code") to copy,
2535786f68SRobert Mustacchi  * make derivatives, distribute, use and display any portion of the Covered
2635786f68SRobert Mustacchi  * Code in any form, with the right to sublicense such rights; and
2735786f68SRobert Mustacchi  *
2835786f68SRobert Mustacchi  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
2935786f68SRobert Mustacchi  * license (with the right to sublicense), under only those claims of Intel
3035786f68SRobert Mustacchi  * patents that are infringed by the Original Intel Code, to make, use, sell,
3135786f68SRobert Mustacchi  * offer to sell, and import the Covered Code and derivative works thereof
3235786f68SRobert Mustacchi  * solely to the minimum extent necessary to exercise the above copyright
3335786f68SRobert Mustacchi  * license, and in no event shall the patent license extend to any additions
3435786f68SRobert Mustacchi  * to or modifications of the Original Intel Code. No other license or right
3535786f68SRobert Mustacchi  * is granted directly or by implication, estoppel or otherwise;
3635786f68SRobert Mustacchi  *
3735786f68SRobert Mustacchi  * The above copyright and patent license is granted only if the following
3835786f68SRobert Mustacchi  * conditions are met:
3935786f68SRobert Mustacchi  *
4035786f68SRobert Mustacchi  * 3. Conditions
4135786f68SRobert Mustacchi  *
4235786f68SRobert Mustacchi  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
4335786f68SRobert Mustacchi  * Redistribution of source code of any substantial portion of the Covered
4435786f68SRobert Mustacchi  * Code or modification with rights to further distribute source must include
4535786f68SRobert Mustacchi  * the above Copyright Notice, the above License, this list of Conditions,
4635786f68SRobert Mustacchi  * and the following Disclaimer and Export Compliance provision. In addition,
4735786f68SRobert Mustacchi  * Licensee must cause all Covered Code to which Licensee contributes to
4835786f68SRobert Mustacchi  * contain a file documenting the changes Licensee made to create that Covered
4935786f68SRobert Mustacchi  * Code and the date of any change. Licensee must include in that file the
5035786f68SRobert Mustacchi  * documentation of any changes made by any predecessor Licensee. Licensee
5135786f68SRobert Mustacchi  * must include a prominent statement that the modification is derived,
5235786f68SRobert Mustacchi  * directly or indirectly, from Original Intel Code.
5335786f68SRobert Mustacchi  *
5435786f68SRobert Mustacchi  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
5535786f68SRobert Mustacchi  * Redistribution of source code of any substantial portion of the Covered
5635786f68SRobert Mustacchi  * Code or modification without rights to further distribute source must
5735786f68SRobert Mustacchi  * include the following Disclaimer and Export Compliance provision in the
5835786f68SRobert Mustacchi  * documentation and/or other materials provided with distribution. In
5935786f68SRobert Mustacchi  * addition, Licensee may not authorize further sublicense of source of any
6035786f68SRobert Mustacchi  * portion of the Covered Code, and must include terms to the effect that the
6135786f68SRobert Mustacchi  * license from Licensee to its licensee is limited to the intellectual
6235786f68SRobert Mustacchi  * property embodied in the software Licensee provides to its licensee, and
6335786f68SRobert Mustacchi  * not to intellectual property embodied in modifications its licensee may
6435786f68SRobert Mustacchi  * make.
6535786f68SRobert Mustacchi  *
6635786f68SRobert Mustacchi  * 3.3. Redistribution of Executable. Redistribution in executable form of any
6735786f68SRobert Mustacchi  * substantial portion of the Covered Code or modification must reproduce the
6835786f68SRobert Mustacchi  * above Copyright Notice, and the following Disclaimer and Export Compliance
6935786f68SRobert Mustacchi  * provision in the documentation and/or other materials provided with the
7035786f68SRobert Mustacchi  * distribution.
7135786f68SRobert Mustacchi  *
7235786f68SRobert Mustacchi  * 3.4. Intel retains all right, title, and interest in and to the Original
7335786f68SRobert Mustacchi  * Intel Code.
7435786f68SRobert Mustacchi  *
7535786f68SRobert Mustacchi  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
7635786f68SRobert Mustacchi  * Intel shall be used in advertising or otherwise to promote the sale, use or
7735786f68SRobert Mustacchi  * other dealings in products derived from or relating to the Covered Code
7835786f68SRobert Mustacchi  * without prior written authorization from Intel.
7935786f68SRobert Mustacchi  *
8035786f68SRobert Mustacchi  * 4. Disclaimer and Export Compliance
8135786f68SRobert Mustacchi  *
8235786f68SRobert Mustacchi  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
8335786f68SRobert Mustacchi  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
8435786f68SRobert Mustacchi  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
8535786f68SRobert Mustacchi  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
8635786f68SRobert Mustacchi  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
8735786f68SRobert Mustacchi  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
8835786f68SRobert Mustacchi  * PARTICULAR PURPOSE.
8935786f68SRobert Mustacchi  *
9035786f68SRobert Mustacchi  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
9135786f68SRobert Mustacchi  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
9235786f68SRobert Mustacchi  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
9335786f68SRobert Mustacchi  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
9435786f68SRobert Mustacchi  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
9535786f68SRobert Mustacchi  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
9635786f68SRobert Mustacchi  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
9735786f68SRobert Mustacchi  * LIMITED REMEDY.
9835786f68SRobert Mustacchi  *
9935786f68SRobert Mustacchi  * 4.3. Licensee shall not export, either directly or indirectly, any of this
10035786f68SRobert Mustacchi  * software or system incorporating such software without first obtaining any
10135786f68SRobert Mustacchi  * required license or other approval from the U. S. Department of Commerce or
10235786f68SRobert Mustacchi  * any other agency or department of the United States Government. In the
10335786f68SRobert Mustacchi  * event Licensee exports any such software from the United States or
10435786f68SRobert Mustacchi  * re-exports any such software from a foreign destination, Licensee shall
10535786f68SRobert Mustacchi  * ensure that the distribution and export/re-export of the software is in
10635786f68SRobert Mustacchi  * compliance with all laws, regulations, orders, or other restrictions of the
10735786f68SRobert Mustacchi  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
10835786f68SRobert Mustacchi  * any of its subsidiaries will export/re-export any technical data, process,
10935786f68SRobert Mustacchi  * software, or service, directly or indirectly, to any country for which the
11035786f68SRobert Mustacchi  * United States government or any agency thereof requires an export license,
11135786f68SRobert Mustacchi  * other governmental approval, or letter of assurance, without first obtaining
11235786f68SRobert Mustacchi  * such license, approval or letter.
11335786f68SRobert Mustacchi  *
11435786f68SRobert Mustacchi  *****************************************************************************
11535786f68SRobert Mustacchi  *
11635786f68SRobert Mustacchi  * Alternatively, you may choose to be licensed under the terms of the
11735786f68SRobert Mustacchi  * following license:
11835786f68SRobert Mustacchi  *
11926f3cdf0SGordon Ross  * Redistribution and use in source and binary forms, with or without
12026f3cdf0SGordon Ross  * modification, are permitted provided that the following conditions
12126f3cdf0SGordon Ross  * are met:
12226f3cdf0SGordon Ross  * 1. Redistributions of source code must retain the above copyright
12326f3cdf0SGordon Ross  *    notice, this list of conditions, and the following disclaimer,
12426f3cdf0SGordon Ross  *    without modification.
12526f3cdf0SGordon Ross  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
12626f3cdf0SGordon Ross  *    substantially similar to the "NO WARRANTY" disclaimer below
12726f3cdf0SGordon Ross  *    ("Disclaimer") and any redistribution must be conditioned upon
12826f3cdf0SGordon Ross  *    including a substantially similar Disclaimer requirement for further
12926f3cdf0SGordon Ross  *    binary redistribution.
13026f3cdf0SGordon Ross  * 3. Neither the names of the above-listed copyright holders nor the names
13126f3cdf0SGordon Ross  *    of any contributors may be used to endorse or promote products derived
13226f3cdf0SGordon Ross  *    from this software without specific prior written permission.
13326f3cdf0SGordon Ross  *
13426f3cdf0SGordon Ross  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
13526f3cdf0SGordon Ross  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
13635786f68SRobert Mustacchi  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
13726f3cdf0SGordon Ross  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
13835786f68SRobert Mustacchi  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
13935786f68SRobert Mustacchi  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
14035786f68SRobert Mustacchi  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
14135786f68SRobert Mustacchi  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
14235786f68SRobert Mustacchi  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
14335786f68SRobert Mustacchi  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
14435786f68SRobert Mustacchi  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14535786f68SRobert Mustacchi  *
14635786f68SRobert Mustacchi  * Alternatively, you may choose to be licensed under the terms of the
14735786f68SRobert Mustacchi  * GNU General Public License ("GPL") version 2 as published by the Free
14835786f68SRobert Mustacchi  * Software Foundation.
14935786f68SRobert Mustacchi  *
15035786f68SRobert Mustacchi  *****************************************************************************/
1517c478bd9Sstevel@tonic-gate 
1527c478bd9Sstevel@tonic-gate #ifndef _ACAPPS
1537c478bd9Sstevel@tonic-gate #define _ACAPPS
1547c478bd9Sstevel@tonic-gate 
15535786f68SRobert Mustacchi #ifdef ACPI_USE_STANDARD_HEADERS
15635786f68SRobert Mustacchi #include <sys/stat.h>
15735786f68SRobert Mustacchi #endif /* ACPI_USE_STANDARD_HEADERS */
1587c478bd9Sstevel@tonic-gate 
15926f3cdf0SGordon Ross /* Common info for tool signons */
16026f3cdf0SGordon Ross 
16126f3cdf0SGordon Ross #define ACPICA_NAME                 "Intel ACPI Component Architecture"
16235786f68SRobert Mustacchi #define ACPICA_COPYRIGHT            "Copyright (c) 2000 - 2018 Intel Corporation"
16326f3cdf0SGordon Ross 
16426f3cdf0SGordon Ross #if ACPI_MACHINE_WIDTH == 64
16535786f68SRobert Mustacchi #define ACPI_WIDTH          " (64-bit version)"
16626f3cdf0SGordon Ross 
16726f3cdf0SGordon Ross #elif ACPI_MACHINE_WIDTH == 32
16835786f68SRobert Mustacchi #define ACPI_WIDTH          " (32-bit version)"
16926f3cdf0SGordon Ross 
17026f3cdf0SGordon Ross #else
17126f3cdf0SGordon Ross #error unknown ACPI_MACHINE_WIDTH
17235786f68SRobert Mustacchi #define ACPI_WIDTH          " (unknown bit width, not 32 or 64)"
17326f3cdf0SGordon Ross 
17426f3cdf0SGordon Ross #endif
17526f3cdf0SGordon Ross 
17626f3cdf0SGordon Ross /* Macros for signons and file headers */
17726f3cdf0SGordon Ross 
17826f3cdf0SGordon Ross #define ACPI_COMMON_SIGNON(UtilityName) \
17935786f68SRobert Mustacchi     "\n%s\n%s version %8.8X\n%s\n\n", \
18026f3cdf0SGordon Ross     ACPICA_NAME, \
18135786f68SRobert Mustacchi     UtilityName, ((UINT32) ACPI_CA_VERSION), \
18226f3cdf0SGordon Ross     ACPICA_COPYRIGHT
18326f3cdf0SGordon Ross 
18426f3cdf0SGordon Ross #define ACPI_COMMON_HEADER(UtilityName, Prefix) \
1857b1019a6SJerry Jelinek     "%s%s\n%s%s version %8.8X%s\n%s%s\n%s\n", \
18626f3cdf0SGordon Ross     Prefix, ACPICA_NAME, \
1877b1019a6SJerry Jelinek     Prefix, UtilityName, ((UINT32) ACPI_CA_VERSION), ACPI_WIDTH, \
18826f3cdf0SGordon Ross     Prefix, ACPICA_COPYRIGHT, \
18926f3cdf0SGordon Ross     Prefix
19026f3cdf0SGordon Ross 
19135786f68SRobert Mustacchi #define ACPI_COMMON_BUILD_TIME \
192*20a2a10fSRobert Mustacchi     "Build version: %s\n", ACPI_DATE
19335786f68SRobert Mustacchi 
1947b1019a6SJerry Jelinek /* Macros for usage messages */
1957b1019a6SJerry Jelinek 
1967b1019a6SJerry Jelinek #define ACPI_USAGE_HEADER(Usage) \
19735786f68SRobert Mustacchi     printf ("Usage: %s\nOptions:\n", Usage);
1987b1019a6SJerry Jelinek 
1997b1019a6SJerry Jelinek #define ACPI_USAGE_TEXT(Description) \
20035786f68SRobert Mustacchi     printf (Description);
2017b1019a6SJerry Jelinek 
2027b1019a6SJerry Jelinek #define ACPI_OPTION(Name, Description) \
20335786f68SRobert Mustacchi     printf ("  %-20s%s\n", Name, Description);
2047b1019a6SJerry Jelinek 
2057b1019a6SJerry Jelinek 
2067b1019a6SJerry Jelinek /* Check for unexpected exceptions */
2077b1019a6SJerry Jelinek 
2087b1019a6SJerry Jelinek #define ACPI_CHECK_STATUS(Name, Status, Expected) \
2097b1019a6SJerry Jelinek     if (Status != Expected) \
2107b1019a6SJerry Jelinek     { \
2117b1019a6SJerry Jelinek         AcpiOsPrintf ("Unexpected %s from %s (%s-%d)\n", \
2127b1019a6SJerry Jelinek             AcpiFormatException (Status), #Name, _AcpiModuleName, __LINE__); \
2137b1019a6SJerry Jelinek     }
2147b1019a6SJerry Jelinek 
2157b1019a6SJerry Jelinek /* Check for unexpected non-AE_OK errors */
2167b1019a6SJerry Jelinek 
2177b1019a6SJerry Jelinek 
2187b1019a6SJerry Jelinek #define ACPI_CHECK_OK(Name, Status)   ACPI_CHECK_STATUS (Name, Status, AE_OK);
2197b1019a6SJerry Jelinek 
22027f7c583Smyers #define FILE_SUFFIX_DISASSEMBLY     "dsl"
2217b1019a6SJerry Jelinek #define FILE_SUFFIX_BINARY_TABLE    ".dat" /* Needs the dot */
2227b1019a6SJerry Jelinek 
2237b1019a6SJerry Jelinek 
2247b1019a6SJerry Jelinek /* acfileio */
2257b1019a6SJerry Jelinek 
2267b1019a6SJerry Jelinek ACPI_STATUS
2277b1019a6SJerry Jelinek AcGetAllTablesFromFile (
2287b1019a6SJerry Jelinek     char                    *Filename,
2297b1019a6SJerry Jelinek     UINT8                   GetOnlyAmlTables,
2307b1019a6SJerry Jelinek     ACPI_NEW_TABLE_DESC     **ReturnListHead);
2317b1019a6SJerry Jelinek 
23235786f68SRobert Mustacchi void
23335786f68SRobert Mustacchi AcDeleteTableList (
23435786f68SRobert Mustacchi     ACPI_NEW_TABLE_DESC     *ListHead);
23535786f68SRobert Mustacchi 
2367b1019a6SJerry Jelinek BOOLEAN
2377b1019a6SJerry Jelinek AcIsFileBinary (
2387b1019a6SJerry Jelinek     FILE                    *File);
2397b1019a6SJerry Jelinek 
2407b1019a6SJerry Jelinek ACPI_STATUS
2417b1019a6SJerry Jelinek AcValidateTableHeader (
2427b1019a6SJerry Jelinek     FILE                    *File,
2437b1019a6SJerry Jelinek     long                    TableOffset);
2447b1019a6SJerry Jelinek 
2457b1019a6SJerry Jelinek 
2467b1019a6SJerry Jelinek /* Values for GetOnlyAmlTables */
2477b1019a6SJerry Jelinek 
2487b1019a6SJerry Jelinek #define ACPI_GET_ONLY_AML_TABLES    TRUE
2497b1019a6SJerry Jelinek #define ACPI_GET_ALL_TABLES         FALSE
25027f7c583Smyers 
2517c478bd9Sstevel@tonic-gate 
25257190917SDana Myers /*
25357190917SDana Myers  * getopt
25457190917SDana Myers  */
2557c478bd9Sstevel@tonic-gate int
2567c478bd9Sstevel@tonic-gate AcpiGetopt(
2577c478bd9Sstevel@tonic-gate     int                     argc,
2587c478bd9Sstevel@tonic-gate     char                    **argv,
2597c478bd9Sstevel@tonic-gate     char                    *opts);
2607c478bd9Sstevel@tonic-gate 
2617b1019a6SJerry Jelinek int
2627b1019a6SJerry Jelinek AcpiGetoptArgument (
2637b1019a6SJerry Jelinek     int                     argc,
2647b1019a6SJerry Jelinek     char                    **argv);
2657b1019a6SJerry Jelinek 
26657190917SDana Myers extern int                  AcpiGbl_Optind;
26726f3cdf0SGordon Ross extern int                  AcpiGbl_Opterr;
2687b1019a6SJerry Jelinek extern int                  AcpiGbl_SubOptChar;
26957190917SDana Myers extern char                 *AcpiGbl_Optarg;
27057190917SDana Myers 
27157190917SDana Myers 
27227f7c583Smyers /*
2737b1019a6SJerry Jelinek  * cmfsize - Common get file size function
27427f7c583Smyers  */
2757b1019a6SJerry Jelinek UINT32
2767b1019a6SJerry Jelinek CmGetFileSize (
2777b1019a6SJerry Jelinek     ACPI_FILE               File);
27857190917SDana Myers 
2797c478bd9Sstevel@tonic-gate 
28027f7c583Smyers /*
28127f7c583Smyers  * adwalk
28227f7c583Smyers  */
28327f7c583Smyers void
28427f7c583Smyers AcpiDmCrossReferenceNamespace (
28527f7c583Smyers     ACPI_PARSE_OBJECT       *ParseTreeRoot,
286aa2aa9a6SDana Myers     ACPI_NAMESPACE_NODE     *NamespaceRoot,
287aa2aa9a6SDana Myers     ACPI_OWNER_ID           OwnerId);
28827f7c583Smyers 
28927f7c583Smyers void
29027f7c583Smyers AcpiDmDumpTree (
29127f7c583Smyers     ACPI_PARSE_OBJECT       *Origin);
29227f7c583Smyers 
29327f7c583Smyers void
29427f7c583Smyers AcpiDmFindOrphanMethods (
29527f7c583Smyers     ACPI_PARSE_OBJECT       *Origin);
29627f7c583Smyers 
29727f7c583Smyers void
29827f7c583Smyers AcpiDmFinishNamespaceLoad (
29927f7c583Smyers     ACPI_PARSE_OBJECT       *ParseTreeRoot,
300aa2aa9a6SDana Myers     ACPI_NAMESPACE_NODE     *NamespaceRoot,
301aa2aa9a6SDana Myers     ACPI_OWNER_ID           OwnerId);
30227f7c583Smyers 
30327f7c583Smyers void
30435786f68SRobert Mustacchi AcpiDmConvertParseObjects (
30527f7c583Smyers     ACPI_PARSE_OBJECT       *ParseTreeRoot,
30627f7c583Smyers     ACPI_NAMESPACE_NODE     *NamespaceRoot);
30727f7c583Smyers 
30857190917SDana Myers 
30927f7c583Smyers /*
31027f7c583Smyers  * adfile
31127f7c583Smyers  */
31227f7c583Smyers ACPI_STATUS
31327f7c583Smyers AdInitialize (
31427f7c583Smyers     void);
31527f7c583Smyers 
31627f7c583Smyers char *
31727f7c583Smyers FlGenerateFilename (
31827f7c583Smyers     char                    *InputFilename,
31927f7c583Smyers     char                    *Suffix);
32027f7c583Smyers 
32127f7c583Smyers ACPI_STATUS
32227f7c583Smyers FlSplitInputPathname (
32327f7c583Smyers     char                    *InputPath,
32427f7c583Smyers     char                    **OutDirectoryPath,
32527f7c583Smyers     char                    **OutFilename);
32627f7c583Smyers 
32735786f68SRobert Mustacchi char *
32835786f68SRobert Mustacchi FlGetFileBasename (
32935786f68SRobert Mustacchi     char                    *FilePathname);
33035786f68SRobert Mustacchi 
33127f7c583Smyers char *
33227f7c583Smyers AdGenerateFilename (
33327f7c583Smyers     char                    *Prefix,
33427f7c583Smyers     char                    *TableId);
33527f7c583Smyers 
33627f7c583Smyers void
33727f7c583Smyers AdWriteTable (
33827f7c583Smyers     ACPI_TABLE_HEADER       *Table,
33927f7c583Smyers     UINT32                  Length,
34027f7c583Smyers     char                    *TableName,
34127f7c583Smyers     char                    *OemTableId);
3427c478bd9Sstevel@tonic-gate 
3437c478bd9Sstevel@tonic-gate #endif /* _ACAPPS */
344