-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
- Loading branch information
Showing
14 changed files
with
332 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Size (in MB) of boot-time virtual address space coverage | ||
CONFIG_EARLY_VIRT_MEM=8 | ||
CONFIG_LIBPFM=n | ||
CONFIG_ACPICA=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ cscope.* | |
*.img | ||
Makeconf.local | ||
.DS_Store | ||
drivers/acpi/acpica/source/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/****************************************************************************** | ||
* | ||
* Name: acktf.h - OS specific defines, etc. for KTF | ||
* | ||
*****************************************************************************/ | ||
|
||
/****************************************************************************** | ||
* | ||
* 1. Copyright Notice | ||
* | ||
* Some or all of this work - Copyright (c) 1999 - 2021, Intel Corp. | ||
* All rights reserved. | ||
* | ||
* 2. License | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions, and the following disclaimer, | ||
* without modification. | ||
* 2. Redistributions in binary form must reproduce at minimum a disclaimer | ||
* substantially similar to the "NO WARRANTY" disclaimer below | ||
* ("Disclaimer") and any redistribution must be conditioned upon | ||
* including a substantially similar Disclaimer requirement for further | ||
* binary redistribution. | ||
* 3. Neither the names of the above-listed copyright holders nor the names | ||
* of any contributors may be used to endorse or promote products derived | ||
* from this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
*****************************************************************************/ | ||
|
||
#ifdef KTF_ACPICA | ||
|
||
#ifndef __ACKTF_H__ | ||
#define __ACKTF_H__ | ||
|
||
/* Common (in-kernel/user-space) ACPICA configuration */ | ||
|
||
#define ACPI_USE_SYSTEM_CLIBRARY | ||
#define ACPI_USE_DO_WHILE_0 | ||
#define ACPI_USE_LOCAL_CACHE | ||
|
||
/* Kernel specific ACPICA configuration */ | ||
|
||
#define ACPI_DEBUG_OUTPUT | ||
|
||
#include <spinlock.h> | ||
#include <string.h> | ||
|
||
#include "acenv.h" | ||
|
||
#define ACPI_INIT_FUNCTION | ||
#define ACPI_CACHE_T ACPI_MEMORY_LIST | ||
|
||
/* Host-dependent types and defines for in-kernel ACPICA */ | ||
|
||
#define ACPI_EXPORT_SYMBOL(symbol) | ||
|
||
#define ACPI_SPINLOCK spinlock_t * | ||
#define ACPI_CPU_FLAGS unsigned long | ||
|
||
#define ACPI_MSG_ERROR "ACPI Error: " | ||
#define ACPI_MSG_EXCEPTION "ACPI Exception: " | ||
#define ACPI_MSG_WARNING "ACPI Warning: " | ||
#define ACPI_MSG_INFO "ACPI: " | ||
|
||
#define ACPI_MSG_BIOS_ERROR "ACPI BIOS Error (bug): " | ||
#define ACPI_MSG_BIOS_WARNING "ACPI BIOS Warning (bug): " | ||
|
||
#ifndef __init | ||
#define __init | ||
#endif | ||
#ifndef __iomem | ||
#define __iomem | ||
#endif | ||
|
||
#if defined(__x86_64__) | ||
#define ACPI_MACHINE_WIDTH 64 | ||
#define COMPILER_DEPENDENT_INT64 long | ||
#define COMPILER_DEPENDENT_UINT64 unsigned long | ||
#else | ||
#define ACPI_MACHINE_WIDTH 32 | ||
#define COMPILER_DEPENDENT_INT64 long long | ||
#define COMPILER_DEPENDENT_UINT64 unsigned long long | ||
#endif | ||
|
||
#endif /* __ACKTF_H__ */ | ||
#endif /* KTF_ACPICA */ |
Oops, something went wrong.