Page MenuHomeFreeBSD

e6000sw: Fix register write logic
ClosedPublic

Authored by kd on Jun 30 2022, 10:47 AM.

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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.