linux/arch/sparc/kernel/sparc_ksyms.c
<<
>>
Prefs
   1/* $Id: sparc_ksyms.c,v 1.107 2001/07/17 16:17:33 anton Exp $
   2 * arch/sparc/kernel/ksyms.c: Sparc specific ksyms support.
   3 *
   4 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
   5 * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
   6 */
   7
   8/* Tell string.h we don't want memcpy etc. as cpp defines */
   9#define EXPORT_SYMTAB_STROPS
  10#define PROMLIB_INTERNAL
  11
  12#include <linux/module.h>
  13#include <linux/init.h>
  14#include <linux/smp.h>
  15#include <linux/types.h>
  16#include <linux/string.h>
  17#include <linux/sched.h>
  18#include <linux/interrupt.h>
  19#include <linux/in6.h>
  20#include <linux/spinlock.h>
  21#include <linux/mm.h>
  22#include <linux/syscalls.h>
  23#ifdef CONFIG_PCI
  24#include <linux/pci.h>
  25#endif
  26#include <linux/pm.h>
  27#ifdef CONFIG_HIGHMEM
  28#include <linux/highmem.h>
  29#endif
  30
  31#include <asm/oplib.h>
  32#include <asm/delay.h>
  33#include <asm/system.h>
  34#include <asm/auxio.h>
  35#include <asm/pgtable.h>
  36#include <asm/io.h>
  37#include <asm/irq.h>
  38#include <asm/idprom.h>
  39#include <asm/svr4.h>
  40#include <asm/head.h>
  41#include <asm/smp.h>
  42#include <asm/mostek.h>
  43#include <asm/ptrace.h>
  44#include <asm/user.h>
  45#include <asm/uaccess.h>
  46#include <asm/checksum.h>
  47#ifdef CONFIG_SBUS
  48#include <asm/sbus.h>
  49#include <asm/dma.h>
  50#endif
  51#ifdef CONFIG_PCI
  52#include <asm/ebus.h>
  53#endif
  54#include <asm/io-unit.h>
  55#include <asm/bug.h>
  56
  57extern spinlock_t rtc_lock;
  58
  59struct poll {
  60        int fd;
  61        short events;
  62        short revents;
  63};
  64
  65extern int svr4_getcontext (svr4_ucontext_t *, struct pt_regs *);
  66extern int svr4_setcontext (svr4_ucontext_t *, struct pt_regs *);
  67extern void (*__copy_1page)(void *, const void *);
  68extern void __memmove(void *, const void *, __kernel_size_t);
  69extern void (*bzero_1page)(void *);
  70extern void *__bzero(void *, size_t);
  71extern void *__memscan_zero(void *, size_t);
  72extern void *__memscan_generic(void *, int, size_t);
  73extern int __memcmp(const void *, const void *, __kernel_size_t);
  74extern int __strncmp(const char *, const char *, __kernel_size_t);
  75
  76extern int __ashrdi3(int, int);
  77extern int __ashldi3(int, int);
  78extern int __lshrdi3(int, int);
  79extern int __muldi3(int, int);
  80extern int __divdi3(int, int);
  81
  82/* Private functions with odd calling conventions. */
  83extern void ___atomic24_add(void);
  84extern void ___atomic24_sub(void);
  85extern void ___rw_read_enter(void);
  86extern void ___rw_read_try(void);
  87extern void ___rw_read_exit(void);
  88extern void ___rw_write_enter(void);
  89
  90/* Alias functions whose names begin with "." and export the aliases.
  91 * The module references will be fixed up by module_frob_arch_sections.
  92 */
  93extern int _Div(int, int);
  94extern int _Mul(int, int);
  95extern int _Rem(int, int);
  96extern unsigned _Udiv(unsigned, unsigned);
  97extern unsigned _Umul(unsigned, unsigned);
  98extern unsigned _Urem(unsigned, unsigned);
  99
 100/* used by various drivers */
 101EXPORT_SYMBOL(sparc_cpu_model);
 102EXPORT_SYMBOL(kernel_thread);
 103#ifdef CONFIG_SMP
 104// XXX find what uses (or used) these.   AV: see asm/spinlock.h
 105EXPORT_SYMBOL(___rw_read_enter);
 106EXPORT_SYMBOL(___rw_read_try);
 107EXPORT_SYMBOL(___rw_read_exit);
 108EXPORT_SYMBOL(___rw_write_enter);
 109#endif
 110/* semaphores */
 111EXPORT_SYMBOL(__up);
 112EXPORT_SYMBOL(__down);
 113EXPORT_SYMBOL(__down_trylock);
 114EXPORT_SYMBOL(__down_interruptible);
 115
 116EXPORT_SYMBOL(sparc_valid_addr_bitmap);
 117EXPORT_SYMBOL(phys_base);
 118EXPORT_SYMBOL(pfn_base);
 119
 120/* Atomic operations. */
 121EXPORT_SYMBOL(___atomic24_add);
 122EXPORT_SYMBOL(___atomic24_sub);
 123
 124/* Per-CPU information table */
 125EXPORT_PER_CPU_SYMBOL(__cpu_data);
 126
 127#ifdef CONFIG_SMP
 128/* IRQ implementation. */
 129EXPORT_SYMBOL(synchronize_irq);
 130
 131/* CPU online map and active count. */
 132EXPORT_SYMBOL(cpu_online_map);
 133EXPORT_SYMBOL(phys_cpu_present_map);
 134#endif
 135
 136EXPORT_SYMBOL(__udelay);
 137EXPORT_SYMBOL(__ndelay);
 138EXPORT_SYMBOL(rtc_lock);
 139EXPORT_SYMBOL(mostek_lock);
 140EXPORT_SYMBOL(mstk48t02_regs);
 141#ifdef CONFIG_SUN_AUXIO
 142EXPORT_SYMBOL(set_auxio);
 143EXPORT_SYMBOL(get_auxio);
 144#endif
 145EXPORT_SYMBOL(io_remap_pfn_range);
 146  /* P3: iounit_xxx may be needed, sun4d users */
 147/* EXPORT_SYMBOL(iounit_map_dma_init); */
 148/* EXPORT_SYMBOL(iounit_map_dma_page); */
 149
 150#ifndef CONFIG_SMP
 151EXPORT_SYMBOL(BTFIXUP_CALL(___xchg32));
 152#else
 153EXPORT_SYMBOL(BTFIXUP_CALL(__hard_smp_processor_id));
 154#endif
 155EXPORT_SYMBOL(BTFIXUP_CALL(mmu_unlockarea));
 156EXPORT_SYMBOL(BTFIXUP_CALL(mmu_lockarea));
 157EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_sgl));
 158EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_one));
 159EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_sgl));
 160EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_one));
 161
 162EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached));
 163
 164#ifdef CONFIG_SBUS
 165EXPORT_SYMBOL(sbus_root);
 166EXPORT_SYMBOL(dma_chain);
 167EXPORT_SYMBOL(sbus_set_sbus64);
 168EXPORT_SYMBOL(sbus_alloc_consistent);
 169EXPORT_SYMBOL(sbus_free_consistent);
 170EXPORT_SYMBOL(sbus_map_single);
 171EXPORT_SYMBOL(sbus_unmap_single);
 172EXPORT_SYMBOL(sbus_map_sg);
 173EXPORT_SYMBOL(sbus_unmap_sg);
 174EXPORT_SYMBOL(sbus_dma_sync_single_for_cpu);
 175EXPORT_SYMBOL(sbus_dma_sync_single_for_device);
 176EXPORT_SYMBOL(sbus_dma_sync_sg_for_cpu);
 177EXPORT_SYMBOL(sbus_dma_sync_sg_for_device);
 178EXPORT_SYMBOL(sbus_iounmap);
 179EXPORT_SYMBOL(sbus_ioremap);
 180#endif
 181#ifdef CONFIG_PCI
 182EXPORT_SYMBOL(ebus_chain);
 183EXPORT_SYMBOL(insb);
 184EXPORT_SYMBOL(outsb);
 185EXPORT_SYMBOL(insw);
 186EXPORT_SYMBOL(outsw);
 187EXPORT_SYMBOL(insl);
 188EXPORT_SYMBOL(outsl);
 189EXPORT_SYMBOL(pci_alloc_consistent);
 190EXPORT_SYMBOL(pci_free_consistent);
 191EXPORT_SYMBOL(pci_map_single);
 192EXPORT_SYMBOL(pci_unmap_single);
 193EXPORT_SYMBOL(pci_dma_sync_single_for_cpu);
 194EXPORT_SYMBOL(pci_dma_sync_single_for_device);
 195EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu);
 196EXPORT_SYMBOL(pci_dma_sync_sg_for_device);
 197EXPORT_SYMBOL(pci_map_sg);
 198EXPORT_SYMBOL(pci_unmap_sg);
 199EXPORT_SYMBOL(pci_map_page);
 200EXPORT_SYMBOL(pci_unmap_page);
 201/* Actually, ioremap/iounmap are not PCI specific. But it is ok for drivers. */
 202EXPORT_SYMBOL(ioremap);
 203EXPORT_SYMBOL(iounmap);
 204#endif
 205
 206/* in arch/sparc/mm/highmem.c */
 207#ifdef CONFIG_HIGHMEM
 208EXPORT_SYMBOL(kmap_atomic);
 209EXPORT_SYMBOL(kunmap_atomic);
 210#endif
 211
 212/* Solaris/SunOS binary compatibility */
 213EXPORT_SYMBOL(svr4_setcontext);
 214EXPORT_SYMBOL(svr4_getcontext);
 215
 216/* prom symbols */
 217EXPORT_SYMBOL(idprom);
 218EXPORT_SYMBOL(prom_root_node);
 219EXPORT_SYMBOL(prom_getchild);
 220EXPORT_SYMBOL(prom_getsibling);
 221EXPORT_SYMBOL(prom_searchsiblings);
 222EXPORT_SYMBOL(prom_firstprop);
 223EXPORT_SYMBOL(prom_nextprop);
 224EXPORT_SYMBOL(prom_getproplen);
 225EXPORT_SYMBOL(prom_getproperty);
 226EXPORT_SYMBOL(prom_node_has_property);
 227EXPORT_SYMBOL(prom_setprop);
 228EXPORT_SYMBOL(saved_command_line);
 229EXPORT_SYMBOL(prom_apply_obio_ranges);
 230EXPORT_SYMBOL(prom_feval);
 231EXPORT_SYMBOL(prom_getbool);
 232EXPORT_SYMBOL(prom_getstring);
 233EXPORT_SYMBOL(prom_getint);
 234EXPORT_SYMBOL(prom_getintdefault);
 235EXPORT_SYMBOL(prom_finddevice);
 236EXPORT_SYMBOL(romvec);
 237EXPORT_SYMBOL(__prom_getchild);
 238EXPORT_SYMBOL(__prom_getsibling);
 239
 240/* sparc library symbols */
 241EXPORT_SYMBOL(memscan);
 242EXPORT_SYMBOL(strlen);
 243EXPORT_SYMBOL(strncmp);
 244EXPORT_SYMBOL(page_kernel);
 245
 246/* Special internal versions of library functions. */
 247EXPORT_SYMBOL(__copy_1page);
 248EXPORT_SYMBOL(__memcpy);
 249EXPORT_SYMBOL(__memset);
 250EXPORT_SYMBOL(bzero_1page);
 251EXPORT_SYMBOL(__bzero);
 252EXPORT_SYMBOL(__memscan_zero);
 253EXPORT_SYMBOL(__memscan_generic);
 254EXPORT_SYMBOL(__memcmp);
 255EXPORT_SYMBOL(__strncmp);
 256EXPORT_SYMBOL(__memmove);
 257
 258/* Moving data to/from userspace. */
 259EXPORT_SYMBOL(__copy_user);
 260EXPORT_SYMBOL(__strncpy_from_user);
 261EXPORT_SYMBOL(__strnlen_user);
 262
 263/* Networking helper routines. */
 264EXPORT_SYMBOL(__csum_partial_copy_sparc_generic);
 265EXPORT_SYMBOL(csum_partial);
 266
 267/* Cache flushing.  */
 268EXPORT_SYMBOL(sparc_flush_page_to_ram);
 269
 270/* For when serial stuff is built as modules. */
 271EXPORT_SYMBOL(sun_do_break);
 272
 273EXPORT_SYMBOL(__ret_efault);
 274
 275EXPORT_SYMBOL(memcmp);
 276EXPORT_SYMBOL(memcpy);
 277EXPORT_SYMBOL(memset);
 278EXPORT_SYMBOL(memmove);
 279EXPORT_SYMBOL(__ashrdi3);
 280EXPORT_SYMBOL(__ashldi3);
 281EXPORT_SYMBOL(__lshrdi3);
 282EXPORT_SYMBOL(__muldi3);
 283EXPORT_SYMBOL(__divdi3);
 284
 285EXPORT_SYMBOL(_Rem);
 286EXPORT_SYMBOL(_Urem);
 287EXPORT_SYMBOL(_Mul);
 288EXPORT_SYMBOL(_Umul);
 289EXPORT_SYMBOL(_Div);
 290EXPORT_SYMBOL(_Udiv);
 291
 292#ifdef CONFIG_DEBUG_BUGVERBOSE
 293EXPORT_SYMBOL(do_BUG);
 294#endif
 295
 296/* Sun Power Management Idle Handler */
 297EXPORT_SYMBOL(pm_idle);
 298
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.