diff options
Diffstat (limited to 'include/linux/irq.h')
| -rw-r--r-- | include/linux/irq.h | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 5c57efb863d0..0d998d8b01d8 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
| @@ -525,24 +525,6 @@ static inline void irq_set_percpu_devid_flags(unsigned int irq) | |||
| 525 | IRQ_NOPROBE | IRQ_PER_CPU_DEVID); | 525 | IRQ_NOPROBE | IRQ_PER_CPU_DEVID); |
| 526 | } | 526 | } |
| 527 | 527 | ||
| 528 | /* Handle dynamic irq creation and destruction */ | ||
| 529 | extern unsigned int create_irq_nr(unsigned int irq_want, int node); | ||
| 530 | extern unsigned int __create_irqs(unsigned int from, unsigned int count, | ||
| 531 | int node); | ||
| 532 | extern int create_irq(void); | ||
| 533 | extern void destroy_irq(unsigned int irq); | ||
| 534 | extern void destroy_irqs(unsigned int irq, unsigned int count); | ||
| 535 | |||
| 536 | /* | ||
| 537 | * Dynamic irq helper functions. Obsolete. Use irq_alloc_desc* and | ||
| 538 | * irq_free_desc instead. | ||
| 539 | */ | ||
| 540 | extern void dynamic_irq_cleanup(unsigned int irq); | ||
| 541 | static inline void dynamic_irq_init(unsigned int irq) | ||
| 542 | { | ||
| 543 | dynamic_irq_cleanup(irq); | ||
| 544 | } | ||
| 545 | |||
| 546 | /* Set/get chip/data for an IRQ: */ | 528 | /* Set/get chip/data for an IRQ: */ |
| 547 | extern int irq_set_chip(unsigned int irq, struct irq_chip *chip); | 529 | extern int irq_set_chip(unsigned int irq, struct irq_chip *chip); |
| 548 | extern int irq_set_handler_data(unsigned int irq, void *data); | 530 | extern int irq_set_handler_data(unsigned int irq, void *data); |
| @@ -625,17 +607,29 @@ int __irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node, | |||
| 625 | irq_alloc_descs(-1, from, cnt, node) | 607 | irq_alloc_descs(-1, from, cnt, node) |
| 626 | 608 | ||
| 627 | void irq_free_descs(unsigned int irq, unsigned int cnt); | 609 | void irq_free_descs(unsigned int irq, unsigned int cnt); |
| 628 | int irq_reserve_irqs(unsigned int from, unsigned int cnt); | ||
| 629 | |||
| 630 | static inline void irq_free_desc(unsigned int irq) | 610 | static inline void irq_free_desc(unsigned int irq) |
| 631 | { | 611 | { |
| 632 | irq_free_descs(irq, 1); | 612 | irq_free_descs(irq, 1); |
| 633 | } | 613 | } |
| 634 | 614 | ||
| 635 | static inline int irq_reserve_irq(unsigned int irq) | 615 | #ifdef CONFIG_GENERIC_IRQ_LEGACY_ALLOC_HWIRQ |
| 616 | unsigned int irq_alloc_hwirqs(int cnt, int node); | ||
| 617 | static inline unsigned int irq_alloc_hwirq(int node) | ||
| 618 | { | ||
| 619 | return irq_alloc_hwirqs(1, node); | ||
| 620 | } | ||
| 621 | void irq_free_hwirqs(unsigned int from, int cnt); | ||
| 622 | static inline void irq_free_hwirq(unsigned int irq) | ||
| 636 | { | 623 | { |
| 637 | return irq_reserve_irqs(irq, 1); | 624 | return irq_free_hwirqs(irq, 1); |
| 638 | } | 625 | } |
| 626 | int arch_setup_hwirq(unsigned int irq, int node); | ||
| 627 | void arch_teardown_hwirq(unsigned int irq); | ||
| 628 | #endif | ||
| 629 | |||
| 630 | #ifdef CONFIG_GENERIC_IRQ_LEGACY | ||
| 631 | void irq_init_desc(unsigned int irq); | ||
| 632 | #endif | ||
| 639 | 633 | ||
| 640 | #ifndef irq_reg_writel | 634 | #ifndef irq_reg_writel |
| 641 | # define irq_reg_writel(val, addr) writel(val, addr) | 635 | # define irq_reg_writel(val, addr) writel(val, addr) |
