2011-02-22 20:07:37 +00:00
|
|
|
/*
|
|
|
|
* Definitions for Device tree / OpenFirmware handling on X86
|
|
|
|
*
|
|
|
|
* based on arch/powerpc/include/asm/prom.h which is
|
|
|
|
* Copyright (C) 1996-2005 Paul Mackerras.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version
|
|
|
|
* 2 of the License, or (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_X86_PROM_H
|
|
|
|
#define _ASM_X86_PROM_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
#include <linux/of.h>
|
|
|
|
#include <linux/types.h>
|
2011-02-22 20:07:42 +00:00
|
|
|
#include <linux/pci.h>
|
2011-02-22 20:07:37 +00:00
|
|
|
|
|
|
|
#include <asm/irq.h>
|
2011-07-26 23:09:06 +00:00
|
|
|
#include <linux/atomic.h>
|
2011-02-22 20:07:37 +00:00
|
|
|
#include <asm/setup.h>
|
2011-02-22 20:07:39 +00:00
|
|
|
#include <asm/irq_controller.h>
|
2011-02-22 20:07:37 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_OF
|
2011-02-22 20:07:40 +00:00
|
|
|
extern int of_ioapic;
|
|
|
|
extern u64 initial_dtb;
|
2011-02-22 20:07:37 +00:00
|
|
|
extern void add_dtb(u64 data);
|
2011-02-22 20:07:44 +00:00
|
|
|
extern void x86_add_irq_domains(void);
|
2011-02-22 20:07:42 +00:00
|
|
|
void __cpuinit x86_of_pci_init(void);
|
2011-02-25 15:09:31 +00:00
|
|
|
void x86_dtb_init(void);
|
2011-02-22 20:07:37 +00:00
|
|
|
#else
|
|
|
|
static inline void add_dtb(u64 data) { }
|
2011-02-22 20:07:44 +00:00
|
|
|
static inline void x86_add_irq_domains(void) { }
|
2011-02-22 20:07:42 +00:00
|
|
|
static inline void x86_of_pci_init(void) { }
|
2011-02-25 15:09:31 +00:00
|
|
|
static inline void x86_dtb_init(void) { }
|
2011-02-22 20:07:40 +00:00
|
|
|
#define of_ioapic 0
|
2011-02-22 20:07:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
extern char cmd_line[COMMAND_LINE_SIZE];
|
|
|
|
|
|
|
|
#define pci_address_to_pio pci_address_to_pio
|
|
|
|
unsigned long pci_address_to_pio(phys_addr_t addr);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* irq_dispose_mapping - Unmap an interrupt
|
|
|
|
* @virq: linux virq number of the interrupt to unmap
|
|
|
|
*
|
|
|
|
* FIXME: We really should implement proper virq handling like power,
|
|
|
|
* but that's going to be major surgery.
|
|
|
|
*/
|
|
|
|
static inline void irq_dispose_mapping(unsigned int virq) { }
|
|
|
|
|
|
|
|
#define HAVE_ARCH_DEVTREE_FIXUPS
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif
|