|
|
| version 1.6, 2003/08/07 21:17:09 | version 1.7, 2004/02/13 01:33:19 |
|---|---|
| Line 136 mly_attach(struct mly_softc *sc) | Line 136 mly_attach(struct mly_softc *sc) |
| mly_initq_busy(sc); | mly_initq_busy(sc); |
| mly_initq_complete(sc); | mly_initq_complete(sc); |
| #if __FreeBSD_version >= 500005 | #if defined(__FreeBSD__) && __FreeBSD_version >= 500005 |
| /* | /* |
| * Initialise command-completion task. | * Initialise command-completion task. |
| */ | */ |
| Line 1033 mly_done(struct mly_softc *sc) | Line 1033 mly_done(struct mly_softc *sc) |
| splx(s); | splx(s); |
| if (worked) { | if (worked) { |
| #if __FreeBSD_version >= 500005 | #if defined(__FreeBSD__) && __FreeBSD_version >= 500005 |
| if (sc->mly_state & MLY_STATE_INTERRUPTS_ON) | if (sc->mly_state & MLY_STATE_INTERRUPTS_ON) |
| taskqueue_enqueue(taskqueue_swi, &sc->mly_task_complete); | taskqueue_enqueue(taskqueue_swi, &sc->mly_task_complete); |
| else | else |