aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/prom.h
blob: a8591ef2636d4e55a64738e836c4a084a840d71c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __PROM_H
#define __PROM_H

#include <linux/spinlock.h>
#include <asm/prom.h>

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 unsigned int prom_early_allocated;

#endif /* __PROM_H */