Lines Matching defs:fdu
254 fdu_t fdu;
283 * fdu is the floppy drive unit number
512 if (fd_cmd(fdc, 2, NE7CMD_SENSED, fdc->fdu, 1, &st3))
596 static int pc98_fd_check_ready(fdu_t fdu)
598 fd_p fd = devclass_get_softc(fd_devclass, fdu);
606 out_fdc(fdc, fdu); /* Drive number */
621 if (fd->type != FDT_NONE || fd->fdu < 0 || fd->fdu > 3)
627 if (!((PC98_SYSTEM_PARAMETER(0x55c) >> fd->fdu) & 0x01)) {
631 if ((PC98_SYSTEM_PARAMETER(0x5ae) >> fd->fdu) & 0x01) {
635 (fd->fdu << 5) | 0x10);
896 fd->fdu = device_get_unit(dev);
918 if (fd->type == FDT_NONE && (fd->fdu == 0 || fd->fdu == 1)) {
920 if (fd->fdu == 0) {
1063 fd->masterdev = make_dev(&fd_cdevsw, fd->fdu,
1064 UID_ROOT, GID_OPERATOR, 0640, "fd%d", fd->fdu);
1142 TRACE1("[fd%d: turnoff]", fd->fdu);
1153 if (fd->fdc->state != DEVIDLE && fd->fdc->fdu == fd->fdu) {
1303 fdu_t fdu;
1314 fdu = fd->fdu;
1329 if (pc98_fd_check_ready(fdu) == -1)
1436 fdu_t fdu;
1442 fdu = fd->fdu;
1463 fdu, (intmax_t)bp->bio_offset, bp->bio_bcount);
1542 TRACE1("fd%d[fd_iotimeout()]", fdc->fdu);
1739 fdu_t fdu = fdc->fdu;
1761 fdc->fdu = -1;
1767 fdu = fd->fdu;
1782 TRACE1("fd%d", fdu);
1794 fdc->fdu = fdu;
1811 (fdu << 5) | 0x10 |
1859 pc98_fd_check_ready(fdu);
1929 fdu, st3, NE7_ST3BITS);
1943 fdu, descyl, cyl, st0);
1964 fd->hddrv = ((head&1)<<2)+fdu;
2024 if(fd_cmd(fdc, 6, ne7cmd, head << 2 | fdu,
2040 if (fd_cmd(fdc, 2, ne7cmd, head << 2 | fdu, 0)) {
2066 head << 2 | fdu, /* head & unit */
2184 fdc->fdu = -1;
2206 pc98_fd_check_ready(fdu);
2208 if(fd_cmd(fdc, 2, NE7CMD_RECAL, fdu, 0)) {
2245 fdu, st0, NE7_ST0BITS, cyl);
2295 int fdu;
2301 fdu = fd->fdu;
2347 fdc->fdu = -1;
2363 fdu_t fdu;
2372 fdu = fd->fdu;
2414 fdu_t fdu;
2421 fdu = fd->fdu;
2424 pc98_fd_check_ready(fdu);
2498 fd->fdu, fd_debug ? "on" : "off");
2566 fd->fdu, fd_debug ? "on" : "off");