Refactors MSI code slightly
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 4 Apr 2014 19:40:41 +0000 (12:40 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 4 Apr 2014 19:40:41 +0000 (12:40 -0700)
commita20698fbf65c2722f6a22c376476c31cb736b88e
tree7271d698788ed4ca8350bbd4fcea36360c785f3f
parenta219abde22803beb84c3e7c9af9ecaeeba2842ab
Refactors MSI code slightly

PCI/MSI code doesn't need to know about irq_h, which makes all of the
interfaces a little cleaner.

Also puts in some checks to prevent us from trying to turn on MSI and
MSI-X at the same time.
kern/arch/x86/ioapic.c
kern/arch/x86/msi.c
kern/arch/x86/pci.h