⬢ DragonFlyBSD Kernel Audit
DF-4947 / build.log
← back to finding ↓ download raw
== id_to_offset DDC mask-vs-register-field audit (DF-4947) ==
DDC1-6/VGA DATA/CLK fields are laid out identically to DDC6
(bit8/bit0), so the hardwired DDC6 masks are correct there.
DC_GPIO_I2CPAD_A is NOT: SDA=bit1(0x2), SCL=bit0(0x1).

id_to_offset(DDC_DATA, DDC1)       = true  offset=0x5d91 mask=0x100  real field mask=0x100  OK
id_to_offset(DDC_DATA, DDC_VGA)    = true  offset=0x5da9 mask=0x100  real field mask=0x100  OK
id_to_offset(DDC_CLOCK, I2C_PAD)   = true  offset=0x5dc1 mask=0x1    real field mask=0x1    OK
id_to_offset(DDC_DATA, I2C_PAD)    = true  offset=0x5dc1 mask=0x100  real field mask=0x2    WRONG BIT (DF-4947)

1 wrong-mask lines (DDC_DATA+I2C_PAD is the DF-4947 defect)
EXIT=0