Merge branch 'dt' into next
This commit is contained in:
@@ -1,47 +0,0 @@
|
||||
#ifndef _PPC64_PSERIES_RECONFIG_H
|
||||
#define _PPC64_PSERIES_RECONFIG_H
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#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
|
||||
#define PSERIES_DRCONF_MEM_ADD 0x0003
|
||||
#define PSERIES_DRCONF_MEM_REMOVE 0x0004
|
||||
#define PSERIES_UPDATE_PROPERTY 0x0005
|
||||
|
||||
/**
|
||||
* pSeries_reconfig_notify - Notifier value structure for OFDT property updates
|
||||
*
|
||||
* @node: Device tree node which owns the property being updated
|
||||
* @property: Updated property
|
||||
*/
|
||||
struct pSeries_reconfig_prop_update {
|
||||
struct device_node *node;
|
||||
struct property *property;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_PPC_PSERIES
|
||||
extern int pSeries_reconfig_notifier_register(struct notifier_block *);
|
||||
extern void pSeries_reconfig_notifier_unregister(struct notifier_block *);
|
||||
extern int pSeries_reconfig_notify(unsigned long action, void *p);
|
||||
/* Not the best place to put this, will be fixed when we move some
|
||||
* of the rtas suspend-me stuff to pseries */
|
||||
extern void pSeries_coalesce_init(void);
|
||||
#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) { }
|
||||
static inline void pSeries_coalesce_init(void) { }
|
||||
#endif /* CONFIG_PPC_PSERIES */
|
||||
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* _PPC64_PSERIES_RECONFIG_H */
|
@@ -58,6 +58,22 @@ static inline int of_node_to_nid(struct device_node *device) { return 0; }
|
||||
|
||||
extern void of_instantiate_rtc(void);
|
||||
|
||||
/* The of_drconf_cell struct defines the layout of the LMB array
|
||||
* specified in the device tree property
|
||||
* ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory
|
||||
*/
|
||||
struct of_drconf_cell {
|
||||
u64 base_addr;
|
||||
u32 drc_index;
|
||||
u32 reserved;
|
||||
u32 aa_index;
|
||||
u32 flags;
|
||||
};
|
||||
|
||||
#define DRCONF_MEM_ASSIGNED 0x00000008
|
||||
#define DRCONF_MEM_AI_INVALID 0x00000040
|
||||
#define DRCONF_MEM_RESERVED 0x00000080
|
||||
|
||||
/* These includes are put at the bottom because they may contain things
|
||||
* that are overridden by this file. Ideally they shouldn't be included
|
||||
* by this file, but there are a bunch of .c files that currently depend
|
||||
|
@@ -353,8 +353,13 @@ static inline int page_is_rtas_user_buf(unsigned long pfn)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Not the best place to put pSeries_coalesce_init, will be fixed when we
|
||||
* move some of the rtas suspend-me stuff to pseries */
|
||||
extern void pSeries_coalesce_init(void);
|
||||
#else
|
||||
static inline int page_is_rtas_user_buf(unsigned long pfn) { return 0;}
|
||||
static inline void pSeries_coalesce_init(void) { }
|
||||
#endif
|
||||
|
||||
extern int call_rtas(const char *, int, int, unsigned long *, ...);
|
||||
|
Reference in New Issue
Block a user