HomeFreeBSD

[BHND/PMU] Correct shift of bits in BHND_PMU_SET_BITS macro

Description

[BHND/PMU] Correct shift of bits in BHND_PMU_SET_BITS macro

The purpose of BHND_PMU_{GET,SET}_BITS macro is to transform values from/into
register format. SET macro shifts value to left and applies filter mask.
GET macro applies filter mask and then shifts value to right.

Reviewed by: landonf, adrian (mentor)
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D7721

Details

Provenance
mizhkaAuthored on
Reviewer
landonf
Differential Revision
D7721: [BHND/PMU] Change SET macro to be opposite to GET
Parents
rS305195: MFV r302643:
Branches
Unknown
Tags
Unknown