1046a2985Schristos /****************************************************************************** 2046a2985Schristos * 3046a2985Schristos * Module Name: aczephyr.h - OS specific defines, etc. 4046a2985Schristos * 5046a2985Schristos *****************************************************************************/ 6046a2985Schristos 7046a2985Schristos /* 8046a2985Schristos * Copyright (C) 2000 - 2023, Intel Corp. 9046a2985Schristos * All rights reserved. 10046a2985Schristos * 11046a2985Schristos * Redistribution and use in source and binary forms, with or without 12046a2985Schristos * modification, are permitted provided that the following conditions 13046a2985Schristos * are met: 14046a2985Schristos * 1. Redistributions of source code must retain the above copyright 15046a2985Schristos * notice, this list of conditions, and the following disclaimer, 16046a2985Schristos * without modification. 17046a2985Schristos * 2. Redistributions in binary form must reproduce at minimum a disclaimer 18046a2985Schristos * substantially similar to the "NO WARRANTY" disclaimer below 19046a2985Schristos * ("Disclaimer") and any redistribution must be conditioned upon 20046a2985Schristos * including a substantially similar Disclaimer requirement for further 21046a2985Schristos * binary redistribution. 22046a2985Schristos * 3. Neither the names of the above-listed copyright holders nor the names 23046a2985Schristos * of any contributors may be used to endorse or promote products derived 24046a2985Schristos * from this software without specific prior written permission. 25046a2985Schristos * 26046a2985Schristos * Alternatively, this software may be distributed under the terms of the 27046a2985Schristos * GNU General Public License ("GPL") version 2 as published by the Free 28046a2985Schristos * Software Foundation. 29046a2985Schristos * 30046a2985Schristos * NO WARRANTY 31046a2985Schristos * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 32046a2985Schristos * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 33046a2985Schristos * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 34046a2985Schristos * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 35046a2985Schristos * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 36046a2985Schristos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37046a2985Schristos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38046a2985Schristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 39046a2985Schristos * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 40046a2985Schristos * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 41046a2985Schristos * POSSIBILITY OF SUCH DAMAGES. 42046a2985Schristos */ 43046a2985Schristos 44046a2985Schristos #ifndef __ACZEPHYR_H__ 45046a2985Schristos #define __ACZEPHYR_H__ 46046a2985Schristos 47*c7960b37Schristos #if defined(__x86_64__) 48046a2985Schristos #define ACPI_MACHINE_WIDTH 64 49*c7960b37Schristos #else 50*c7960b37Schristos #define ACPI_32BIT_PHYSICAL_ADDRESS 51*c7960b37Schristos #define ACPI_MACHINE_WIDTH 32 52*c7960b37Schristos #define ACPI_USE_NATIVE_DIVIDE 53*c7960b37Schristos #define ACPI_USE_NATIVE_MATH64 54*c7960b37Schristos #endif 55*c7960b37Schristos 56*c7960b37Schristos #define COMPILER_DEPENDENT_INT64 long long 57*c7960b37Schristos #define COMPILER_DEPENDENT_UINT64 unsigned long long 58046a2985Schristos 59046a2985Schristos #define ACPI_NO_ERROR_MESSAGES 60046a2985Schristos #undef ACPI_DEBUG_OUTPUT 61046a2985Schristos #define ACPI_USE_SYSTEM_CLIBRARY 62046a2985Schristos #undef ACPI_DBG_TRACK_ALLOCATIONS 63046a2985Schristos #define ACPI_SINGLE_THREADED 64046a2985Schristos #define ACPI_USE_NATIVE_RSDP_POINTER 65046a2985Schristos 66046a2985Schristos #include <zephyr/kernel.h> 67046a2985Schristos #include <zephyr/device.h> 68046a2985Schristos #include <stdio.h> 69046a2985Schristos #include <stdlib.h> 70046a2985Schristos #include <string.h> 71046a2985Schristos #include <ctype.h> 72046a2985Schristos #include <zephyr/fs/fs.h> 73046a2985Schristos #include <zephyr/sys/printk.h> 74046a2985Schristos #include <zephyr/sys/__assert.h> 75046a2985Schristos 76046a2985Schristos 77046a2985Schristos /****************************************************************************** 78046a2985Schristos * 79046a2985Schristos * FUNCTION: AcpiEnableDbgPrint 80046a2985Schristos * 81046a2985Schristos * PARAMETERS: Enable, - Enable/Disable debug print 82046a2985Schristos * 83046a2985Schristos * RETURN: None 84046a2985Schristos * 85046a2985Schristos * DESCRIPTION: Enable/disable debug print 86046a2985Schristos * 87046a2985Schristos *****************************************************************************/ 88046a2985Schristos 89046a2985Schristos void AcpiEnableDbgPrint ( 90046a2985Schristos bool Enable); 91046a2985Schristos #endif 92