main.c File Reference

#include <libc.h>
#include <core.h>
#include "picreg.h"
#include "picvar.h"
#include "libpic.h"

Defines

#define INUM(Intr)   ((Intr)-0x20)

Functions

void init ()
pic_tag_t peek_mask ()
pic_tag_t disable_all ()
int is_set (pic_tag_t mask, int irq)
void restore_mask (pic_tag_t mask)
void enable (int irq)
void disable (int irq)
void eoi (int irq)
int allowed (t_pic *pic, pid_t pid)
int allow (t_pic *pic, pid_t pid)
int disallow (t_pic *pic, pid_t pid)
void sys_pic_register (t_tcb *caller)
void sys_pic_unregister (t_tcb *caller)
void sys_pic_enable (t_tcb *caller)
void sys_pic_disable (t_tcb *caller)
void sys_pic_eoi (t_tcb *caller)
void sys_pic_allow (t_tcb *caller)
void sys_pic_disallow (t_tcb *caller)
void sys_pic_dump (t_tcb *caller)
void do_picsrv_syscall ()
void picsrv_syscall ()
void create_picsrv (int cpu)
int main (int argc, char **argv)

Variables

t_pic_info info
t_pic pics [256]

Define Documentation

#define INUM (  Intr   )     ((Intr)-0x20)
 


Function Documentation

int allow (  t_pic *  pic,
pid_t  pid
) 
 

int allowed (  t_pic *  pic,
pid_t  pid
) 
 

void create_picsrv (  int  cpu  ) 
 

allocate a task for pic server

void disable (  int  irq  ) 
 

pic_tag_t disable_all (   ) 
 

int disallow (  t_pic *  pic,
pid_t  pid
) 
 

void do_picsrv_syscall (   ) 
 

void enable (  int  irq  ) 
 

void eoi (  int  irq  ) 
 

void init (   ) 
 

int is_set (  pic_tag_t  mask,
int  irq
) 
 

int main (  int  argc,
char **  argv
) 
 

pic_tag_t peek_mask (   ) 
 

void picsrv_syscall (   ) 
 

void restore_mask (  pic_tag_t  mask  ) 
 

void sys_pic_allow (  t_tcb *  caller  ) 
 

void sys_pic_disable (  t_tcb *  caller  ) 
 

void sys_pic_disallow (  t_tcb *  caller  ) 
 

void sys_pic_dump (  t_tcb *  caller  ) 
 

void sys_pic_enable (  t_tcb *  caller  ) 
 

void sys_pic_eoi (  t_tcb *  caller  ) 
 

void sys_pic_register (  t_tcb *  caller  ) 
 

void sys_pic_unregister (  t_tcb *  caller  ) 
 


Variable Documentation

t_pic_info info
 

t_pic pics[256]
 


Generated on Wed May 24 23:06:01 2006 for LSE/OS by  doxygen 1.4.6