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 : 802.1X related functions
18 #ifndef _RTL8367C_ASICDRV_DOT1X_H_
19 #define _RTL8367C_ASICDRV_DOT1X_H_
21 #include <rtl8367c_asicdrv.h>
23 enum DOT1X_UNAUTH_BEHAV
25 DOT1X_UNAUTH_DROP
= 0,
31 extern ret_t
rtl8367c_setAsic1xPBEnConfig(rtk_uint32 port
, rtk_uint32 enabled
);
32 extern ret_t
rtl8367c_getAsic1xPBEnConfig(rtk_uint32 port
, rtk_uint32
*pEnabled
);
33 extern ret_t
rtl8367c_setAsic1xPBAuthConfig(rtk_uint32 port
, rtk_uint32 auth
);
34 extern ret_t
rtl8367c_getAsic1xPBAuthConfig(rtk_uint32 port
, rtk_uint32
*pAuth
);
35 extern ret_t
rtl8367c_setAsic1xPBOpdirConfig(rtk_uint32 port
, rtk_uint32 opdir
);
36 extern ret_t
rtl8367c_getAsic1xPBOpdirConfig(rtk_uint32 port
, rtk_uint32
*pOpdir
);
37 extern ret_t
rtl8367c_setAsic1xMBEnConfig(rtk_uint32 port
, rtk_uint32 enabled
);
38 extern ret_t
rtl8367c_getAsic1xMBEnConfig(rtk_uint32 port
, rtk_uint32
*pEnabled
);
39 extern ret_t
rtl8367c_setAsic1xMBOpdirConfig(rtk_uint32 opdir
);
40 extern ret_t
rtl8367c_getAsic1xMBOpdirConfig(rtk_uint32
*pOpdir
);
41 extern ret_t
rtl8367c_setAsic1xProcConfig(rtk_uint32 port
, rtk_uint32 proc
);
42 extern ret_t
rtl8367c_getAsic1xProcConfig(rtk_uint32 port
, rtk_uint32
*pProc
);
43 extern ret_t
rtl8367c_setAsic1xGuestVidx(rtk_uint32 index
);
44 extern ret_t
rtl8367c_getAsic1xGuestVidx(rtk_uint32
*pIndex
);
45 extern ret_t
rtl8367c_setAsic1xGVOpdir(rtk_uint32 enabled
);
46 extern ret_t
rtl8367c_getAsic1xGVOpdir(rtk_uint32
*pEnabled
);
47 extern ret_t
rtl8367c_setAsic1xTrapPriority(rtk_uint32 priority
);
48 extern ret_t
rtl8367c_getAsic1xTrapPriority(rtk_uint32
*pPriority
);
51 #endif /*_RTL8367C_ASICDRV_DOT1X_H_*/