Home | History | Annotate | Download | only in obio

Lines Matching defs:iwm

219 /* IWM floppy disk controller */
220 CFATTACH_DECL_NEW(iwm, sizeof(iwm_softc_t),
265 /*** Configure the IWM controller ***/
270 * Is the IWM chip present? Here, *aux is a ptr to struct confargs
276 * While here, map the machine-dependent physical IO address of IWM
280 * SWIM does not support the IWM register set used by this driver
340 printf("IWM or original SWIM not found.\n");
352 * The IWM is present, initialize it. Then look up the connected drives
359 iwm_softc_t *iwm;
363 iwm = device_private(self);
370 /* Set up the IWM softc */
371 iwm->maxRetries = 10;
375 iwm->fd[ia.unit] = NULL;
382 printf("iwm: Initialization completed.\n");
384 printf("iwm: Initialization failed (%d)\n", iwmErr);
431 * We have checked that the IWM is fine and the drive is present,
437 iwm_softc_t *iwm;
442 iwm = device_private(parent);
454 iwm->fd[ia->unit] = fd; /* iwm has ptr to this drive */
455 iwm->drives++;
481 printf("iwm: Drive register 0x%x = 0x%x\n", reg, flags);
532 iwm_softc_t *iwm = device_lookup_private(&iwm_cd, 0); /* XXX */
543 printf("iwm: Open drive %d", fdUnit);
546 err = (iwm->drives < fdUnit) ? ENXIO : 0;
553 fd = iwm->fd[fdUnit];
651 printf("iwm: fdopen() says %d.\n", err);
664 iwm_softc_t *iwm = device_lookup_private(&iwm_cd, 0);
667 printf("iwm: Closing driver.");
670 fd = iwm->fd[fdUnit];
708 iwm_softc_t *iwm = device_lookup_private(&iwm_cd, 0);
712 printf("iwm: Execute ioctl... ");
717 if (fdUnit >= iwm->drives) {
719 printf("iwm: Wanted device no (%d) is >= %d.\n",
720 fdUnit, iwm->drives);
724 fd = iwm->fd[fdUnit];
767 printf(" DIOCSSTEP: IWM does step handshake.\n");
777 iwm->maxRetries = *(int *)data;
848 * but we get no interrupts from the IWM and have to do synchronous
858 iwm_softc_t *iwm = device_lookup_private(&iwm_cd, 0);
867 printf("iwm: fdstrategy()...\n");
880 if (fdUnit >= iwm->drives) {
886 fd = iwm->fd[fdUnit];
913 printf("iwm: Transfer beyond end of disk!\n" \
970 printf("iwm: fdstrategy() done.\n");
1149 iwm_softc_t *iwm = device_lookup_private(&iwm_cd, 0); /* XXX */
1187 /* IWM IO error? */
1197 if (iwm->maxRetries > fd->seekRetries++) {
1263 iwm_softc_t *iwm = device_lookup_private(&iwm_cd, 0); /* XXX */
1309 if (iwm->maxRetries > fd->seekRetries++) {
1318 default: /* General IWM IO error? */
1392 iwm_softc_t *iwm = device_lookup_private(&iwm_cd, 0); /* XXX */
1395 printf("iwm%sSector() err = %d, %d retries, on c%d_h%d_s%d.\n",
1401 if (fd->ioRetries++ < iwm->maxRetries)
1542 printf("iwm: Switching motor OFF (timeout).\n");
1567 printf("iwm: fdGetDiskLabel() for disk %" PRIu64 ".\n",
1617 printf("iwm: %s.\n", msg);
1695 printf("iwm: Drive %d says 0x0%x (%d)\n",
1755 iwm_softc_t *iwm = device_lookup_private(&iwm_cd, 0); /* XXX */
1821 if (fd->seekRetries++ < iwm->maxRetries)
1836 if (fd->verifyRetries++ < iwm->maxRetries)
1927 printf("iwm: Disklabel entries of current floppy.\n");