Home | History | Annotate | Line # | Download | only in acpibin
acpibin.h revision 1.1.1.11
      1       1.1    jruoho /******************************************************************************
      2       1.1    jruoho  *
      3       1.1    jruoho  * Module Name: acpibinh - Include file for AcpiBin utility
      4       1.1    jruoho  *
      5       1.1    jruoho  *****************************************************************************/
      6       1.1    jruoho 
      7       1.1    jruoho /*
      8  1.1.1.11  christos  * Copyright (C) 2000 - 2021, Intel Corp.
      9       1.1    jruoho  * All rights reserved.
     10       1.1    jruoho  *
     11       1.1    jruoho  * Redistribution and use in source and binary forms, with or without
     12       1.1    jruoho  * modification, are permitted provided that the following conditions
     13       1.1    jruoho  * are met:
     14       1.1    jruoho  * 1. Redistributions of source code must retain the above copyright
     15       1.1    jruoho  *    notice, this list of conditions, and the following disclaimer,
     16       1.1    jruoho  *    without modification.
     17       1.1    jruoho  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
     18       1.1    jruoho  *    substantially similar to the "NO WARRANTY" disclaimer below
     19       1.1    jruoho  *    ("Disclaimer") and any redistribution must be conditioned upon
     20       1.1    jruoho  *    including a substantially similar Disclaimer requirement for further
     21       1.1    jruoho  *    binary redistribution.
     22       1.1    jruoho  * 3. Neither the names of the above-listed copyright holders nor the names
     23       1.1    jruoho  *    of any contributors may be used to endorse or promote products derived
     24       1.1    jruoho  *    from this software without specific prior written permission.
     25       1.1    jruoho  *
     26       1.1    jruoho  * Alternatively, this software may be distributed under the terms of the
     27       1.1    jruoho  * GNU General Public License ("GPL") version 2 as published by the Free
     28       1.1    jruoho  * Software Foundation.
     29       1.1    jruoho  *
     30       1.1    jruoho  * NO WARRANTY
     31       1.1    jruoho  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     32       1.1    jruoho  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     33  1.1.1.11  christos  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     34       1.1    jruoho  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     35       1.1    jruoho  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     36       1.1    jruoho  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     37       1.1    jruoho  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     38       1.1    jruoho  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     39       1.1    jruoho  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
     40       1.1    jruoho  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     41       1.1    jruoho  * POSSIBILITY OF SUCH DAMAGES.
     42       1.1    jruoho  */
     43       1.1    jruoho 
     44       1.1    jruoho #include "acpi.h"
     45       1.1    jruoho #include "accommon.h"
     46   1.1.1.6  christos #include "acapps.h"
     47       1.1    jruoho 
     48       1.1    jruoho #define DB_CONSOLE_OUTPUT            0x02
     49       1.1    jruoho #define ACPI_DB_REDIRECTABLE_OUTPUT  0x01
     50       1.1    jruoho 
     51       1.1    jruoho /*
     52   1.1.1.2  christos  * Global variables. Defined in main.c only, externed in all other files
     53       1.1    jruoho  */
     54       1.1    jruoho #ifdef _DECLARE_GLOBALS
     55       1.1    jruoho #define EXTERN
     56       1.1    jruoho #define INIT_GLOBAL(a,b)        a=b
     57       1.1    jruoho #else
     58       1.1    jruoho #define EXTERN                  extern
     59       1.1    jruoho #define INIT_GLOBAL(a,b)        a
     60       1.1    jruoho #endif
     61       1.1    jruoho 
     62       1.1    jruoho 
     63       1.1    jruoho /* Globals */
     64       1.1    jruoho 
     65       1.1    jruoho EXTERN BOOLEAN              INIT_GLOBAL (Gbl_TerseMode, FALSE);
     66   1.1.1.7  christos EXTERN BOOLEAN              INIT_GLOBAL (AbGbl_DisplayAllMiscompares, FALSE);
     67   1.1.1.7  christos EXTERN UINT32               INIT_GLOBAL (AbGbl_CompareOffset, 0);
     68       1.1    jruoho 
     69       1.1    jruoho 
     70       1.1    jruoho /* Prototypes */
     71       1.1    jruoho 
     72       1.1    jruoho int
     73       1.1    jruoho AbCompareAmlFiles (
     74       1.1    jruoho     char                    *File1Path,
     75       1.1    jruoho     char                    *File2Path);
     76       1.1    jruoho 
     77       1.1    jruoho int
     78       1.1    jruoho AbDumpAmlFile (
     79       1.1    jruoho     char                    *File1Path,
     80       1.1    jruoho     char                    *File2Path);
     81       1.1    jruoho 
     82       1.1    jruoho void
     83       1.1    jruoho AbComputeChecksum (
     84       1.1    jruoho     char                    *File1Path);
     85       1.1    jruoho 
     86       1.1    jruoho void
     87       1.1    jruoho AbDisplayHeader (
     88       1.1    jruoho     char                    *File1Path);
     89