x86/bsp: move io apic driver to drivers/interrupt_controller

Change-Id: I00f400e0405f526dd17cf22c703fab4a4968fce0
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
This commit is contained in:
Dirk Brandewie 2015-06-05 10:48:18 -07:00 committed by Anas Nashif
parent 124a27f210
commit 09d2770377
8 changed files with 11 additions and 53 deletions

View file

@ -161,8 +161,6 @@ endif
source "arch/x86/timer/Kconfig"
source "arch/x86/interrupt_controller/Kconfig"
source "drivers/Kconfig"
source "net/Kconfig"

View file

@ -1,7 +1,6 @@
obj-y = core/
obj-y += bsp/
obj-y += timer/
obj-y += interrupt_controller/
obj-$(CONFIG_MICROKERNEL) += task/
obj-$(CONFIG_BSP_QUARK) += quark/

View file

@ -1,42 +0,0 @@
# Kconfig - x86 interrupt controller configuration options
#
# Copyright (c) 2014-2015 Wind River Systems, Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1) Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2) Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3) Neither the name of Wind River Systems nor the names of its contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
menu "Interrupt Controller Configuration"
config IOAPIC
bool "IOAPIC"
default n
help
This option signifies that the target has an IO-APIC device. This
capability allows IO-APIC-dependent code to be included.
endmenu

View file

@ -1,5 +0,0 @@
ccflags-y +=-I$(srctree)/include/drivers
ccflags-y +=-I$(srctree)/arch/x86
ccflags-y +=-I$(srctree)/arch/$(ARCH)/$(strip $(CONFIG_BSP_DIR))
obj-$(CONFIG_IOAPIC) += ioApicIntr.o

View file

@ -33,17 +33,16 @@
menu "Device Drivers"
source "drivers/simple/Kconfig"
source "drivers/interrupt_controller/Kconfig"
source "drivers/bluetooth/Kconfig"
source "drivers/console/Kconfig"
source "drivers/serial/Kconfig"
source "drivers/interrupt_controller/Kconfig"
source "drivers/timer/Kconfig"
source "drivers/random/Kconfig"

View file

@ -45,4 +45,12 @@ config LOAPIC
help
This option selects local APIC as the interrupt controller.
config IOAPIC
bool "IOAPIC"
default n
depends on X86_32
help
This option signifies that the target has an IO-APIC device. This
capability allows IO-APIC-dependent code to be included.
endmenu

View file

@ -9,4 +9,5 @@ obj-$(CONFIG_PIC) += i8259_boi.o
obj-$(CONFIG_PIC) += system_pic.o
obj-$(CONFIG_LOAPIC) += system_apic.o
obj-$(CONFIG_LOAPIC) += loapic_intr.o
obj-$(CONFIG_IOAPIC) += ioapic_intr.o