ps_init
(void) ps_init(pctlfd, pstatusfd, cpid, &proch);
extern retc_t ps_init(int, int, pid_t, struct ps_prochandle *);
pch->ps_init |= PCHSMBUS_INIT_CTRL;
pch->ps_init |= PCHSMBUS_INIT_INTR_EN;
pch->ps_init |= PCHSMBUS_INIT_I2C;
if ((pch->ps_init & PCHSMBUS_INIT_INTR_EN) != 0) {
pch->ps_init &= ~PCHSMBUS_INIT_INTR_EN;
if ((pch->ps_init & PCHSMBUS_INIT_CTRL) != 0) {
pch->ps_init &= ~PCHSMBUS_INIT_CTRL;
if ((pch->ps_init & PCHSMBUS_INIT_SYNC) != 0) {
pch->ps_init &= ~PCHSMBUS_INIT_SYNC;
if ((pch->ps_init & PCHSMBUS_INIT_INTR_HDL) != 0) {
pch->ps_init &= ~PCHSMBUS_INIT_INTR_HDL;
if ((pch->ps_init & PCHSMBUS_INIT_INTR_ALLOC) != 0) {
pch->ps_init &= ~PCHSMBUS_INIT_INTR_ALLOC;
if ((pch->ps_init & PCHSMBUS_INIT_REGS) != 0) {
pch->ps_init &= ~PCHSMBUS_INIT_REGS;
if ((pch->ps_init & PCHSMBUS_INIT_PCI) != 0) {
pch->ps_init &= ~PCHSMBUS_INIT_PCI;
ASSERT0(pch->ps_init);
pch->ps_init |= PCHSMBUS_INIT_PCI;
pch->ps_init |= PCHSMBUS_INIT_SYNC;
pch->ps_init &= ~PCHSMBUS_INIT_I2C;
pch->ps_init |= PCHSMBUS_RUN_I2C_EN;
pch->ps_init |= PCHSMBUS_RUN_BUF_EN;
ASSERT3U(pch->ps_init & PCHSMBUS_RUN_BUF_EN, ==, 0);
if ((pch->ps_init & PCHSMBUS_RUN_BUF_EN) == 0) {
pchsmbus_init_t ps_init;
if ((pch->ps_init & PCHSMBUS_RUN_I2C_EN) != 0) {
pch->ps_init &= ~PCHSMBUS_RUN_I2C_EN;
if ((pch->ps_init & PCHSMBUS_RUN_BUF_EN) != 0) {
pch->ps_init &= ~PCHSMBUS_RUN_BUF_EN;
pch->ps_init |= PCHSMBUS_INIT_REGS;
pch->ps_init |= PCHSMBUS_INIT_INTR_ALLOC;
pch->ps_init |= PCHSMBUS_INIT_INTR_HDL;
static int ps_init(void);
if ((rv = ps_init()) != 0)