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 : Proprietary CPU-tag related function drivers
18 #ifndef _RTL8367C_ASICDRV_CPUTAG_H_
19 #define _RTL8367C_ASICDRV_CPUTAG_H_
21 #include <rtl8367c_asicdrv.h>
23 enum CPUTAG_INSERT_MODE
25 CPUTAG_INSERT_TO_ALL
= 0,
26 CPUTAG_INSERT_TO_TRAPPING
,
31 extern ret_t
rtl8367c_setAsicCputagEnable(rtk_uint32 enabled
);
32 extern ret_t
rtl8367c_getAsicCputagEnable(rtk_uint32
*pEnabled
);
33 extern ret_t
rtl8367c_setAsicCputagTrapPort(rtk_uint32 port
);
34 extern ret_t
rtl8367c_getAsicCputagTrapPort(rtk_uint32
*pPort
);
35 extern ret_t
rtl8367c_setAsicCputagPortmask(rtk_uint32 portmask
);
36 extern ret_t
rtl8367c_getAsicCputagPortmask(rtk_uint32
*pPmsk
);
37 extern ret_t
rtl8367c_setAsicCputagInsertMode(rtk_uint32 mode
);
38 extern ret_t
rtl8367c_getAsicCputagInsertMode(rtk_uint32
*pMode
);
39 extern ret_t
rtl8367c_setAsicCputagPriorityRemapping(rtk_uint32 srcPri
, rtk_uint32 newPri
);
40 extern ret_t
rtl8367c_getAsicCputagPriorityRemapping(rtk_uint32 srcPri
, rtk_uint32
*pNewPri
);
41 extern ret_t
rtl8367c_setAsicCputagPosition(rtk_uint32 position
);
42 extern ret_t
rtl8367c_getAsicCputagPosition(rtk_uint32
* pPostion
);
43 extern ret_t
rtl8367c_setAsicCputagMode(rtk_uint32 mode
);
44 extern ret_t
rtl8367c_getAsicCputagMode(rtk_uint32
*pMode
);
45 extern ret_t
rtl8367c_setAsicCputagRxMinLength(rtk_uint32 mode
);
46 extern ret_t
rtl8367c_getAsicCputagRxMinLength(rtk_uint32
*pMode
);
48 #endif /*#ifndef _RTL8367C_ASICDRV_CPUTAG_H_*/