diff options
author | Eyal Harari <Eyal.Harari@freescale.com> | 2013-10-23 14:48:43 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-03-07 17:33:51 (GMT) |
commit | 8b32a91deffcc4cded99b366449c8139eea39690 (patch) | |
tree | 660bee4a95b400ad50956cf591106d6be51f589e /drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd | |
parent | f2569c4d162f1a10c5cdb68b5d29f2e0b8325afb (diff) | |
download | linux-fsl-qoriq-8b32a91deffcc4cded99b366449c8139eea39690.tar.xz |
FMD: DSAR: Establish the auto-response driver
- New code for auto-response
- Changed parser init
- Added DsarCheckParams and fm_port_dsar_dump_regs
- Added snmp support
- Added statistics features
- Fixed SNMP oid table
- Removed usage of create_proc_entry - for merging to master
Change-Id: Icd6292c8d68ddb4ee60ecfed87419c1f4cbf5e74
Signed-off-by: Eyal Harari <Eyal.Harari@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/8711
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Tested-by: Jose Rivera <German.Rivera@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/9445
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fm_prs.c | 8 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fman_prs.c | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fm_prs.c b/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fm_prs.c index e198afd..1666865 100644 --- a/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fm_prs.c +++ b/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fm_prs.c @@ -191,6 +191,14 @@ void PrsDisable(t_FmPcd *p_FmPcd) fman_prs_disable(PrsRegs); } +int PrsIsEnabled(t_FmPcd *p_FmPcd) +{ + struct fman_prs_regs *PrsRegs = (struct fman_prs_regs *)p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs; + + ASSERT_COND(p_FmPcd->guestId == NCSW_MASTER_ID); + return fman_prs_is_enabled(PrsRegs); +} + t_Error PrsIncludePortInStatistics(t_FmPcd *p_FmPcd, uint8_t hardwarePortId, bool include) { struct fman_prs_regs *PrsRegs; diff --git a/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fman_prs.c b/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fman_prs.c index caa1d28..108779d 100644 --- a/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fman_prs.c +++ b/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fman_prs.c @@ -110,6 +110,11 @@ void fman_prs_disable(struct fman_prs_regs *regs) iowrite32be(tmp, ®s->fmpr_rpimac); } +int fman_prs_is_enabled(struct fman_prs_regs *regs) +{ + return ioread32be(®s->fmpr_rpimac) & FM_PCD_PRS_RPIMAC_EN; +} + void fman_prs_set_stst_port_msk(struct fman_prs_regs *regs, uint32_t pid_msk) { iowrite32be(pid_msk, ®s->fmpr_ppsc); |