root/arch/ppc/kernel/stubs.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. sys_ptrace
  2. sys_iopl
  3. sys_vm86
  4. sys_modify_ldt
  5. sys_quotactl
  6. sys_pipe
  7. sys_ipc
  8. sys_mmap
  9. sys_readdir
  10. halt
  11. _panic
  12. _warn
  13. ip_fast_csum
  14. ip_compute_csum
  15. udp_check
  16. tcp_check
  17. _do_bottom_half
  18. csum_partial
  19. csum_partial_copy
  20. csum_tcpudp_magic

   1 #include <linux/in.h>
   2 
   3 void sys_ptrace(void) { _panic("sys_ptrace"); }
     /* [previous][next][first][last][top][bottom][index][help] */
   4 void sys_iopl(void) { _panic("sys_iopl"); }
     /* [previous][next][first][last][top][bottom][index][help] */
   5 void sys_vm86(void) { _panic("sys_vm86"); }
     /* [previous][next][first][last][top][bottom][index][help] */
   6 void sys_modify_ldt(void) { _panic("sys_modify_ldt"); }
     /* [previous][next][first][last][top][bottom][index][help] */
   7 void sys_quotactl(void) { _panic("sys_quotactl"); }
     /* [previous][next][first][last][top][bottom][index][help] */
   8 
   9 void sys_pipe(void) {_panic("sys_pipe"); }
     /* [previous][next][first][last][top][bottom][index][help] */
  10 void sys_ipc(void) {_panic("sys_ipc"); }
     /* [previous][next][first][last][top][bottom][index][help] */
  11 void sys_mmap(void) {_panic("sys_mmap"); }
     /* [previous][next][first][last][top][bottom][index][help] */
  12 void sys_readdir(void) {_panic("sys_readdir"); }
     /* [previous][next][first][last][top][bottom][index][help] */
  13 
  14 
  15 halt()
     /* [previous][next][first][last][top][bottom][index][help] */
  16 {
  17         _printk("\n...Halt!\n");
  18         abort();
  19 }
  20 
  21 _panic(char *msg)
     /* [previous][next][first][last][top][bottom][index][help] */
  22 {
  23         _printk("Panic: %s\n", msg);
  24         printk("Panic: %s\n", msg);
  25         abort();
  26 }
  27 
  28 _warn(char *msg)
     /* [previous][next][first][last][top][bottom][index][help] */
  29 {
  30         _printk("*** Warning: %s UNIMPLEMENTED!\n", msg);
  31 }
  32 
  33 extern unsigned short _ip_fast_csum(unsigned char *buf, int len);
  34 
  35 unsigned short
  36 ip_fast_csum(unsigned char *buf, int len)
     /* [previous][next][first][last][top][bottom][index][help] */
  37 {
  38         unsigned short _val;
  39         _val = _ip_fast_csum(buf, len);
  40 #if 0   
  41         printk("IP CKSUM(%x, %d) = %x\n", buf, len, _val);
  42 #endif  
  43         return (_val);
  44 }
  45 
  46 extern unsigned short _ip_compute_csum(unsigned char *buf, int len);
  47 
  48 unsigned short
  49 ip_compute_csum(unsigned char *buf, int len)
     /* [previous][next][first][last][top][bottom][index][help] */
  50 {
  51         unsigned short _val;
  52         _val = _ip_compute_csum(buf, len);
  53 #if 0   
  54         printk("Compute IP CKSUM(%x, %d) = %x\n", buf, len, _val);
  55 #endif  
  56         return (_val);
  57 }
  58 
  59 unsigned short
  60 _udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr);
  61 
  62 unsigned short
  63 udp_check(unsigned char *buf, int len, int saddr, int daddr)
     /* [previous][next][first][last][top][bottom][index][help] */
  64 {
  65         unsigned short _val;
  66         int hdr;
  67         hdr = (len << 16) + IPPROTO_UDP;
  68         _val = _udp_check(buf, len, saddr, daddr, hdr);
  69 #if 0   
  70         printk("UDP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val);
  71         dump_buf(buf, len);
  72 #endif  
  73         return (_val);
  74 }
  75 #if 0
  76 unsigned short
  77 _tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr);
  78 
  79 unsigned short
  80 tcp_check(unsigned char *buf, int len, int saddr, int daddr)
     /* [previous][next][first][last][top][bottom][index][help] */
  81 {
  82         unsigned short _val;
  83         int hdr;
  84         hdr = (len << 16) + IPPROTO_TCP;
  85         if (saddr == 0) saddr = ip_my_addr();
  86         _val = _tcp_check(buf, len, saddr, daddr, hdr);
  87 #if 0   
  88         printk("TCP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val);
  89         dump_buf(buf, len);
  90 #endif  
  91         return (_val);
  92 }
  93 #endif
  94 _do_bottom_half()
     /* [previous][next][first][last][top][bottom][index][help] */
  95 {
  96         _enable_interrupts(1);
  97         do_bottom_half();
  98         _disable_interrupts();
  99 }
 100 
 101 unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum)
     /* [previous][next][first][last][top][bottom][index][help] */
 102 {
 103   panic("csum_partial");
 104 }
 105 
 106 
 107 unsigned int csum_partial_copy(char *src, char *dst, int len, int sum)
     /* [previous][next][first][last][top][bottom][index][help] */
 108 {
 109   panic("csum_partial_copy");
 110 }
 111 
 112 unsigned int csum_tcpudp_magic()
     /* [previous][next][first][last][top][bottom][index][help] */
 113 {
 114   }

/* [previous][next][first][last][top][bottom][index][help] */