irq_user.h 652 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __IRQ_USER_H__
  6. #define __IRQ_USER_H__
  7. #include <sysdep/ptrace.h>
  8. struct irq_fd {
  9. struct irq_fd *next;
  10. void *id;
  11. int fd;
  12. int type;
  13. int irq;
  14. int events;
  15. int current_events;
  16. };
  17. enum { IRQ_READ, IRQ_WRITE };
  18. struct siginfo;
  19. extern void sigio_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
  20. extern void free_irq_by_fd(int fd);
  21. extern void reactivate_fd(int fd, int irqnum);
  22. extern void deactivate_fd(int fd, int irqnum);
  23. extern int deactivate_all_fds(void);
  24. extern int activate_ipi(int fd, int pid);
  25. #endif