Rev 1702 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1702 | Rev 1780 | ||
|---|---|---|---|
| Line 41... | Line 41... | ||
| 41 | /** SMP config opertaions interface. */ |
41 | /** SMP config opertaions interface. */ |
| 42 | struct smp_config_operations { |
42 | struct smp_config_operations { |
| 43 | count_t (* cpu_count)(void); /**< Return number of detected processors. */ |
43 | count_t (* cpu_count)(void); /**< Return number of detected processors. */ |
| 44 | bool (* cpu_enabled)(index_t i); /**< Check whether the processor of index i is enabled. */ |
44 | bool (* cpu_enabled)(index_t i); /**< Check whether the processor of index i is enabled. */ |
| 45 | bool (*cpu_bootstrap)(index_t i); /**< Check whether the processor of index i is BSP. */ |
45 | bool (*cpu_bootstrap)(index_t i); /**< Check whether the processor of index i is BSP. */ |
| 46 | __u8 (*cpu_apic_id)(index_t i); /**< Return APIC ID of the processor of index i. */ |
46 | uint8_t (*cpu_apic_id)(index_t i); /**< Return APIC ID of the processor of index i. */ |
| 47 | int (*irq_to_pin)(int irq); /**< Return mapping between irq and APIC pin. */ |
47 | int (*irq_to_pin)(int irq); /**< Return mapping between irq and APIC pin. */ |
| 48 | }; |
48 | }; |
| 49 | 49 | ||
| 50 | extern int smp_irq_to_pin(int irq); |
50 | extern int smp_irq_to_pin(int irq); |
| 51 | 51 | ||