summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMandy Lavi <mandy.lavi@freescale.com>2015-11-02 11:01:02 (GMT)
committerMandy Lavi <mandy.lavi@freescale.com>2015-11-18 08:02:23 (GMT)
commit1666d6823ec9b1192212f0d63af908963ffbe0e9 (patch)
treefb1dbf20f49f41a0cd58e1da1347f43aea5139ca /include
parente176e3fade4bea2eb4fed6d6b4a689b3248e0788 (diff)
downloadlinux-fsl-qoriq-1666d6823ec9b1192212f0d63af908963ffbe0e9.tar.xz
fmd: add ioctl call to retrieve scheme counter - spc
Based on FM_PCD_KgSchemeGetCounter() function which is already exposed by the API Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h b/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h
index a4b5e76..99f654b 100644
--- a/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h
+++ b/include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h
@@ -375,6 +375,23 @@ typedef struct ioc_fm_pcd_kg_dflt_value_params_t {
*//***************************************************************************/
#define FM_PCD_IOC_GET_COUNTER _IOWR(FM_IOC_TYPE_BASE, FM_PCD_IOC_NUM(9), ioc_fm_pcd_counters_params_t)
+/**************************************************************************//**
+
+ @Function FM_PCD_KgSchemeGetCounter
+
+ @Description Reads scheme packet counter.
+
+ @Param[in] h_Scheme scheme handle as returned by FM_PCD_KgSchemeSet().
+
+ @Return Counter's current value.
+
+ @Cautions Allowed only following FM_PCD_Init() & FM_PCD_KgSchemeSet().
+*//***************************************************************************/
+#if defined(CONFIG_COMPAT)
+#define FM_PCD_IOC_KG_SCHEME_GET_CNTR_COMPAT _IOR(FM_IOC_TYPE_BASE, FM_PCD_IOC_NUM(4), ioc_compat_fm_pcd_kg_scheme_spc_t)
+#endif
+#define FM_PCD_IOC_KG_SCHEME_GET_CNTR _IOR(FM_IOC_TYPE_BASE, FM_PCD_IOC_NUM(4), ioc_fm_pcd_kg_scheme_spc_t)
+
#if 0
TODO: unused IOCTL
/**************************************************************************//**
@@ -1126,6 +1143,15 @@ typedef struct ioc_fm_pcd_kg_scheme_counter_t {
counter; clear this field to reset the counter. */
} ioc_fm_pcd_kg_scheme_counter_t;
+
+/**************************************************************************//**
+ @Description A structure for retrieving FMKG_SE_SPC
+*//***************************************************************************/
+typedef struct ioc_fm_pcd_kg_scheme_spc_t {
+ uint32_t val; /**< return value */
+ void *id; /**< scheme handle */
+} ioc_fm_pcd_kg_scheme_spc_t;
+
/**************************************************************************//**
@Description A structure for defining policer profile parameters as required by keygen
(when policer is the next engine after this scheme).