1 /* 2 * Copyright (c) 2020 Nuvoton Technology Corporation. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef _NUVOTON_NPCX_SOC_ESPI_H_ 8 #define _NUVOTON_NPCX_SOC_ESPI_H_ 9 10 #include <device.h> 11 #include <sys/util.h> 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /** 18 * @brief Turn on all interrupts of eSPI host interface module. 19 * 20 * @param dev Pointer to structure device of eSPI module 21 */ 22 void npcx_espi_enable_interrupts(const struct device *dev); 23 24 /** 25 * @brief Turn off all interrupts of eSPI host interface module. 26 * 27 * @param dev Pointer to structure device of eSPI module 28 */ 29 void npcx_espi_disable_interrupts(const struct device *dev); 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #endif /* _NUVOTON_NPCX_SOC_ESPI_H_ */ 36