irq.h 651 B

1234567891011121314151617181920212223242526
  1. #ifndef _irq_h
  2. #define _irq_h
  3. #include "cpumask.h"
  4. struct irq_s {
  5. unsigned int irq;
  6. char *type; /* IRQ type from /proc/interrupts like PCI-MSI-edge */
  7. char *desc; /* IRQ text description - device list */
  8. int refresh; /* Refresh flag. It !=0 if irq was found while populate */
  9. };
  10. typedef struct irq_s irq_t;
  11. #define SYSFS_PCI_PATH "/sys/bus/pci/devices"
  12. #define PROC_INTERRUPTS "/proc/interrupts"
  13. #define PROC_IRQ "/proc/irq"
  14. /* Compare function for global IRQ list */
  15. int irq_list_compare(const void *first, const void *second);
  16. /* IRQ list functions */
  17. int irq_list_populate(lub_list_t *irqs);
  18. int irq_list_free(lub_list_t *irqs);
  19. #endif