mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 10:44:23 +08:00
bf944c370a
This broke sparc64 in various ways. Add an empty dummy hook in sparc32's prom_32.c so that we can potentially handle things on that side similarly, and in particular avoid a prom_common.c ifdef :-) Signed-off-by: David S. Miller <davem@davemloft.net>
30 lines
674 B
C
30 lines
674 B
C
#ifndef __PROM_H
|
|
#define __PROM_H
|
|
|
|
#include <linux/spinlock.h>
|
|
#include <asm/prom.h>
|
|
|
|
extern struct device_node *allnodes; /* temporary while merging */
|
|
extern rwlock_t devtree_lock; /* temporary while merging */
|
|
|
|
extern void * prom_early_alloc(unsigned long size);
|
|
extern void irq_trans_init(struct device_node *dp);
|
|
|
|
extern unsigned int prom_unique_id;
|
|
|
|
static inline int is_root_node(const struct device_node *dp)
|
|
{
|
|
if (!dp)
|
|
return 0;
|
|
|
|
return (dp->parent == NULL);
|
|
}
|
|
|
|
extern char *build_path_component(struct device_node *dp);
|
|
extern void of_console_init(void);
|
|
extern void of_fill_in_cpu_data(void);
|
|
|
|
extern unsigned int prom_early_allocated;
|
|
|
|
#endif /* __PROM_H */
|