Rev 2089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2089 | Rev 2101 | ||
|---|---|---|---|
| Line 41... | Line 41... | ||
| 41 | struct smp_config_operations { |
41 | struct smp_config_operations { |
| 42 | count_t (* cpu_count)(void); /**< Return number of detected processors. */ |
42 | count_t (* cpu_count)(void); /**< Return number of detected processors. */ |
| 43 | bool (* cpu_enabled)(index_t i); /**< Check whether the processor of index i is enabled. */ |
43 | bool (* cpu_enabled)(index_t i); /**< Check whether the processor of index i is enabled. */ |
| 44 | bool (*cpu_bootstrap)(index_t i); /**< Check whether the processor of index i is BSP. */ |
44 | bool (*cpu_bootstrap)(index_t i); /**< Check whether the processor of index i is BSP. */ |
| 45 | uint8_t (*cpu_apic_id)(index_t i); /**< Return APIC ID of the processor of index i. */ |
45 | uint8_t (*cpu_apic_id)(index_t i); /**< Return APIC ID of the processor of index i. */ |
| 46 | int (*irq_to_pin)(int irq); /**< Return mapping between irq and APIC pin. */ |
46 | int (*irq_to_pin)(unsigned int irq); /**< Return mapping between irq and APIC pin. */ |
| 47 | }; |
47 | }; |
| 48 | 48 | ||
| 49 | extern int smp_irq_to_pin(int irq); |
49 | extern int smp_irq_to_pin(unsigned int irq); |
| 50 | 50 | ||
| 51 | #endif |
51 | #endif |
| 52 | 52 | ||
| 53 | /** @} |
53 | /** @} |
| 54 | */ |
54 | */ |