/* * Copyright (C) 2012 Realtek Semiconductor Corp. * All Rights Reserved. * * This program is the proprietary software of Realtek Semiconductor * Corporation and/or its licensors, and only be used, duplicated, * modified or distributed under the authorized license from Realtek. * * ANY USE OF THE SOFTWARE OTHER THAN AS AUTHORIZED UNDER * THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. * * $Revision: 39101 $ * $Date: 2013-05-03 17:35:27 +0800 (Fri, 03 May 2013) $ * * Purpose : Definition of Classifyication API * * Feature : The file includes the following modules and sub-modules * (1) CPU tag functions set/get */ #ifndef __DAL_RTL9602C_CPU_H__ #define __DAL_RTL9602C_CPU_H__ /* * Include Files */ #include #include /* * Symbol Definition */ /* * Data Declaration */ /* * Macro Declaration */ /* * Function Declaration */ /* Function Name: * dal_rtl9602c_cpu_init * Description: * Initialize cpu tag module. * Input: * None * Output: * None * Return: * RT_ERR_OK * RT_ERR_FAILED * Note: * Must initialize classification module before calling any classification APIs. */ extern int32 dal_rtl9602c_cpu_init(void); /* Function Name: * dal_rtl9602c_cpu_trapInsertTag_set * Description: * Set trap CPU insert tag state. * Input: * state - insert CPU tag state * Output: * None * Return: * RT_ERR_OK * RT_ERR_FAILED * RT_ERR_OUT_OF_RANGE * Note: * Must initialize cpu tag module before calling any cpu tag APIs. */ extern int32 dal_rtl9602c_cpu_trapInsertTag_set(rtk_enable_t state); /* Function Name: * dal_rtl9602c_cpu_trapInsertTag_get * Description: * Get trap CPU insert tag state. * Input: * pState - the pointer of insert CPU tag state * Output: * None * Return: * RT_ERR_OK * RT_ERR_FAILED * RT_ERR_NULL_POINTER * Note: * Must initialize cpu tag module before calling any cpu tag APIs. */ extern int32 dal_rtl9602c_cpu_trapInsertTag_get(rtk_enable_t *pState); /* Function Name: * dal_rtl9602c_cpu_tagAware_set * Description: * Set CPU tag aware state. * Input: * state - CPU tag aware state * Output: * None * Return: * RT_ERR_OK * RT_ERR_FAILED * RT_ERR_INPUT * Note: * Must initialize cpu tag module before calling any cpu tag APIs. */ extern int32 dal_rtl9602c_cpu_tagAware_set(rtk_enable_t state); /* Function Name: * dal_rtl9602c_cpu_tagAware_get * Description: * Get CPU tag aware state. * Input: * pState - the pointer of CPU tag aware state * Output: * None * Return: * RT_ERR_OK * RT_ERR_FAILED * RT_ERR_NULL_POINTER * Note: * Must initialize cpu tag module before calling any cpu tag APIs. */ extern int32 dal_rtl9602c_cpu_tagAware_get(rtk_enable_t *pState); #endif /*#ifndef __DAL_RTL9602C_CPU_H__*/