Lines Matching defs:out_fdc
320 static int out_fdc(struct fdc_softc *, u_char);
399 if (out_fdc(fdc, NE7CMD_DUMPREG) || fdcresult(fdc) != 10)
410 out_fdc(fdc, NE7CMD_CFG);
411 out_fdc(fdc, vroom);
412 out_fdc(fdc, fdc->sc_cfg);
413 out_fdc(fdc, 0); /* PRETRK */
475 if (out_fdc(fdc, NE7CMD_VERSION) == 0 &&
520 out_fdc(fdc, NE7CMD_RECAL);
521 out_fdc(fdc, drive);
528 if (out_fdc(fdc, NE7CMD_SENSEI))
603 #define OUT_FDC(sc, c) do { \
604 if (out_fdc((sc), (c)) != 0) \
609 OUT_FDC(fdc, NE7CMD_SPECIFY);
610 OUT_FDC(fdc, type->steprate);
622 OUT_FDC(fdc, 6|1); /* XXX head load time == 6ms */
623 #undef OUT_FDC
866 out_fdc(struct fdc_softc *fdc, u_char x)
1019 out_fdc(fdc, NE7CMD_SENSEI);
1081 out_fdc(fdc, NE7CMD_SENSEI);
1155 #define OUT_FDC(fdc, c, s) \
1157 if (out_fdc(fdc, (c))) { \
1251 OUT_FDC(fdc, NE7CMD_SPECIFY, SEEKTIMEDOUT);
1252 OUT_FDC(fdc, fd->sc_type->steprate, SEEKTIMEDOUT);
1253 OUT_FDC(fdc, 6|1, SEEKTIMEDOUT); /* XXX head load time == 6ms */
1257 OUT_FDC(fdc, NE7CMD_SEEK, SEEKTIMEDOUT);
1258 OUT_FDC(fdc, fd->sc_drive, SEEKTIMEDOUT); /* drive number */
1259 OUT_FDC(fdc, bp->b_cylinder * fd->sc_type->step, SEEKTIMEDOUT);
1331 OUT_FDC(fdc, NE7CMD_FORMAT, IOTIMEDOUT);
1332 OUT_FDC(fdc, (head << 2) | fd->sc_drive, IOTIMEDOUT);
1333 OUT_FDC(fdc, finfo->fd_formb_secshift, IOTIMEDOUT);
1334 OUT_FDC(fdc, finfo->fd_formb_nsecs, IOTIMEDOUT);
1335 OUT_FDC(fdc, finfo->fd_formb_gaplen, IOTIMEDOUT);
1336 OUT_FDC(fdc, finfo->fd_formb_fillbyte, IOTIMEDOUT);
1339 OUT_FDC(fdc, NE7CMD_READ, IOTIMEDOUT);
1341 OUT_FDC(fdc, NE7CMD_WRITE, IOTIMEDOUT);
1342 OUT_FDC(fdc, (head << 2) | fd->sc_drive, IOTIMEDOUT);
1343 OUT_FDC(fdc, fd->sc_cylin, IOTIMEDOUT); /*track*/
1344 OUT_FDC(fdc, head, IOTIMEDOUT);
1345 OUT_FDC(fdc, sec + 1, IOTIMEDOUT); /*sector+1*/
1346 OUT_FDC(fdc, type->secsize, IOTIMEDOUT);/*sector size*/
1347 OUT_FDC(fdc, type->sectrac, IOTIMEDOUT);/*secs/track*/
1348 OUT_FDC(fdc, type->gap1, IOTIMEDOUT); /*gap1 size*/
1349 OUT_FDC(fdc, type->datalen, IOTIMEDOUT);/*data length*/
1498 OUT_FDC(fdc, NE7CMD_RECAL, RECALTIMEDOUT);
1499 OUT_FDC(fdc, fd->sc_drive, RECALTIMEDOUT);
1778 out_fdc(fdc, NE7CMD_DUMPREG);
1804 out_fdc(fdc, NE7CMD_SENSEI);