gianfar.c (ef09487431a96029b64a7a6fc4ced46662e921e7) | gianfar.c (e2dbbbe52c4a0f7704735b49f864fe8ea06111e5) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* drivers/net/ethernet/freescale/gianfar.c 3 * 4 * Gianfar Ethernet Driver 5 * This driver is designed for the non-CPM ethernet controllers 6 * on the 85xx and 83xx family of integrated processors 7 * Based on 8260_io/fcc_enet.c 8 * --- 3084 unchanged lines hidden (view full) --- 3093 * (The firmware could have used it, and left it running). 3094 */ 3095 gfar_halt(priv); 3096 3097 gfar_mac_reset(priv); 3098 3099 /* Zero out the rmon mib registers if it has them */ 3100 if (priv->device_flags & FSL_GIANFAR_DEV_HAS_RMON) { | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* drivers/net/ethernet/freescale/gianfar.c 3 * 4 * Gianfar Ethernet Driver 5 * This driver is designed for the non-CPM ethernet controllers 6 * on the 85xx and 83xx family of integrated processors 7 * Based on 8260_io/fcc_enet.c 8 * --- 3084 unchanged lines hidden (view full) --- 3093 * (The firmware could have used it, and left it running). 3094 */ 3095 gfar_halt(priv); 3096 3097 gfar_mac_reset(priv); 3098 3099 /* Zero out the rmon mib registers if it has them */ 3100 if (priv->device_flags & FSL_GIANFAR_DEV_HAS_RMON) { |
3101 memset_io(&(regs->rmon), 0, sizeof(struct rmon_mib)); | 3101 memset_io(®s->rmon, 0, offsetof(struct rmon_mib, car1)); |
3102 3103 /* Mask off the CAM interrupts */ 3104 gfar_write(®s->rmon.cam1, 0xffffffff); 3105 gfar_write(®s->rmon.cam2, 0xffffffff); 3106 /* Clear the CAR registers (w1c style) */ 3107 gfar_write(®s->rmon.car1, 0xffffffff); 3108 gfar_write(®s->rmon.car2, 0xffffffff); 3109 } --- 498 unchanged lines hidden --- | 3102 3103 /* Mask off the CAM interrupts */ 3104 gfar_write(®s->rmon.cam1, 0xffffffff); 3105 gfar_write(®s->rmon.cam2, 0xffffffff); 3106 /* Clear the CAR registers (w1c style) */ 3107 gfar_write(®s->rmon.car1, 0xffffffff); 3108 gfar_write(®s->rmon.car2, 0xffffffff); 3109 } --- 498 unchanged lines hidden --- |