David S. Miller | 8b99cfb | 2007-07-14 02:23:37 -0700 | [diff] [blame] | 1 | /* arch/sparc64/kernel/sparc64_ksyms.c: Sparc64 specific ksyms support. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * |
David S. Miller | 8b99cfb | 2007-07-14 02:23:37 -0700 | [diff] [blame] | 3 | * Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be) |
| 5 | * Copyright (C) 1999 Jakub Jelinek (jj@ultra.linux.cz) |
| 6 | */ |
| 7 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | #define PROMLIB_INTERNAL |
| 9 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #include <linux/module.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | #include <linux/pci.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | #include <linux/init.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Sam Ravnborg | 917c366 | 2009-01-08 16:58:20 -0800 | [diff] [blame^] | 14 | #include <asm/spinlock.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #include <asm/system.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #include <asm/cpudata.h> |
Sam Ravnborg | 917c366 | 2009-01-08 16:58:20 -0800 | [diff] [blame^] | 17 | #include <asm/uaccess.h> |
| 18 | #include <asm/spitfire.h> |
| 19 | #include <asm/oplib.h> |
David S. Miller | 3178a07 | 2008-11-28 02:26:55 -0800 | [diff] [blame] | 20 | #include <asm/hypervisor.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
| 22 | struct poll { |
| 23 | int fd; |
| 24 | short events; |
| 25 | short revents; |
| 26 | }; |
| 27 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | /* used by various drivers */ |
| 29 | #ifdef CONFIG_SMP |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | /* Out of line rw-locking implementation. */ |
| 31 | EXPORT_SYMBOL(__read_lock); |
| 32 | EXPORT_SYMBOL(__read_unlock); |
| 33 | EXPORT_SYMBOL(__write_lock); |
| 34 | EXPORT_SYMBOL(__write_unlock); |
| 35 | EXPORT_SYMBOL(__write_trylock); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | #endif /* CONFIG_SMP */ |
| 37 | |
Sam Ravnborg | 917c366 | 2009-01-08 16:58:20 -0800 | [diff] [blame^] | 38 | /* from helpers.S */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | EXPORT_SYMBOL(__flushw_user); |
Sam Ravnborg | 917c366 | 2009-01-08 16:58:20 -0800 | [diff] [blame^] | 40 | EXPORT_SYMBOL_GPL(real_hard_smp_processor_id); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | |
Sam Ravnborg | 917c366 | 2009-01-08 16:58:20 -0800 | [diff] [blame^] | 42 | /* from head_64.S */ |
| 43 | EXPORT_SYMBOL(__ret_efault); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | EXPORT_SYMBOL(tlb_type); |
David S. Miller | 6c70b6f | 2007-08-08 17:11:39 -0700 | [diff] [blame] | 45 | EXPORT_SYMBOL(sun4v_chip_type); |
Sam Ravnborg | 917c366 | 2009-01-08 16:58:20 -0800 | [diff] [blame^] | 46 | EXPORT_SYMBOL(prom_root_node); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | |
Sam Ravnborg | 917c366 | 2009-01-08 16:58:20 -0800 | [diff] [blame^] | 48 | /* from hvcalls.S */ |
David S. Miller | 3178a07 | 2008-11-28 02:26:55 -0800 | [diff] [blame] | 49 | EXPORT_SYMBOL(sun4v_niagara_getperf); |
| 50 | EXPORT_SYMBOL(sun4v_niagara_setperf); |
| 51 | EXPORT_SYMBOL(sun4v_niagara2_getperf); |
| 52 | EXPORT_SYMBOL(sun4v_niagara2_setperf); |
| 53 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | #ifdef CONFIG_PCI |
Sam Ravnborg | 917c366 | 2009-01-08 16:58:20 -0800 | [diff] [blame^] | 55 | /* inline functions in asm/pci_64.h */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 56 | EXPORT_SYMBOL(pci_alloc_consistent); |
| 57 | EXPORT_SYMBOL(pci_free_consistent); |
| 58 | EXPORT_SYMBOL(pci_map_single); |
| 59 | EXPORT_SYMBOL(pci_unmap_single); |
| 60 | EXPORT_SYMBOL(pci_map_sg); |
| 61 | EXPORT_SYMBOL(pci_unmap_sg); |
| 62 | EXPORT_SYMBOL(pci_dma_sync_single_for_cpu); |
| 63 | EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 64 | #endif |
| 65 | |
Sam Ravnborg | 917c366 | 2009-01-08 16:58:20 -0800 | [diff] [blame^] | 66 | /* Exporting a symbol from /init/main.c */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | EXPORT_SYMBOL(saved_command_line); |