The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/kernel/proto.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /* Function prototypes. */
    2 
    3 #ifndef PROTO_H
    4 #define PROTO_H
    5 
    6 /* Struct declarations. */
    7 struct proc;
    8 struct timer;
    9 
   10 /* clock.c */
   11 _PROTOTYPE( void clock_task, (void)                                     );
   12 _PROTOTYPE( void clock_stop, (void)                                     );
   13 _PROTOTYPE( clock_t get_uptime, (void)                                  );
   14 _PROTOTYPE( unsigned long read_clock, (void)                            );
   15 _PROTOTYPE( void set_timer, (struct timer *tp, clock_t t, tmr_func_t f) );
   16 _PROTOTYPE( void reset_timer, (struct timer *tp)                        );
   17 
   18 /* main.c */
   19 _PROTOTYPE( void main, (void)                                           );
   20 _PROTOTYPE( void prepare_shutdown, (int how)                            );
   21 
   22 /* utility.c */
   23 _PROTOTYPE( void kprintf, (const char *fmt, ...)                        );
   24 _PROTOTYPE( void panic, (_CONST char *s, int n)                         );
   25 
   26 /* proc.c */
   27 _PROTOTYPE( int sys_call, (int function, int src_dest, message *m_ptr)  );
   28 _PROTOTYPE( int lock_notify, (int src, int dst)                         );
   29 _PROTOTYPE( int lock_send, (int dst, message *m_ptr)                    );
   30 _PROTOTYPE( void lock_enqueue, (struct proc *rp)                        );
   31 _PROTOTYPE( void lock_dequeue, (struct proc *rp)                        );
   32 
   33 /* start.c */
   34 _PROTOTYPE( void cstart, (U16_t cs, U16_t ds, U16_t mds,
   35                                 U16_t parmoff, U16_t parmsize)          );
   36 
   37 /* system.c */
   38 _PROTOTYPE( int get_priv, (register struct proc *rc, int proc_type)     );
   39 _PROTOTYPE( void send_sig, (int proc_nr, int sig_nr)                    );
   40 _PROTOTYPE( void cause_sig, (int proc_nr, int sig_nr)                   );
   41 _PROTOTYPE( void sys_task, (void)                                       );
   42 _PROTOTYPE( void get_randomness, (int source)                           );
   43 _PROTOTYPE( int virtual_copy, (struct vir_addr *src, struct vir_addr *dst, 
   44                                 vir_bytes bytes)                        );
   45 #define numap_local(proc_nr, vir_addr, bytes) \
   46         umap_local(proc_addr(proc_nr), D, (vir_addr), (bytes))
   47 _PROTOTYPE( phys_bytes umap_local, (struct proc *rp, int seg, 
   48                 vir_bytes vir_addr, vir_bytes bytes)                    );
   49 _PROTOTYPE( phys_bytes umap_remote, (struct proc *rp, int seg, 
   50                 vir_bytes vir_addr, vir_bytes bytes)                    );
   51 _PROTOTYPE( phys_bytes umap_bios, (struct proc *rp, vir_bytes vir_addr,
   52                 vir_bytes bytes)                                        );
   53 
   54 #if (CHIP == INTEL)
   55 
   56 /* exception.c */
   57 _PROTOTYPE( void exception, (unsigned vec_nr)                           );
   58 
   59 /* i8259.c */
   60 _PROTOTYPE( void intr_init, (int mine)                                  );
   61 _PROTOTYPE( void intr_handle, (irq_hook_t *hook)                        );
   62 _PROTOTYPE( void put_irq_handler, (irq_hook_t *hook, int irq,
   63                                                 irq_handler_t handler)  );
   64 _PROTOTYPE( void rm_irq_handler, (irq_hook_t *hook)                     );
   65 
   66 /* klib*.s */
   67 _PROTOTYPE( void int86, (void)                                          );
   68 _PROTOTYPE( void cp_mess, (int src,phys_clicks src_clicks,vir_bytes src_offset,
   69                 phys_clicks dst_clicks, vir_bytes dst_offset)           );
   70 _PROTOTYPE( void enable_irq, (irq_hook_t *hook)                         );
   71 _PROTOTYPE( int disable_irq, (irq_hook_t *hook)                         );
   72 _PROTOTYPE( u16_t mem_rdw, (U16_t segm, vir_bytes offset)               );
   73 _PROTOTYPE( void phys_copy, (phys_bytes source, phys_bytes dest,
   74                 phys_bytes count)                                       );
   75 _PROTOTYPE( void phys_memset, (phys_bytes source, unsigned long pattern,
   76                 phys_bytes count)                                       );
   77 _PROTOTYPE( void phys_insb, (U16_t port, phys_bytes buf, size_t count)  );
   78 _PROTOTYPE( void phys_insw, (U16_t port, phys_bytes buf, size_t count)  );
   79 _PROTOTYPE( void phys_outsb, (U16_t port, phys_bytes buf, size_t count) );
   80 _PROTOTYPE( void phys_outsw, (U16_t port, phys_bytes buf, size_t count) );
   81 _PROTOTYPE( void reset, (void)                                          );
   82 _PROTOTYPE( void level0, (void (*func)(void))                           );
   83 _PROTOTYPE( void monitor, (void)                                        );
   84 _PROTOTYPE( void read_tsc, (unsigned long *high, unsigned long *low)    );
   85 _PROTOTYPE( unsigned long read_cr0, (void)                              );
   86 _PROTOTYPE( void write_cr0, (unsigned long value)                       );
   87 _PROTOTYPE( void write_cr3, (unsigned long value)                       );
   88 _PROTOTYPE( unsigned long read_cpu_flags, (void)                        );
   89 
   90 /* mpx*.s */
   91 _PROTOTYPE( void idle_task, (void)                                      );
   92 _PROTOTYPE( void restart, (void)                                        );
   93 
   94 /* The following are never called from C (pure asm procs). */
   95 
   96 /* Exception handlers (real or protected mode), in numerical order. */
   97 void _PROTOTYPE( int00, (void) ), _PROTOTYPE( divide_error, (void) );
   98 void _PROTOTYPE( int01, (void) ), _PROTOTYPE( single_step_exception, (void) );
   99 void _PROTOTYPE( int02, (void) ), _PROTOTYPE( nmi, (void) );
  100 void _PROTOTYPE( int03, (void) ), _PROTOTYPE( breakpoint_exception, (void) );
  101 void _PROTOTYPE( int04, (void) ), _PROTOTYPE( overflow, (void) );
  102 void _PROTOTYPE( int05, (void) ), _PROTOTYPE( bounds_check, (void) );
  103 void _PROTOTYPE( int06, (void) ), _PROTOTYPE( inval_opcode, (void) );
  104 void _PROTOTYPE( int07, (void) ), _PROTOTYPE( copr_not_available, (void) );
  105 void                              _PROTOTYPE( double_fault, (void) );
  106 void                              _PROTOTYPE( copr_seg_overrun, (void) );
  107 void                              _PROTOTYPE( inval_tss, (void) );
  108 void                              _PROTOTYPE( segment_not_present, (void) );
  109 void                              _PROTOTYPE( stack_exception, (void) );
  110 void                              _PROTOTYPE( general_protection, (void) );
  111 void                              _PROTOTYPE( page_fault, (void) );
  112 void                              _PROTOTYPE( copr_error, (void) );
  113 
  114 /* Hardware interrupt handlers. */
  115 _PROTOTYPE( void hwint00, (void) );
  116 _PROTOTYPE( void hwint01, (void) );
  117 _PROTOTYPE( void hwint02, (void) );
  118 _PROTOTYPE( void hwint03, (void) );
  119 _PROTOTYPE( void hwint04, (void) );
  120 _PROTOTYPE( void hwint05, (void) );
  121 _PROTOTYPE( void hwint06, (void) );
  122 _PROTOTYPE( void hwint07, (void) );
  123 _PROTOTYPE( void hwint08, (void) );
  124 _PROTOTYPE( void hwint09, (void) );
  125 _PROTOTYPE( void hwint10, (void) );
  126 _PROTOTYPE( void hwint11, (void) );
  127 _PROTOTYPE( void hwint12, (void) );
  128 _PROTOTYPE( void hwint13, (void) );
  129 _PROTOTYPE( void hwint14, (void) );
  130 _PROTOTYPE( void hwint15, (void) );
  131 
  132 /* Software interrupt handlers, in numerical order. */
  133 _PROTOTYPE( void trp, (void) );
  134 _PROTOTYPE( void s_call, (void) ), _PROTOTYPE( p_s_call, (void) );
  135 _PROTOTYPE( void level0_call, (void) );
  136 
  137 /* protect.c */
  138 _PROTOTYPE( void prot_init, (void)                                      );
  139 _PROTOTYPE( void init_codeseg, (struct segdesc_s *segdp, phys_bytes base,
  140                 vir_bytes size, int privilege)                          );
  141 _PROTOTYPE( void init_dataseg, (struct segdesc_s *segdp, phys_bytes base,
  142                 vir_bytes size, int privilege)                          );
  143 _PROTOTYPE( phys_bytes seg2phys, (U16_t seg)                            );
  144 _PROTOTYPE( void phys2seg, (u16_t *seg, vir_bytes *off, phys_bytes phys));
  145 _PROTOTYPE( void enable_iop, (struct proc *pp)                          );
  146 _PROTOTYPE( void alloc_segments, (struct proc *rp)                      );
  147 
  148 #endif /* (CHIP == INTEL) */
  149 
  150 #if (CHIP == M68000)
  151 /* M68000 specific prototypes go here. */
  152 #endif /* (CHIP == M68000) */
  153 
  154 #endif /* PROTO_H */

Cache object: 33825e42c8d58bcb0348ea4bf88ca476


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.