Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ichiic/ig4_iic.c
Show First 20 Lines • Show All 798 Lines • ▼ Show 20 Lines | if (ACPI_FAILURE(status)) | ||||
return (status); | return (status); | ||||
status = AE_TYPE; | status = AE_TYPE; | ||||
obj = (ACPI_OBJECT *)buf.Pointer; | obj = (ACPI_OBJECT *)buf.Pointer; | ||||
if (obj->Type == ACPI_TYPE_PACKAGE && obj->Package.Count == 3) { | if (obj->Type == ACPI_TYPE_PACKAGE && obj->Package.Count == 3) { | ||||
elems = obj->Package.Elements; | elems = obj->Package.Elements; | ||||
*scl_hcnt = elems[0].Integer.Value & IG4_SCL_CLOCK_MASK; | *scl_hcnt = elems[0].Integer.Value & IG4_SCL_CLOCK_MASK; | ||||
*scl_lcnt = elems[1].Integer.Value & IG4_SCL_CLOCK_MASK; | *scl_lcnt = elems[1].Integer.Value & IG4_SCL_CLOCK_MASK; | ||||
if (elems[2].Integer.Value != 0) { | |||||
/* | |||||
* If the value in the table is zero, stick | |||||
* with value calculated earlier for sda_hold. | |||||
*/ | |||||
*sda_hold = elems[2].Integer.Value & IG4_SDA_TX_HOLD_MASK; | *sda_hold = elems[2].Integer.Value & IG4_SDA_TX_HOLD_MASK; | ||||
} | |||||
status = AE_OK; | status = AE_OK; | ||||
} | } | ||||
AcpiOsFree(obj); | AcpiOsFree(obj); | ||||
return (status); | return (status); | ||||
} | } | ||||
#endif /* DEV_ACPI */ | #endif /* DEV_ACPI */ | ||||
▲ Show 20 Lines • Show All 403 Lines • Show Last 20 Lines |