diff options
author | Jan Sommer <jan.sommer@dlr.de> | 2020-08-14 21:57:52 +0200 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2020-09-16 15:52:58 +1000 |
commit | 514ffab353bc06068bc80c218c418910dc3d5f89 (patch) | |
tree | cbf268c4c69a9f32a8012cc34b9fc4a03ca7908a /freebsd/sys/dev | |
parent | Callout: Redefine callout_reset_on for rtems (diff) | |
download | rtems-libbsd-514ffab353bc06068bc80c218c418910dc3d5f89.tar.bz2 |
iflib.c: Deactivate use of ifc_cpus
- cpusets and SMP are currently not supported in libbsd for RTEMS
- Disable the ifc_cpus context variable and replace its usage,
essentially hard-coding for cpu 0
Diffstat (limited to 'freebsd/sys/dev')
-rw-r--r-- | freebsd/sys/dev/e1000/if_em.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/dev/e1000/if_em.c b/freebsd/sys/dev/e1000/if_em.c index 32eb4afe..4fc6e7b6 100644 --- a/freebsd/sys/dev/e1000/if_em.c +++ b/freebsd/sys/dev/e1000/if_em.c @@ -1837,8 +1837,14 @@ em_if_update_admin_status(if_ctx_t ctx) if (adapter->hw.mac.type < em_mac_min) lem_smartspeed(adapter); +#ifdef __rtems__ + else if (hw->mac.type == e1000_82574 && + adapter->intr_type == IFLIB_INTR_MSIX) + E1000_WRITE_REG(&adapter->hw, E1000_IMS, EM_MSIX_LINK | E1000_IMS_LSC); +#else /* __rtems__ */ E1000_WRITE_REG(&adapter->hw, E1000_IMS, EM_MSIX_LINK | E1000_IMS_LSC); +#endif /* __rtems__ */ } static void |