-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SMBIOS is important for server hardware vendors. It implements a spec for providing descriptive information about the platform. Things like serial numbers, physical layout of the ports, build configuration data, and the like. Signed-off-by: Yi Li <yi.li@linaro.org> Tested-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Tested-by: Leif Lindholm <leif.lindholm@linaro.org> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
- Loading branch information
Yi Li
authored and
Ard Biesheuvel
committed
Nov 5, 2014
1 parent
fc43026
commit d1ae8c0
Showing
3 changed files
with
55 additions
and
0 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
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,31 @@ | ||
/* | ||
* arch/arm64/include/asm/dmi.h | ||
* | ||
* Copyright (C) 2013 Linaro Limited. | ||
* Written by: Yi Li (yi.li@linaro.org) | ||
* | ||
* based on arch/ia64/include/asm/dmi.h | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
|
||
#ifndef __ASM_DMI_H | ||
#define __ASM_DMI_H | ||
|
||
#include <linux/io.h> | ||
#include <linux/slab.h> | ||
|
||
/* | ||
* According to section 2.3.6 of the UEFI spec, the firmware should not | ||
* request a virtual mapping for configuration tables such as SMBIOS. | ||
* This means we have to map them before use. | ||
*/ | ||
#define dmi_early_remap(x, l) ioremap_cache(x, l) | ||
#define dmi_early_unmap(x, l) iounmap(x) | ||
#define dmi_remap(x, l) ioremap_cache(x, l) | ||
#define dmi_unmap(x) iounmap(x) | ||
#define dmi_alloc(l) kzalloc(l, GFP_KERNEL) | ||
|
||
#endif |
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