contiki/cpu/x86/drivers/legacy_pc
Michael LeMay c815fa4511 x86: Use shared ISR for I2C and GPIO
This patch permits interrupts to be generated by both the I2C and GPIO
controllers for simultaneously-executing applications. The controllers
share a single interrupt pin, INTC. Prior to this patch,
quarkX1000_gpio_init() routed INTA to PIRQC and IRQ 10 (due to an
incorrect assumption that INTA is connected to the GPIO controller),
and quarkX1000_i2c_init() routed INTC to PIRQC and IRQ 9. The I2C
controller initialization is a prerequisite for GPIO initialization,
so the final configuration was that INTA and INTC were both routed to
PIRQC and IRQ 10. Thus, only the GPIO ISR was being invoked, even if
the I2C controller was actually responsible for the interrupt.

This patch refactors the I2C and GPIO ISR setup and handler code so
that the shared portions are combined in
cpu/x86/drivers/legacy_pc/shared-isr.[ch].  The I2C and GPIO drivers
communicate their interrupt information to the shared component by
placing structures in a specific section of the binary.
2016-02-16 21:19:44 -08:00
..
nmi.c x86: Disable NMI while initializing RTC 2015-12-21 08:06:14 -02:00
nmi.h x86: Disable NMI while initializing RTC 2015-12-21 08:06:14 -02:00
pci.c x86: Add driver for Intel Quark X1000 built-in Ethernet 2015-12-21 08:06:14 -02:00
pci.h x86: Add support for PCI BAR1 2015-12-21 08:06:14 -02:00
pic.c x86: Move available drivers into drivers/legacy_pc/ 2015-12-21 08:06:14 -02:00
pic.h x86: Move available drivers into drivers/legacy_pc/ 2015-12-21 08:06:14 -02:00
pit.c x86: Move available drivers into drivers/legacy_pc/ 2015-12-21 08:06:14 -02:00
pit.h x86: Move available drivers into drivers/legacy_pc/ 2015-12-21 08:06:14 -02:00
rtc.c x86: Disable NMI while initializing RTC 2015-12-21 08:06:14 -02:00
rtc.h x86: Move available drivers into drivers/legacy_pc/ 2015-12-21 08:06:14 -02:00
shared-isr.c x86: Use shared ISR for I2C and GPIO 2016-02-16 21:19:44 -08:00
shared-isr.h x86: Use shared ISR for I2C and GPIO 2016-02-16 21:19:44 -08:00
uart-16x50.c x86: Add support for PCI BAR1 2015-12-21 08:06:14 -02:00
uart-16x50.h x86: Add driver for MMIO-accessible 16X50 UART 2015-12-21 08:06:14 -02:00