@@ -350,13 +350,13 @@ struct irq_domain *irq_domain_create_legacy(struct fwnode_handle *fwnode,
350
350
irq_hw_number_t first_hwirq ,
351
351
const struct irq_domain_ops * ops ,
352
352
void * host_data );
353
- extern struct irq_domain * irq_find_matching_fwspec (struct irq_fwspec * fwspec ,
354
- enum irq_domain_bus_token bus_token );
355
- extern void irq_set_default_host (struct irq_domain * host );
356
- extern struct irq_domain * irq_get_default_host (void );
357
- extern int irq_domain_alloc_descs (int virq , unsigned int nr_irqs ,
358
- irq_hw_number_t hwirq , int node ,
359
- const struct irq_affinity_desc * affinity );
353
+ struct irq_domain * irq_find_matching_fwspec (struct irq_fwspec * fwspec ,
354
+ enum irq_domain_bus_token bus_token );
355
+ void irq_set_default_host (struct irq_domain * host );
356
+ struct irq_domain * irq_get_default_host (void );
357
+ int irq_domain_alloc_descs (int virq , unsigned int nr_irqs ,
358
+ irq_hw_number_t hwirq , int node ,
359
+ const struct irq_affinity_desc * affinity );
360
360
361
361
static inline struct fwnode_handle * of_node_to_fwnode (struct device_node * node )
362
362
{
@@ -370,8 +370,8 @@ static inline bool is_fwnode_irqchip(const struct fwnode_handle *fwnode)
370
370
return fwnode && fwnode -> ops == & irqchip_fwnode_ops ;
371
371
}
372
372
373
- extern void irq_domain_update_bus_token (struct irq_domain * domain ,
374
- enum irq_domain_bus_token bus_token );
373
+ void irq_domain_update_bus_token (struct irq_domain * domain ,
374
+ enum irq_domain_bus_token bus_token );
375
375
376
376
static inline
377
377
struct irq_domain * irq_find_matching_fwnode (struct fwnode_handle * fwnode ,
@@ -454,7 +454,7 @@ static inline struct irq_domain *irq_domain_add_nomap(struct device_node *of_nod
454
454
return IS_ERR (d ) ? NULL : d ;
455
455
}
456
456
457
- extern unsigned int irq_create_direct_mapping (struct irq_domain * host );
457
+ unsigned int irq_create_direct_mapping (struct irq_domain * host );
458
458
#endif
459
459
460
460
static inline struct irq_domain * irq_domain_add_tree (struct device_node * of_node ,
@@ -507,29 +507,29 @@ static inline struct irq_domain *irq_domain_create_tree(struct fwnode_handle *fw
507
507
return IS_ERR (d ) ? NULL : d ;
508
508
}
509
509
510
- extern void irq_domain_remove (struct irq_domain * host );
510
+ void irq_domain_remove (struct irq_domain * host );
511
511
512
- extern int irq_domain_associate (struct irq_domain * domain , unsigned int irq ,
513
- irq_hw_number_t hwirq );
514
- extern void irq_domain_associate_many (struct irq_domain * domain ,
515
- unsigned int irq_base ,
516
- irq_hw_number_t hwirq_base , int count );
512
+ int irq_domain_associate (struct irq_domain * domain , unsigned int irq ,
513
+ irq_hw_number_t hwirq );
514
+ void irq_domain_associate_many (struct irq_domain * domain ,
515
+ unsigned int irq_base ,
516
+ irq_hw_number_t hwirq_base , int count );
517
517
518
- extern unsigned int irq_create_mapping_affinity (struct irq_domain * host ,
519
- irq_hw_number_t hwirq ,
520
- const struct irq_affinity_desc * affinity );
521
- extern unsigned int irq_create_fwspec_mapping (struct irq_fwspec * fwspec );
522
- extern void irq_dispose_mapping (unsigned int virq );
518
+ unsigned int irq_create_mapping_affinity (struct irq_domain * host ,
519
+ irq_hw_number_t hwirq ,
520
+ const struct irq_affinity_desc * affinity );
521
+ unsigned int irq_create_fwspec_mapping (struct irq_fwspec * fwspec );
522
+ void irq_dispose_mapping (unsigned int virq );
523
523
524
524
static inline unsigned int irq_create_mapping (struct irq_domain * host ,
525
525
irq_hw_number_t hwirq )
526
526
{
527
527
return irq_create_mapping_affinity (host , hwirq , NULL );
528
528
}
529
529
530
- extern struct irq_desc * __irq_resolve_mapping (struct irq_domain * domain ,
531
- irq_hw_number_t hwirq ,
532
- unsigned int * irq );
530
+ struct irq_desc * __irq_resolve_mapping (struct irq_domain * domain ,
531
+ irq_hw_number_t hwirq ,
532
+ unsigned int * irq );
533
533
534
534
static inline struct irq_desc * irq_resolve_mapping (struct irq_domain * domain ,
535
535
irq_hw_number_t hwirq )
@@ -587,19 +587,21 @@ int irq_reserve_ipi(struct irq_domain *domain, const struct cpumask *dest);
587
587
int irq_destroy_ipi (unsigned int irq , const struct cpumask * dest );
588
588
589
589
/* V2 interfaces to support hierarchy IRQ domains. */
590
- extern struct irq_data * irq_domain_get_irq_data (struct irq_domain * domain ,
591
- unsigned int virq );
592
- extern void irq_domain_set_info (struct irq_domain * domain , unsigned int virq ,
593
- irq_hw_number_t hwirq ,
594
- const struct irq_chip * chip ,
595
- void * chip_data , irq_flow_handler_t handler ,
596
- void * handler_data , const char * handler_name );
597
- extern void irq_domain_reset_irq_data (struct irq_data * irq_data );
590
+ struct irq_data * irq_domain_get_irq_data (struct irq_domain * domain ,
591
+ unsigned int virq );
592
+ void irq_domain_set_info (struct irq_domain * domain , unsigned int virq ,
593
+ irq_hw_number_t hwirq ,
594
+ const struct irq_chip * chip ,
595
+ void * chip_data , irq_flow_handler_t handler ,
596
+ void * handler_data , const char * handler_name );
597
+ void irq_domain_reset_irq_data (struct irq_data * irq_data );
598
598
#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
599
- extern struct irq_domain * irq_domain_create_hierarchy (struct irq_domain * parent ,
600
- unsigned int flags , unsigned int size ,
601
- struct fwnode_handle * fwnode ,
602
- const struct irq_domain_ops * ops , void * host_data );
599
+ struct irq_domain * irq_domain_create_hierarchy (struct irq_domain * parent ,
600
+ unsigned int flags ,
601
+ unsigned int size ,
602
+ struct fwnode_handle * fwnode ,
603
+ const struct irq_domain_ops * ops ,
604
+ void * host_data );
603
605
604
606
static inline struct irq_domain * irq_domain_add_hierarchy (struct irq_domain * parent ,
605
607
unsigned int flags ,
@@ -613,13 +615,13 @@ static inline struct irq_domain *irq_domain_add_hierarchy(struct irq_domain *par
613
615
ops , host_data );
614
616
}
615
617
616
- extern int __irq_domain_alloc_irqs (struct irq_domain * domain , int irq_base ,
617
- unsigned int nr_irqs , int node , void * arg ,
618
- bool realloc ,
619
- const struct irq_affinity_desc * affinity );
620
- extern void irq_domain_free_irqs (unsigned int virq , unsigned int nr_irqs );
621
- extern int irq_domain_activate_irq (struct irq_data * irq_data , bool early );
622
- extern void irq_domain_deactivate_irq (struct irq_data * irq_data );
618
+ int __irq_domain_alloc_irqs (struct irq_domain * domain , int irq_base ,
619
+ unsigned int nr_irqs , int node , void * arg ,
620
+ bool realloc ,
621
+ const struct irq_affinity_desc * affinity );
622
+ void irq_domain_free_irqs (unsigned int virq , unsigned int nr_irqs );
623
+ int irq_domain_activate_irq (struct irq_data * irq_data , bool early );
624
+ void irq_domain_deactivate_irq (struct irq_data * irq_data );
623
625
624
626
static inline int irq_domain_alloc_irqs (struct irq_domain * domain ,
625
627
unsigned int nr_irqs , int node , void * arg )
@@ -628,32 +630,29 @@ static inline int irq_domain_alloc_irqs(struct irq_domain *domain,
628
630
NULL );
629
631
}
630
632
631
- extern int irq_domain_alloc_irqs_hierarchy (struct irq_domain * domain ,
632
- unsigned int irq_base ,
633
- unsigned int nr_irqs , void * arg );
634
- extern int irq_domain_set_hwirq_and_chip (struct irq_domain * domain ,
635
- unsigned int virq ,
636
- irq_hw_number_t hwirq ,
637
- const struct irq_chip * chip ,
638
- void * chip_data );
639
- extern void irq_domain_free_irqs_common (struct irq_domain * domain ,
640
- unsigned int virq ,
641
- unsigned int nr_irqs );
642
- extern void irq_domain_free_irqs_top (struct irq_domain * domain ,
643
- unsigned int virq , unsigned int nr_irqs );
644
-
645
- extern int irq_domain_push_irq (struct irq_domain * domain , int virq , void * arg );
646
- extern int irq_domain_pop_irq (struct irq_domain * domain , int virq );
647
-
648
- extern int irq_domain_alloc_irqs_parent (struct irq_domain * domain ,
649
- unsigned int irq_base ,
650
- unsigned int nr_irqs , void * arg );
651
-
652
- extern void irq_domain_free_irqs_parent (struct irq_domain * domain ,
653
- unsigned int irq_base ,
654
- unsigned int nr_irqs );
655
-
656
- extern int irq_domain_disconnect_hierarchy (struct irq_domain * domain ,
633
+ int irq_domain_set_hwirq_and_chip (struct irq_domain * domain ,
634
+ unsigned int virq ,
635
+ irq_hw_number_t hwirq ,
636
+ const struct irq_chip * chip ,
637
+ void * chip_data );
638
+ void irq_domain_free_irqs_common (struct irq_domain * domain ,
639
+ unsigned int virq ,
640
+ unsigned int nr_irqs );
641
+ void irq_domain_free_irqs_top (struct irq_domain * domain ,
642
+ unsigned int virq , unsigned int nr_irqs );
643
+
644
+ int irq_domain_push_irq (struct irq_domain * domain , int virq , void * arg );
645
+ int irq_domain_pop_irq (struct irq_domain * domain , int virq );
646
+
647
+ int irq_domain_alloc_irqs_parent (struct irq_domain * domain ,
648
+ unsigned int irq_base ,
649
+ unsigned int nr_irqs , void * arg );
650
+
651
+ void irq_domain_free_irqs_parent (struct irq_domain * domain ,
652
+ unsigned int irq_base ,
653
+ unsigned int nr_irqs );
654
+
655
+ int irq_domain_disconnect_hierarchy (struct irq_domain * domain ,
657
656
unsigned int virq );
658
657
659
658
static inline bool irq_domain_is_hierarchy (struct irq_domain * domain )
0 commit comments