pmu_send
pmu_send(sc, PMU_POWER_CTRL, 1, cmd, 16, resp);
pmu_send(sc, PMU_POWER_CTRL, 1, cmd, 16, resp);
pmu_send(sc, PMU_SET_BRIGHTNESS, 1, cmd, 16, resp);
static int pmu_send(void *, int, int, uint8_t *, int, uint8_t *);
sc->sc_pmu_ops.do_command = pmu_send;
pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp);
if (pmu_send(sc, PMU_GET_VERSION, 0, cmd, 16, resp) > 1)
if (pmu_send(sc, PMU_READ_BRIGHTNESS, 1, cmd, 16, resp) > 1) {
pmu_send(sc, PMU_SET_IMASK, 1, &pmu_imask, 16, resp);
len = pmu_send(sc, PMU_INT_ACK, 0, NULL, 16, resp);
pmu_send(sc, PMU_READ_RTC, 0, NULL, 16, resp);
if (pmu_send(sc, PMU_SET_RTC, 4, (uint8_t *)&sec, 16, resp) >= 0)
if (pmu_send(sc, PMU_POWER_OFF, 4, cmd, 16, resp) >= 0)
if (pmu_send(sc, PMU_RESET_CPU, 0, NULL, 16, resp) >= 0)
pmu_send(sc, PMU_POWER_CTRL0, 1, cmd, 16, resp);
pmu_send(sc, PMU_ADB_CMD, 4, cmd, 16, resp);
pmu_send(sc, PMU_ADB_POLL_OFF, 0, NULL, 16, resp);
pmu_send(sc, PMU_ADB_CMD, 4, cmd, 16, resp);
(void)pmu_send(sc, PMU_ADB_CMD, len + 3, packet, 16, resp);
len = pmu_send(sc, PMU_I2C_CMD, 7, command, 16, resp);
len = pmu_send(sc, PMU_I2C_CMD, 1, command, 16, resp);
len = pmu_send(sc, PMU_I2C_CMD, send_len + 7, command, 16, resp);
len = pmu_send(sc, PMU_I2C_CMD, 7, command, 16, resp);
len = pmu_send(sc, PMU_I2C_CMD, 1, command, 16, resp);
len = pmu_send(sc, PMU_I2C_CMD, len, command, 16, resp);
pmu_send(sc, PMU_EJECT_PCMCIA, 1, buf, 4, res);