Commit 4fe72de6 authored by Ioana Ciornei's avatar Ioana Ciornei Committed by David S. Miller

dpaa2-eth: fixup kdoc warnings

Running kernel-doc over the dpaa2-eth driver generates a bunch of
warnings. Fix them up by removing code comments for macros which are
self-explanatory, respecting the kdoc format for macro documentation and
other small changes like describing the expected return values of
functions.
Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5ac2d254
...@@ -13,11 +13,12 @@ ...@@ -13,11 +13,12 @@
/** Key Generator properties */ /** Key Generator properties */
/** /**
* Number of masks per key extraction * DPKG_NUM_OF_MASKS - Number of masks per key extraction
*/ */
#define DPKG_NUM_OF_MASKS 4 #define DPKG_NUM_OF_MASKS 4
/** /**
* Number of extractions per key profile * DPKG_MAX_NUM_OF_EXTRACTS - Number of extractions per key profile
*/ */
#define DPKG_MAX_NUM_OF_EXTRACTS 10 #define DPKG_MAX_NUM_OF_EXTRACTS 10
......
...@@ -83,39 +83,21 @@ int dpmac_get_attributes(struct fsl_mc_io *mc_io, ...@@ -83,39 +83,21 @@ int dpmac_get_attributes(struct fsl_mc_io *mc_io,
u16 token, u16 token,
struct dpmac_attr *attr); struct dpmac_attr *attr);
/** /* DPMAC link configuration/state options */
* DPMAC link configuration/state options
*/
/**
* Enable auto-negotiation
*/
#define DPMAC_LINK_OPT_AUTONEG BIT_ULL(0) #define DPMAC_LINK_OPT_AUTONEG BIT_ULL(0)
/**
* Enable half-duplex mode
*/
#define DPMAC_LINK_OPT_HALF_DUPLEX BIT_ULL(1) #define DPMAC_LINK_OPT_HALF_DUPLEX BIT_ULL(1)
/**
* Enable pause frames
*/
#define DPMAC_LINK_OPT_PAUSE BIT_ULL(2) #define DPMAC_LINK_OPT_PAUSE BIT_ULL(2)
/**
* Enable a-symmetric pause frames
*/
#define DPMAC_LINK_OPT_ASYM_PAUSE BIT_ULL(3) #define DPMAC_LINK_OPT_ASYM_PAUSE BIT_ULL(3)
/** /* Advertised link speeds */
* Advertised link speeds
*/
#define DPMAC_ADVERTISED_10BASET_FULL BIT_ULL(0) #define DPMAC_ADVERTISED_10BASET_FULL BIT_ULL(0)
#define DPMAC_ADVERTISED_100BASET_FULL BIT_ULL(1) #define DPMAC_ADVERTISED_100BASET_FULL BIT_ULL(1)
#define DPMAC_ADVERTISED_1000BASET_FULL BIT_ULL(2) #define DPMAC_ADVERTISED_1000BASET_FULL BIT_ULL(2)
#define DPMAC_ADVERTISED_10000BASET_FULL BIT_ULL(4) #define DPMAC_ADVERTISED_10000BASET_FULL BIT_ULL(4)
#define DPMAC_ADVERTISED_2500BASEX_FULL BIT_ULL(5) #define DPMAC_ADVERTISED_2500BASEX_FULL BIT_ULL(5)
/** /* Advertise auto-negotiation enable */
* Advertise auto-negotiation enable
*/
#define DPMAC_ADVERTISED_AUTONEG BIT_ULL(3) #define DPMAC_ADVERTISED_AUTONEG BIT_ULL(3)
/** /**
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* This function has to be called before the following functions: * This function has to be called before the following functions:
* - dpni_set_rx_tc_dist() * - dpni_set_rx_tc_dist()
* - dpni_set_qos_table() * - dpni_set_qos_table()
*
* Return: '0' on Success; Error code otherwise.
*/ */
int dpni_prepare_key_cfg(const struct dpkg_profile_cfg *cfg, u8 *key_cfg_buf) int dpni_prepare_key_cfg(const struct dpkg_profile_cfg *cfg, u8 *key_cfg_buf)
{ {
...@@ -1793,6 +1795,8 @@ int dpni_get_api_version(struct fsl_mc_io *mc_io, ...@@ -1793,6 +1795,8 @@ int dpni_get_api_version(struct fsl_mc_io *mc_io,
* If cfg.enable is set to 0 the command will clear flow steering table. * If cfg.enable is set to 0 the command will clear flow steering table.
* The packets will be classified according to settings made in * The packets will be classified according to settings made in
* dpni_set_rx_hash_dist() * dpni_set_rx_hash_dist()
*
* Return: '0' on Success; Error code otherwise.
*/ */
int dpni_set_rx_fs_dist(struct fsl_mc_io *mc_io, int dpni_set_rx_fs_dist(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
...@@ -1826,6 +1830,8 @@ int dpni_set_rx_fs_dist(struct fsl_mc_io *mc_io, ...@@ -1826,6 +1830,8 @@ int dpni_set_rx_fs_dist(struct fsl_mc_io *mc_io,
* If cfg.enable is set to 1 the packets will be classified using a hash * If cfg.enable is set to 1 the packets will be classified using a hash
* function based on the key received in cfg.key_cfg_iova parameter. * function based on the key received in cfg.key_cfg_iova parameter.
* If cfg.enable is set to 0 the packets will be sent to the default queue * If cfg.enable is set to 0 the packets will be sent to the default queue
*
* Return: '0' on Success; Error code otherwise.
*/ */
int dpni_set_rx_hash_dist(struct fsl_mc_io *mc_io, int dpni_set_rx_hash_dist(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
......
This diff is collapsed.
...@@ -13,9 +13,6 @@ ...@@ -13,9 +13,6 @@
struct fsl_mc_io; struct fsl_mc_io;
/**
* Number of irq's
*/
#define DPRTC_MAX_IRQ_NUM 1 #define DPRTC_MAX_IRQ_NUM 1
#define DPRTC_IRQ_INDEX 0 #define DPRTC_IRQ_INDEX 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment