powerpc: Merge in the ppc64 version of the prom code.
This brings in the ppc64 version of prom_init.c, prom.c and btext.c and makes them work for ppc32. This also brings in the new calling convention, where the first entry to the kernel (with r5 != 0) goes to the prom_init code, which then restarts from the beginning (with r5 == 0) after it has done its stuff. For now this also brings in the ppc32 version of setup.c. It also merges lmb.h. Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
25
include/asm-powerpc/pSeries_reconfig.h
Normal file
25
include/asm-powerpc/pSeries_reconfig.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef _PPC64_PSERIES_RECONFIG_H
|
||||
#define _PPC64_PSERIES_RECONFIG_H
|
||||
|
||||
#include <linux/notifier.h>
|
||||
|
||||
/*
|
||||
* Use this API if your code needs to know about OF device nodes being
|
||||
* added or removed on pSeries systems.
|
||||
*/
|
||||
|
||||
#define PSERIES_RECONFIG_ADD 0x0001
|
||||
#define PSERIES_RECONFIG_REMOVE 0x0002
|
||||
|
||||
#ifdef CONFIG_PPC_PSERIES
|
||||
extern int pSeries_reconfig_notifier_register(struct notifier_block *);
|
||||
extern void pSeries_reconfig_notifier_unregister(struct notifier_block *);
|
||||
#else /* !CONFIG_PPC_PSERIES */
|
||||
static inline int pSeries_reconfig_notifier_register(struct notifier_block *nb)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline void pSeries_reconfig_notifier_unregister(struct notifier_block *nb) { }
|
||||
#endif /* CONFIG_PPC_PSERIES */
|
||||
|
||||
#endif /* _PPC64_PSERIES_RECONFIG_H */
|
Reference in New Issue
Block a user