Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/smp/smp.h

    rfe32163 rd99c1d2  
    2727 */
    2828
    29 /** @addtogroup ia32
     29/** @addtogroup ia32   
    3030 * @{
    3131 */
     
    4040/** SMP config opertaions interface. */
    4141struct smp_config_operations {
    42         /** Check whether a processor is enabled. */
    43         bool (* cpu_enabled)(size_t);
    44        
    45         /** Check whether a processor is BSP. */
    46         bool (*cpu_bootstrap)(size_t);
    47        
    48         /** Return APIC ID of a processor. */
    49         uint8_t (*cpu_apic_id)(size_t);
    50        
    51         /** Return mapping between IRQ and APIC pin. */
    52         int (*irq_to_pin)(unsigned int);
     42        size_t (* cpu_count)(void);             /**< Return number of detected processors. */
     43        bool (* cpu_enabled)(size_t i); /**< Check whether the processor of index i is enabled. */
     44        bool (*cpu_bootstrap)(size_t i);        /**< Check whether the processor of index i is BSP. */
     45        uint8_t (*cpu_apic_id)(size_t i);               /**< Return APIC ID of the processor of index i. */
     46        int (*irq_to_pin)(unsigned int irq);            /**< Return mapping between irq and APIC pin. */
    5347};
    5448
    55 extern int smp_irq_to_pin(unsigned int);
     49extern int smp_irq_to_pin(unsigned int irq);
    5650
    5751#endif
Note: See TracChangeset for help on using the changeset viewer.