2 * Copyright (C) 2013 Realtek Semiconductor Corp.
5 * Unless you and Realtek execute a separate written software license
6 * agreement governing use of this software, this software is licensed
7 * to you under the terms of the GNU General Public License version 2,
8 * available at https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11 * $Date: 2017-03-08 15:13:58 +0800 (¶g¤T, 08 ¤T¤ë 2017) $
13 * Purpose : RTL8367C switch high-level API for RTL8367C
14 * Feature : Interrupt related functions
18 #ifndef _RTL8367C_ASICDRV_INTERRUPT_H_
19 #define _RTL8367C_ASICDRV_INTERRUPT_H_
21 #include <rtl8367c_asicdrv.h>
23 typedef enum RTL8367C_INTR_IMRS_E
29 IMRS_SPECIAL_CONGESTION
,
35 IMRS_RESERVED
, /* Unused */
40 typedef enum RTL8367C_INTR_INDICATOR_E
44 INTRST_SPECIAL_CONGESTION
,
53 }RTL8367C_INTR_INDICATOR
;
55 extern ret_t
rtl8367c_setAsicInterruptPolarity(rtk_uint32 polarity
);
56 extern ret_t
rtl8367c_getAsicInterruptPolarity(rtk_uint32
* pPolarity
);
57 extern ret_t
rtl8367c_setAsicInterruptMask(rtk_uint32 imr
);
58 extern ret_t
rtl8367c_getAsicInterruptMask(rtk_uint32
* pImr
);
59 extern ret_t
rtl8367c_setAsicInterruptStatus(rtk_uint32 ims
);
60 extern ret_t
rtl8367c_getAsicInterruptStatus(rtk_uint32
* pIms
);
61 extern ret_t
rtl8367c_setAsicInterruptRelatedStatus(rtk_uint32 type
, rtk_uint32 status
);
62 extern ret_t
rtl8367c_getAsicInterruptRelatedStatus(rtk_uint32 type
, rtk_uint32
* pStatus
);
65 #endif /*#ifndef _RTL8367C_ASICDRV_INTERRUPT_H_*/