open_pic.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  arch/ppc/kernel/open_pic.h -- OpenPIC Interrupt Handling
  3.  *
  4.  *  Copyright (C) 1997 Geert Uytterhoeven
  5.  *
  6.  *  This file is subject to the terms and conditions of the GNU General Public
  7.  *  License.  See the file COPYING in the main directory of this archive
  8.  *  for more details.
  9.  *  
  10.  */
  11. #ifndef _PPC64_KERNEL_OPEN_PIC_H
  12. #define _PPC64_KERNEL_OPEN_PIC_H
  13. #include <linux/config.h>
  14. #define OPENPIC_SIZE 0x40000
  15. /* OpenPIC IRQ controller structure */
  16. extern struct hw_interrupt_type open_pic;
  17. /* OpenPIC IPI controller structure */
  18. #ifdef CONFIG_SMP
  19. extern struct hw_interrupt_type open_pic_ipi;
  20. #endif /* CONFIG_SMP */
  21. extern u_int OpenPIC_NumInitSenses;
  22. extern u_char *OpenPIC_InitSenses;
  23. extern void* OpenPIC_Addr;
  24. /* Exported functions */
  25. extern void openpic_init(int, int, unsigned char *, int);
  26. extern void openpic_request_IPIs(void);
  27. extern void do_openpic_setup_cpu(void);
  28. extern int openpic_get_irq(struct pt_regs *regs);
  29. extern void openpic_init_processor(u_int cpumask);
  30. extern void openpic_setup_ISU(int isu_num, unsigned long addr);
  31. extern void openpic_cause_IPI(u_int ipi, u_int cpumask);
  32. extern inline int openpic_to_irq(int irq)
  33. {
  34. return irq += NUM_8259_INTERRUPTS;
  35. }
  36. /*extern int open_pic_irq_offset;*/
  37. #endif /* _PPC64_KERNEL_OPEN_PIC_H */