~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to arch/powerpc/include/asm/prom.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <linux/of.h>   /* linux/of.h gets to determine #include ordering */
2
1
#ifndef _POWERPC_PROM_H
3
2
#define _POWERPC_PROM_H
4
3
#ifdef __KERNEL__
20
19
#include <asm/irq.h>
21
20
#include <linux/atomic.h>
22
21
 
23
 
#define HAVE_ARCH_DEVTREE_FIXUPS
 
22
/* These includes should be removed once implicit includes are cleaned up. */
 
23
#include <linux/of.h>
 
24
#include <linux/of_fdt.h>
 
25
#include <linux/of_address.h>
 
26
#include <linux/of_irq.h>
 
27
#include <linux/platform_device.h>
24
28
 
25
29
/*
26
30
 * OF address retreival & translation
27
31
 */
28
32
 
29
 
/* Translate a DMA address from device space to CPU space */
30
 
extern u64 of_translate_dma_address(struct device_node *dev,
31
 
                                    const __be32 *in_addr);
32
 
 
33
 
#ifdef CONFIG_PCI
34
 
extern unsigned long pci_address_to_pio(phys_addr_t address);
35
 
#define pci_address_to_pio pci_address_to_pio
36
 
#endif  /* CONFIG_PCI */
37
 
 
38
33
/* Parse the ibm,dma-window property of an OF node into the busno, phys and
39
34
 * size parameters.
40
35
 */
44
39
 
45
40
extern void kdump_move_device_tree(void);
46
41
 
47
 
/* cache lookup */
48
 
struct device_node *of_find_next_cache_node(struct device_node *np);
49
 
 
50
 
#ifdef CONFIG_NUMA
51
 
extern int of_node_to_nid(struct device_node *device);
52
 
#else
53
 
static inline int of_node_to_nid(struct device_node *device) { return 0; }
54
 
#endif
55
 
#define of_node_to_nid of_node_to_nid
56
 
 
57
42
extern void of_instantiate_rtc(void);
58
43
 
59
44
extern int of_get_ibm_chip_id(struct device_node *np);
143
128
 */
144
129
extern unsigned char ibm_architecture_vec[];
145
130
 
146
 
/* These includes are put at the bottom because they may contain things
147
 
 * that are overridden by this file.  Ideally they shouldn't be included
148
 
 * by this file, but there are a bunch of .c files that currently depend
149
 
 * on it.  Eventually they will be cleaned up. */
150
 
#include <linux/of_fdt.h>
151
 
#include <linux/of_address.h>
152
 
#include <linux/of_irq.h>
153
 
#include <linux/platform_device.h>
154
 
 
155
131
#endif /* __KERNEL__ */
156
132
#endif /* _POWERPC_PROM_H */