Rev 2462 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2462 | Rev 2745 | ||
---|---|---|---|
Line 75... | Line 75... | ||
75 | struct __bus_entry *bus_entries = NULL; |
75 | struct __bus_entry *bus_entries = NULL; |
76 | struct __io_apic_entry *io_apic_entries = NULL; |
76 | struct __io_apic_entry *io_apic_entries = NULL; |
77 | struct __io_intr_entry *io_intr_entries = NULL; |
77 | struct __io_intr_entry *io_intr_entries = NULL; |
78 | struct __l_intr_entry *l_intr_entries = NULL; |
78 | struct __l_intr_entry *l_intr_entries = NULL; |
79 | 79 | ||
80 | int processor_entry_cnt = 0; |
80 | unsigned int processor_entry_cnt = 0; |
81 | int bus_entry_cnt = 0; |
81 | unsigned int bus_entry_cnt = 0; |
82 | int io_apic_entry_cnt = 0; |
82 | unsigned int io_apic_entry_cnt = 0; |
83 | int io_intr_entry_cnt = 0; |
83 | unsigned int io_intr_entry_cnt = 0; |
84 | int l_intr_entry_cnt = 0; |
84 | unsigned int l_intr_entry_cnt = 0; |
85 | 85 | ||
86 | waitq_t ap_completion_wq; |
86 | waitq_t ap_completion_wq; |
87 | 87 | ||
88 | /* |
88 | /* |
89 | * Implementation of IA-32 SMP configuration interface. |
89 | * Implementation of IA-32 SMP configuration interface. |
Line 415... | Line 415... | ||
415 | } |
415 | } |
416 | } |
416 | } |
417 | 417 | ||
418 | int mps_irq_to_pin(unsigned int irq) |
418 | int mps_irq_to_pin(unsigned int irq) |
419 | { |
419 | { |
420 | int i; |
420 | unsigned int i; |
421 | 421 | ||
422 | for (i = 0; i < io_intr_entry_cnt; i++) { |
422 | for (i = 0; i < io_intr_entry_cnt; i++) { |
423 | if (io_intr_entries[i].src_bus_irq == irq && io_intr_entries[i].intr_type == 0) |
423 | if (io_intr_entries[i].src_bus_irq == irq && io_intr_entries[i].intr_type == 0) |
424 | return io_intr_entries[i].dst_io_apic_pin; |
424 | return io_intr_entries[i].dst_io_apic_pin; |
425 | } |
425 | } |