2011-07-23 05:24:23 +07:00
|
|
|
#include <linux/export.h>
|
2005-09-28 17:28:14 +07:00
|
|
|
#include <linux/threads.h>
|
|
|
|
#include <linux/smp.h>
|
|
|
|
#include <linux/sched.h>
|
|
|
|
#include <linux/elfcore.h>
|
|
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <linux/vt_kern.h>
|
|
|
|
#include <linux/nvram.h>
|
|
|
|
#include <linux/irq.h>
|
|
|
|
#include <linux/pci.h>
|
|
|
|
#include <linux/delay.h>
|
|
|
|
#include <linux/bitops.h>
|
|
|
|
|
|
|
|
#include <asm/page.h>
|
|
|
|
#include <asm/processor.h>
|
2007-09-20 09:25:17 +07:00
|
|
|
#include <asm/cacheflush.h>
|
2005-09-28 17:28:14 +07:00
|
|
|
#include <asm/uaccess.h>
|
|
|
|
#include <asm/io.h>
|
2011-07-27 06:09:06 +07:00
|
|
|
#include <linux/atomic.h>
|
2005-09-28 17:28:14 +07:00
|
|
|
#include <asm/checksum.h>
|
|
|
|
#include <asm/pgtable.h>
|
|
|
|
#include <asm/tlbflush.h>
|
|
|
|
#include <linux/adb.h>
|
|
|
|
#include <linux/cuda.h>
|
|
|
|
#include <linux/pmu.h>
|
|
|
|
#include <asm/prom.h>
|
|
|
|
#include <asm/pci-bridge.h>
|
|
|
|
#include <asm/irq.h>
|
|
|
|
#include <asm/pmac_feature.h>
|
|
|
|
#include <asm/dma.h>
|
|
|
|
#include <asm/machdep.h>
|
|
|
|
#include <asm/hw_irq.h>
|
|
|
|
#include <asm/nvram.h>
|
|
|
|
#include <asm/mmu_context.h>
|
|
|
|
#include <asm/backlight.h>
|
|
|
|
#include <asm/time.h>
|
|
|
|
#include <asm/cputable.h>
|
|
|
|
#include <asm/btext.h>
|
|
|
|
#include <asm/div64.h>
|
2005-11-09 07:21:07 +07:00
|
|
|
#include <asm/signal.h>
|
2007-02-06 07:48:28 +07:00
|
|
|
#include <asm/dcr.h>
|
2008-05-23 01:31:07 +07:00
|
|
|
#include <asm/ftrace.h>
|
2012-03-29 00:30:02 +07:00
|
|
|
#include <asm/switch_to.h>
|
2012-08-10 19:21:21 +07:00
|
|
|
#include <asm/epapr_hcalls.h>
|
2005-09-28 17:28:14 +07:00
|
|
|
|
2005-10-10 19:50:37 +07:00
|
|
|
#ifdef CONFIG_PPC32
|
2005-09-28 17:28:14 +07:00
|
|
|
EXPORT_SYMBOL(clear_pages);
|
2005-10-10 19:50:37 +07:00
|
|
|
EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
|
|
|
|
EXPORT_SYMBOL(DMA_MODE_READ);
|
|
|
|
EXPORT_SYMBOL(DMA_MODE_WRITE);
|
|
|
|
#endif
|
2005-09-28 17:28:14 +07:00
|
|
|
|
2008-10-07 06:06:12 +07:00
|
|
|
#ifdef CONFIG_FUNCTION_TRACER
|
2008-05-23 01:31:07 +07:00
|
|
|
EXPORT_SYMBOL(_mcount);
|
|
|
|
#endif
|
|
|
|
|
2005-10-10 19:50:37 +07:00
|
|
|
#if defined(CONFIG_PCI) && defined(CONFIG_PPC32)
|
2005-09-28 17:28:14 +07:00
|
|
|
EXPORT_SYMBOL(isa_io_base);
|
|
|
|
EXPORT_SYMBOL(isa_mem_base);
|
|
|
|
EXPORT_SYMBOL(pci_dram_offset);
|
|
|
|
#endif /* CONFIG_PCI */
|
|
|
|
|
2013-07-14 16:02:06 +07:00
|
|
|
#ifdef CONFIG_PPC_FPU
|
2005-09-28 17:28:14 +07:00
|
|
|
EXPORT_SYMBOL(giveup_fpu);
|
2013-09-10 17:21:10 +07:00
|
|
|
EXPORT_SYMBOL(load_fp_state);
|
|
|
|
EXPORT_SYMBOL(store_fp_state);
|
2013-07-14 16:02:06 +07:00
|
|
|
#endif
|
2005-10-10 19:50:37 +07:00
|
|
|
#ifdef CONFIG_ALTIVEC
|
|
|
|
EXPORT_SYMBOL(giveup_altivec);
|
2013-09-10 17:21:10 +07:00
|
|
|
EXPORT_SYMBOL(load_vr_state);
|
|
|
|
EXPORT_SYMBOL(store_vr_state);
|
2005-10-10 19:50:37 +07:00
|
|
|
#endif /* CONFIG_ALTIVEC */
|
2008-06-25 11:07:18 +07:00
|
|
|
#ifdef CONFIG_VSX
|
2010-01-15 20:49:09 +07:00
|
|
|
EXPORT_SYMBOL_GPL(__giveup_vsx);
|
2008-06-25 11:07:18 +07:00
|
|
|
#endif /* CONFIG_VSX */
|
2005-10-10 19:50:37 +07:00
|
|
|
#ifdef CONFIG_SPE
|
|
|
|
EXPORT_SYMBOL(giveup_spe);
|
|
|
|
#endif /* CONFIG_SPE */
|
|
|
|
|
2005-11-29 11:50:58 +07:00
|
|
|
#ifndef CONFIG_PPC64
|
2005-10-10 19:50:37 +07:00
|
|
|
EXPORT_SYMBOL(flush_instruction_cache);
|
|
|
|
#endif
|
|
|
|
EXPORT_SYMBOL(flush_dcache_range);
|
2014-04-28 05:10:43 +07:00
|
|
|
EXPORT_SYMBOL(flush_icache_range);
|
2005-10-10 19:50:37 +07:00
|
|
|
|
2005-09-28 17:28:14 +07:00
|
|
|
#ifdef CONFIG_SMP
|
2005-10-10 19:50:37 +07:00
|
|
|
#ifdef CONFIG_PPC32
|
2005-09-28 17:28:14 +07:00
|
|
|
EXPORT_SYMBOL(smp_hw_index);
|
|
|
|
#endif
|
2005-10-10 19:50:37 +07:00
|
|
|
#endif
|
2005-09-28 17:28:14 +07:00
|
|
|
|
2005-10-10 19:50:37 +07:00
|
|
|
#ifdef CONFIG_PPC32
|
|
|
|
long long __ashrdi3(long long, int);
|
|
|
|
long long __ashldi3(long long, int);
|
|
|
|
long long __lshrdi3(long long, int);
|
2005-09-28 17:28:14 +07:00
|
|
|
EXPORT_SYMBOL(__ashrdi3);
|
|
|
|
EXPORT_SYMBOL(__ashldi3);
|
|
|
|
EXPORT_SYMBOL(__lshrdi3);
|
2008-03-13 05:39:55 +07:00
|
|
|
int __ucmpdi2(unsigned long long, unsigned long long);
|
|
|
|
EXPORT_SYMBOL(__ucmpdi2);
|
2013-10-09 12:11:17 +07:00
|
|
|
int __cmpdi2(long long, long long);
|
|
|
|
EXPORT_SYMBOL(__cmpdi2);
|
2005-10-10 19:50:37 +07:00
|
|
|
#endif
|
2013-05-13 07:23:38 +07:00
|
|
|
long long __bswapdi2(long long);
|
|
|
|
EXPORT_SYMBOL(__bswapdi2);
|
2005-09-28 17:28:14 +07:00
|
|
|
|
2005-10-10 19:50:37 +07:00
|
|
|
#ifdef CONFIG_PPC32
|
2005-09-28 17:28:14 +07:00
|
|
|
EXPORT_SYMBOL(timer_interrupt);
|
|
|
|
EXPORT_SYMBOL(tb_ticks_per_jiffy);
|
|
|
|
#endif
|
|
|
|
|
2005-10-10 19:50:37 +07:00
|
|
|
#ifdef CONFIG_PPC32
|
2008-12-19 02:13:24 +07:00
|
|
|
EXPORT_SYMBOL(switch_mmu_context);
|
2005-10-10 19:50:37 +07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_PPC_STD_MMU_32
|
2005-09-28 17:28:14 +07:00
|
|
|
extern long mol_trampoline;
|
|
|
|
EXPORT_SYMBOL(mol_trampoline); /* For MOL */
|
|
|
|
EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
extern int mmu_hash_lock;
|
|
|
|
EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
|
|
|
|
#endif /* CONFIG_SMP */
|
|
|
|
extern long *intercept_table;
|
|
|
|
EXPORT_SYMBOL(intercept_table);
|
2005-10-10 19:50:37 +07:00
|
|
|
#endif /* CONFIG_PPC_STD_MMU_32 */
|
2006-12-11 12:15:47 +07:00
|
|
|
#ifdef CONFIG_PPC_DCR_NATIVE
|
2005-09-28 17:28:14 +07:00
|
|
|
EXPORT_SYMBOL(__mtdcr);
|
|
|
|
EXPORT_SYMBOL(__mfdcr);
|
|
|
|
#endif
|
2008-03-13 12:20:31 +07:00
|
|
|
EXPORT_SYMBOL(empty_zero_page);
|
2010-08-12 23:28:09 +07:00
|
|
|
|
2012-08-10 19:21:21 +07:00
|
|
|
#ifdef CONFIG_EPAPR_PARAVIRT
|
|
|
|
EXPORT_SYMBOL(epapr_hypercall_start);
|
|
|
|
#endif
|