|
|
| version 1.6, 2004/03/02 20:55:10 | version 1.7, 2004/03/29 15:17:51 |
|---|---|
| Line 263 static void | Line 263 static void |
| twe_del_unit(struct twe_softc *sc, int unit) | twe_del_unit(struct twe_softc *sc, int unit) |
| { | { |
| if (unit < 0 || unit > TWE_MAX_UNITS) | if (unit < 0 || unit >= TWE_MAX_UNITS) |
| return; | return; |
| twe_detach_drive(sc, unit); | twe_detach_drive(sc, unit); |
| Line 488 twe_ioctl(struct twe_softc *sc, int cmd, | Line 488 twe_ioctl(struct twe_softc *sc, int cmd, |
| case TWEIO_COMMAND: | case TWEIO_COMMAND: |
| /* get a request */ | /* get a request */ |
| while (twe_get_request(sc, &tr)) | while (twe_get_request(sc, &tr)) |
| tsleep(NULL, PPAUSE, "twioctl", hz); | tsleep(sc, PPAUSE, "twioctl", hz); |
| /* | /* |
| * Save the command's request ID, copy the user-supplied command in, | * Save the command's request ID, copy the user-supplied command in, |
| Line 965 twe_reset(struct twe_softc *sc) | Line 965 twe_reset(struct twe_softc *sc) |
| /* | /* |
| * Sleep for a short period to allow AENs to be signalled. | * Sleep for a short period to allow AENs to be signalled. |
| */ | */ |
| tsleep(NULL, 0, "twereset", hz); | tsleep(sc, 0, "twereset", hz); |
| /* | /* |
| * Disable interrupts from the controller, and mask any accidental entry | * Disable interrupts from the controller, and mask any accidental entry |