blob: e46f2a2b57a11b986ea73505f902c7d5f3acc2e7 [file] [log] [blame]
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +01001/*
2 * Definitions for Device tree / OpenFirmware handling on X86
3 *
4 * based on arch/powerpc/include/asm/prom.h which is
5 * Copyright (C) 1996-2005 Paul Mackerras.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version
10 * 2 of the License, or (at your option) any later version.
11 */
12
13#ifndef _ASM_X86_PROM_H
14#define _ASM_X86_PROM_H
15#ifndef __ASSEMBLY__
16
17#include <linux/of.h>
18#include <linux/types.h>
19
20#include <asm/irq.h>
21#include <asm/atomic.h>
22#include <asm/setup.h>
23
24#ifdef CONFIG_OF
25extern void add_dtb(u64 data);
26#else
27static inline void add_dtb(u64 data) { }
28#endif
29
30extern char cmd_line[COMMAND_LINE_SIZE];
31
32#define pci_address_to_pio pci_address_to_pio
33unsigned long pci_address_to_pio(phys_addr_t addr);
34
35/**
36 * irq_dispose_mapping - Unmap an interrupt
37 * @virq: linux virq number of the interrupt to unmap
38 *
39 * FIXME: We really should implement proper virq handling like power,
40 * but that's going to be major surgery.
41 */
42static inline void irq_dispose_mapping(unsigned int virq) { }
43
44#define HAVE_ARCH_DEVTREE_FIXUPS
45
46#endif /* __ASSEMBLY__ */
47#endif