Home | History | Annotate | Download | only in isa

Lines Matching defs:iobuf

238 	unsigned char iobuf[16];
263 iobuf[APS_CMD] = 0x13;
264 if (aps_do_io(iot, ioh, iobuf, APS_WRITE_0, APS_READ_1)) {
277 cr = iobuf[APS_ARG1];
282 if (iobuf[APS_RET] != 0 || cr < 1 || cr > 5) {
384 unsigned char iobuf[16];
387 iobuf[APS_CMD] = 0x17;
388 iobuf[APS_ARG1] = 0x81;
390 if (aps_do_io(sc->sc_iot, sc->sc_ioh, iobuf, APS_WRITE_1, APS_READ_3))
392 if (iobuf[APS_RET] != 0 ||iobuf[APS_ARG3] != 0)
396 if ((iobuf[APS_ARG1] != 0 || iobuf[APS_ARG2] != 0x60) &&
397 (iobuf[APS_ARG1] != 1 || iobuf[APS_ARG2] != 0))
401 iobuf[APS_CMD] = 0x14;
402 iobuf[APS_ARG1] = 0x01;
404 if (aps_do_io(sc->sc_iot, sc->sc_ioh, iobuf, APS_WRITE_1, APS_READ_0))
407 if (iobuf[APS_RET] != 0)
411 iobuf[APS_CMD] = 0x10;
412 iobuf[APS_ARG1] = 0xc8;
413 iobuf[APS_ARG2] = 0x00;
414 iobuf[APS_ARG3] = 0x02;
416 if (aps_do_io(sc->sc_iot, sc->sc_ioh, iobuf, APS_WRITE_3, APS_READ_0))
420 iobuf[APS_CMD] = 0x11;
421 if (aps_do_io(sc->sc_iot, sc->sc_ioh, iobuf, APS_WRITE_0, APS_READ_1))
423 if (iobuf[APS_ARG1] != 0)
448 unsigned char iobuf[16];
450 iobuf[APS_CMD] = 0x11;
451 if (aps_do_io(sc->sc_iot, sc->sc_ioh, iobuf, APS_WRITE_0, APS_READ_ALL))
454 sc->aps_data.state = iobuf[APS_STATE];
455 sc->aps_data.x_accel = iobuf[APS_XACCEL] + 256 * iobuf[APS_XACCEL + 1];
456 sc->aps_data.y_accel = iobuf[APS_YACCEL] + 256 * iobuf[APS_YACCEL + 1];
457 sc->aps_data.temp1 = iobuf[APS_TEMP];
458 sc->aps_data.x_var = iobuf[APS_XVAR] + 256 * iobuf[APS_XVAR + 1];
459 sc->aps_data.y_var = iobuf[APS_YVAR] + 256 * iobuf[APS_YVAR + 1];
460 sc->aps_data.temp2 = iobuf[APS_TEMP2];
461 sc->aps_data.input = iobuf[APS_INPUT];
534 unsigned char iobuf[16];
542 iobuf[APS_CMD] = 0x13;
543 if (aps_do_io(sc->sc_iot, sc->sc_ioh, iobuf, APS_WRITE_0, APS_READ_1)