summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorEyal Harari <Eyal.Harari@freesacle.com>2014-08-24 11:57:07 (GMT)
committerRich Schmitt <B43082@freescale.com>2014-09-05 17:08:55 (GMT)
commit89e4d4b113dc6d78ab0f2db705bbbcd669efe3b4 (patch)
treecc5cd169e604213249141a011605e500942555bd /drivers/net/ethernet/freescale
parent3d55c3c0173c7ebfcc75c0fb7d26533b6b90bc71 (diff)
downloadlinux-fsl-qoriq-89e4d4b113dc6d78ab0f2db705bbbcd669efe3b4.tar.xz
FMD: DSAR: fixed compatibility of structures t_FmPortDsarOidsEntry and auto_res_snmp_entry
Signed-off-by: Eyal Harari <Eyal.Harari@freesacle.com>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r--drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c6
-rw-r--r--drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h9
2 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c b/drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c
index ccfcf86..e5ffdb4 100644
--- a/drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c
+++ b/drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c
@@ -5708,14 +5708,14 @@ t_Error FM_PORT_EnterDsar(t_Handle h_FmPortRx, t_FmPortDsarParams *params)
{
WRITE_UINT16(snmpOid->oidSize, snmpSrc->p_OidsTbl[i].oidSize);
WRITE_UINT16(snmpOid->resSize, snmpSrc->p_OidsTbl[i].resSize);
- Mem2IOCpy32(charPointer, snmpSrc->p_OidsTbl[i].p_Oid, snmpSrc->p_OidsTbl[i].oidSize);
+ Mem2IOCpy32(charPointer, snmpSrc->p_OidsTbl[i].oidVal, snmpSrc->p_OidsTbl[i].oidSize);
WRITE_UINT32(snmpOid->p_Oid, PTR_TO_UINT(charPointer) - fmMuramVirtBaseAddr);
charPointer += snmpSrc->p_OidsTbl[i].oidSize;
if (snmpSrc->p_OidsTbl[i].resSize <= 4)
- WRITE_UINT32(snmpOid->resValOrPtr, snmpSrc->p_OidsTbl[i].resValOrPtr);
+ WRITE_UINT32(snmpOid->resValOrPtr, *snmpSrc->p_OidsTbl[i].resVal);
else
{
- Mem2IOCpy32(charPointer, UINT_TO_PTR(snmpSrc->p_OidsTbl[i].resValOrPtr), snmpSrc->p_OidsTbl[i].resSize);
+ Mem2IOCpy32(charPointer, snmpSrc->p_OidsTbl[i].resVal, snmpSrc->p_OidsTbl[i].resSize);
WRITE_UINT32(snmpOid->resValOrPtr, PTR_TO_UINT(charPointer) - fmMuramVirtBaseAddr);
charPointer += snmpSrc->p_OidsTbl[i].resSize;
}
diff --git a/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h b/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h
index 3e9470b..c342873 100644
--- a/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h
+++ b/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h
@@ -1389,10 +1389,11 @@ typedef struct t_FmPortDsarEchoIpv6Info
*//***************************************************************************/
typedef struct {
- uint16_t oidSize; /**< Size in octets of the OID. */
- uint16_t resSize; /**< Size in octets of the value that is attached to the OID. */
- uint8_t *p_Oid; /**< Pointer to the OID. OID is encoded in BER but type and length are excluded. */
- uint64_t resValOrPtr; /**< Value (for up to 4 octets) or pointer to the Value. Encoded in BER. */
+ uint16_t oidSize;
+ uint8_t *oidVal; /* only the oid string */
+ uint16_t resSize;
+ uint8_t *resVal; /* resVal will be the entire reply,
+ i.e. "Type|Length|Value" */
} t_FmPortDsarOidsEntry;
/**************************************************************************//**