diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-30 21:37:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-30 21:37:27 -0500 |
commit | 8af03e782cae1e0a0f530ddd22301cdd12cf9dc0 (patch) | |
tree | c4af13a38bd3cc1a811a37f2358491f171052070 /include/asm-powerpc/nvram.h | |
parent | 6232665040f9a23fafd9d94d4ae8d5a2dc850f65 (diff) | |
parent | 99e139126ab2e84be67969650f92eb37c12ab5cd (diff) |
Merge branch 'for-2.6.25' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'for-2.6.25' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (454 commits)
[POWERPC] Cell IOMMU fixed mapping support
[POWERPC] Split out the ioid fetching/checking logic
[POWERPC] Add support to cell_iommu_setup_page_tables() for multiple windows
[POWERPC] Split out the IOMMU logic from cell_dma_dev_setup()
[POWERPC] Split cell_iommu_setup_hardware() into two parts
[POWERPC] Split out the logic that allocates struct iommus
[POWERPC] Allocate the hash table under 1G on cell
[POWERPC] Add set_dma_ops() to match get_dma_ops()
[POWERPC] 83xx: Clean up / convert mpc83xx board DTS files to v1 format.
[POWERPC] 85xx: Only invalidate TLB0 and TLB1
[POWERPC] 83xx: Fix typo in mpc837x compatible entries
[POWERPC] 85xx: convert sbc85* boards to use machine_device_initcall
[POWERPC] 83xx: rework platform Kconfig
[POWERPC] 85xx: rework platform Kconfig
[POWERPC] 86xx: Remove unused IRQ defines
[POWERPC] QE: Explicitly set address-cells and size cells for muram
[POWERPC] Convert StorCenter DTS file to /dts-v1/ format.
[POWERPC] 86xx: Convert all 86xx DTS files to /dts-v1/ format.
[PPC] Remove 85xx from arch/ppc
[PPC] Remove 83xx from arch/ppc
...
Diffstat (limited to 'include/asm-powerpc/nvram.h')
-rw-r--r-- | include/asm-powerpc/nvram.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-powerpc/nvram.h b/include/asm-powerpc/nvram.h index 9877982508bf..4e7059cc6113 100644 --- a/include/asm-powerpc/nvram.h +++ b/include/asm-powerpc/nvram.h | |||
@@ -10,6 +10,8 @@ | |||
10 | #ifndef _ASM_POWERPC_NVRAM_H | 10 | #ifndef _ASM_POWERPC_NVRAM_H |
11 | #define _ASM_POWERPC_NVRAM_H | 11 | #define _ASM_POWERPC_NVRAM_H |
12 | 12 | ||
13 | #include <linux/errno.h> | ||
14 | |||
13 | #define NVRW_CNT 0x20 | 15 | #define NVRW_CNT 0x20 |
14 | #define NVRAM_HEADER_LEN 16 /* sizeof(struct nvram_header) */ | 16 | #define NVRAM_HEADER_LEN 16 /* sizeof(struct nvram_header) */ |
15 | #define NVRAM_BLOCK_LEN 16 | 17 | #define NVRAM_BLOCK_LEN 16 |
@@ -71,7 +73,16 @@ extern int nvram_clear_error_log(void); | |||
71 | extern struct nvram_partition *nvram_find_partition(int sig, const char *name); | 73 | extern struct nvram_partition *nvram_find_partition(int sig, const char *name); |
72 | 74 | ||
73 | extern int pSeries_nvram_init(void); | 75 | extern int pSeries_nvram_init(void); |
76 | |||
77 | #ifdef CONFIG_MMIO_NVRAM | ||
74 | extern int mmio_nvram_init(void); | 78 | extern int mmio_nvram_init(void); |
79 | #else | ||
80 | static inline int mmio_nvram_init(void) | ||
81 | { | ||
82 | return -ENODEV; | ||
83 | } | ||
84 | #endif | ||
85 | |||
75 | #endif /* __KERNEL__ */ | 86 | #endif /* __KERNEL__ */ |
76 | 87 | ||
77 | /* PowerMac specific nvram stuffs */ | 88 | /* PowerMac specific nvram stuffs */ |