Page MenuHomeFreeBSD

e6000sw: Fix register write logic
ClosedPublic

Authored by kd on Jun 30 2022, 10:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 3 2024, 4:52 AM
Unknown Object (File)
Oct 2 2024, 11:26 PM
Unknown Object (File)
Oct 2 2024, 9:38 PM
Unknown Object (File)
Oct 1 2024, 8:12 AM
Unknown Object (File)
Sep 28 2024, 6:26 AM
Unknown Object (File)
Sep 27 2024, 12:34 AM
Unknown Object (File)
Sep 26 2024, 6:51 PM
Unknown Object (File)
Sep 26 2024, 4:57 PM
Subscribers

Details

Summary

When accessing a register directly from etherswitchcfg one must specify a register group(e.g. registers of portN) and the register offset within that group.
The latter is passed as the 5 least significant bits.
Extract the former by dividing the etherswitchcfg "register address" by 2^5=32, and not 5.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable