2015-09-22 19:59:45 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015, Intel Corporation
|
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2015-09-22 19:59:45 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2015-09-22 19:59:45 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
2015-09-22 19:59:45 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief I2C interrupt stubs
|
|
|
|
* This module contains the static interrupt stubs for the i2c drivers
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define _ASMLANGUAGE
|
|
|
|
|
2015-10-09 18:20:52 +08:00
|
|
|
#ifdef CONFIG_X86
|
2015-09-22 19:59:45 +08:00
|
|
|
#include <arch/x86/asm.h>
|
|
|
|
#include <drivers/ioapic.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_I2C_DW_0)
|
2016-01-12 05:15:07 +08:00
|
|
|
#if defined(CONFIG_IOAPIC) || defined(CONFIG_MVIC)
|
2015-10-15 23:23:03 +08:00
|
|
|
ioapic_mkstub i2c_dw_0 i2c_dw_isr i2c_dw_isr_0_device
|
2015-09-22 19:59:45 +08:00
|
|
|
#endif
|
|
|
|
#endif /* CONFIG_I2C_DW_0 */
|
|
|
|
|
|
|
|
#if defined(CONFIG_I2C_DW_1)
|
2016-01-12 05:15:07 +08:00
|
|
|
#if defined(CONFIG_IOAPIC) || defined(CONFIG_MVIC)
|
2015-10-23 09:13:11 +08:00
|
|
|
ioapic_mkstub i2c_dw_1 i2c_dw_isr i2c_dw_isr_1_device
|
2015-09-22 19:59:45 +08:00
|
|
|
#endif
|
|
|
|
#endif /* CONFIG_I2C_DW_1 */
|
|
|
|
|
|
|
|
|