Subversion Repositories HelenOS

Rev

Rev 2927 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2927 Rev 3149
Line 124... Line 124...
124
    return ((struct madt_l_apic *) madt_entries_index[madt_l_apic_entry_index + i])->apic_id;
124
    return ((struct madt_l_apic *) madt_entries_index[madt_l_apic_entry_index + i])->apic_id;
125
}
125
}
126
 
126
 
127
int madt_irq_to_pin(unsigned int irq)
127
int madt_irq_to_pin(unsigned int irq)
128
{
128
{
129
    ASSERT(irq < sizeof(isa_irq_map)/sizeof(int));
129
    ASSERT(irq < sizeof(isa_irq_map) / sizeof(int));
130
        return isa_irq_map[irq];
130
        return isa_irq_map[irq];
131
}
131
}
132
 
132
 
133
int madt_cmp(void * a, void * b)
133
int madt_cmp(void * a, void * b)
134
{
134
{
Line 182... Line 182...
182
                case MADT_L_APIC_NMI:
182
                case MADT_L_APIC_NMI:
183
                case MADT_L_APIC_ADDR_OVRD:
183
                case MADT_L_APIC_ADDR_OVRD:
184
                case MADT_IO_SAPIC:
184
                case MADT_IO_SAPIC:
185
                case MADT_L_SAPIC:
185
                case MADT_L_SAPIC:
186
                case MADT_PLATFORM_INTR_SRC:
186
                case MADT_PLATFORM_INTR_SRC:
187
                    printf("MADT: skipping %s entry (type=%zd)\n", entry[h->type], h->type);
187
                    printf("MADT: skipping %s entry (type=%" PRIu8 ")\n", entry[h->type], h->type);
188
                    break;
188
                    break;
189
   
189
   
190
                default:
190
                default:
191
                    if (h->type >= MADT_RESERVED_SKIP_BEGIN && h->type <= MADT_RESERVED_SKIP_END) {
191
                    if (h->type >= MADT_RESERVED_SKIP_BEGIN && h->type <= MADT_RESERVED_SKIP_END) {
192
                        printf("MADT: skipping reserved entry (type=%zd)\n", h->type);
192
                        printf("MADT: skipping reserved entry (type=%" PRIu8 ")\n", h->type);
193
                    }
193
                    }
194
                    if (h->type >= MADT_RESERVED_OEM_BEGIN) {
194
                    if (h->type >= MADT_RESERVED_OEM_BEGIN) {
195
                        printf("MADT: skipping OEM entry (type=%zd)\n", h->type);
195
                        printf("MADT: skipping OEM entry (type=%" PRIu8 ")\n", h->type);
196
                    }
196
                    }
197
                    break;
197
                    break;
198
            }
198
            }
199
        }
199
        }
200
    }
200
    }
Line 231... Line 231...
231
    }
231
    }
232
}
232
}
233
 
233
 
234
void madt_intr_src_ovrd_entry(struct madt_intr_src_ovrd *override, uint32_t index)
234
void madt_intr_src_ovrd_entry(struct madt_intr_src_ovrd *override, uint32_t index)
235
{
235
{
236
    ASSERT(override->source < sizeof(isa_irq_map)/sizeof(int));
236
    ASSERT(override->source < sizeof(isa_irq_map) / sizeof(int));
237
    printf("MADT: ignoring %s entry: bus=%zd, source=%zd, global_int=%zd, flags=%#hx\n",
237
    printf("MADT: ignoring %s entry: bus=%" PRIu8 ", source=%" PRIu8 ", global_int=%" PRIu32 ", flags=%#" PRIx16 "\n",
238
        entry[override->header.type], override->bus, override->source,
238
        entry[override->header.type], override->bus, override->source,
239
        override->global_int, override->flags);
239
        override->global_int, override->flags);
240
}
240
}
241
 
241
 
242
#endif /* CONFIG_SMP */
242
#endif /* CONFIG_SMP */