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. halt
  10. _panic
  11. _warn
  12. ip_fast_csum
  13. ip_compute_csum
  14. udp_check
  15. tcp_check
  16. _do_bottom_half
  17. csum_partial
  18. csum_partial_copy
  19. csum_tcpudp_magic

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

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