Il giorno 12/ott/2011 10.49, "Michael Lotz" <mmlr@xxxxxxxx> ha scritto: > > Hi Stefano Hi Michael, > Without further information I can only imagine that you're out > to use MSI(-X)? If so then there's MSI allocation in the arch > specific kernel section with a very simplistic API currently > only used by the FreeBSD compat layer (see > headers/private/kernel/arch/x86/msi.h). The allocation > function returns the destination address and data to be > programmed into the hardware. I'm using old style interrupts atm, but HPET (I've converted the code in the kernel to a driver to ease testing) supports MSI interrupts too, but not on QEMU though) so I have to use regular interrupts as a fallback at least. > If you're not going for MSIs then no, there's no API. The > ioapic_is_interrupt_available() function tells you if a given > interrupt is used by the IO-APIC, but there's no such thing > for MSIs yet. > > Regards > Michael Ok, I guess that could be sufficient, no? Thanks!