-
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.
[PATCH] ppc64: make firmware_has_feature() stronger
Make firmware_has_feature() evaluate at compile time for the non pSeries case and tidy up code where possible. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
- Loading branch information
Stephen Rothwell
authored and
Paul Mackerras
committed
Aug 29, 2005
1 parent
1ababe1
commit 8d15a3e
Showing
8 changed files
with
73 additions
and
42 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
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,47 @@ | ||
/* | ||
* arch/ppc64/kernel/firmware.c | ||
* | ||
* Extracted from cputable.c | ||
* | ||
* Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) | ||
* | ||
* Modifications for ppc64: | ||
* Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> | ||
* Copyright (C) 2005 Stephen Rothwell, IBM Corporation | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version | ||
* 2 of the License, or (at your option) any later version. | ||
*/ | ||
|
||
#include <linux/config.h> | ||
|
||
#include <asm/firmware.h> | ||
|
||
unsigned long ppc64_firmware_features; | ||
|
||
#ifdef CONFIG_PPC_PSERIES | ||
firmware_feature_t firmware_features_table[FIRMWARE_MAX_FEATURES] = { | ||
{FW_FEATURE_PFT, "hcall-pft"}, | ||
{FW_FEATURE_TCE, "hcall-tce"}, | ||
{FW_FEATURE_SPRG0, "hcall-sprg0"}, | ||
{FW_FEATURE_DABR, "hcall-dabr"}, | ||
{FW_FEATURE_COPY, "hcall-copy"}, | ||
{FW_FEATURE_ASR, "hcall-asr"}, | ||
{FW_FEATURE_DEBUG, "hcall-debug"}, | ||
{FW_FEATURE_PERF, "hcall-perf"}, | ||
{FW_FEATURE_DUMP, "hcall-dump"}, | ||
{FW_FEATURE_INTERRUPT, "hcall-interrupt"}, | ||
{FW_FEATURE_MIGRATE, "hcall-migrate"}, | ||
{FW_FEATURE_PERFMON, "hcall-perfmon"}, | ||
{FW_FEATURE_CRQ, "hcall-crq"}, | ||
{FW_FEATURE_VIO, "hcall-vio"}, | ||
{FW_FEATURE_RDMA, "hcall-rdma"}, | ||
{FW_FEATURE_LLAN, "hcall-lLAN"}, | ||
{FW_FEATURE_BULK, "hcall-bulk"}, | ||
{FW_FEATURE_XDABR, "hcall-xdabr"}, | ||
{FW_FEATURE_MULTITCE, "hcall-multi-tce"}, | ||
{FW_FEATURE_SPLPAR, "hcall-splpar"}, | ||
}; | ||
#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
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