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)
Wed, Jan 22, 5:38 PM
Unknown Object (File)
Nov 25 2024, 10:40 AM
Unknown Object (File)
Nov 25 2024, 8:03 AM
Unknown Object (File)
Nov 25 2024, 5:28 AM
Unknown Object (File)
Nov 14 2024, 1:19 PM
Unknown Object (File)
Nov 13 2024, 8:07 PM
Unknown Object (File)
Oct 3 2024, 4:52 AM
Unknown Object (File)
Oct 2 2024, 11:26 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