Lines 419-424
Link Here
|
419 |
sc->sc_bas.bst = rman_get_bustag(sc->sc_rres); |
419 |
sc->sc_bas.bst = rman_get_bustag(sc->sc_rres); |
420 |
|
420 |
|
421 |
sc->sc_irid = 0; |
421 |
sc->sc_irid = 0; |
|
|
422 |
#ifdef UART_INTR |
422 |
sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->sc_irid, |
423 |
sc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->sc_irid, |
423 |
RF_ACTIVE | RF_SHAREABLE); |
424 |
RF_ACTIVE | RF_SHAREABLE); |
424 |
if (sc->sc_ires != NULL) { |
425 |
if (sc->sc_ires != NULL) { |
Lines 439-444
Link Here
|
439 |
sc->sc_ires = NULL; |
440 |
sc->sc_ires = NULL; |
440 |
} |
441 |
} |
441 |
} |
442 |
} |
|
|
443 |
#else |
444 |
sc->sc_ires = NULL; |
445 |
#endif |
442 |
if (sc->sc_ires == NULL) { |
446 |
if (sc->sc_ires == NULL) { |
443 |
/* XXX no interrupt resource. Force polled mode. */ |
447 |
/* XXX no interrupt resource. Force polled mode. */ |
444 |
sc->sc_polled = 1; |
448 |
sc->sc_polled = 1; |