diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c index 9cde9d6d8bef..06106b972913 100644 --- a/sys/dev/puc/puc.c +++ b/sys/dev/puc/puc.c @@ -282,6 +282,8 @@ puc_attach(device_t dev, const struct puc_device_description *desc) sc->sc_desc->ports[i].offset); puc_print_resource_list(&pdev->resources); #endif + device_set_flags(sc->sc_ports[i].dev, + sc->sc_desc->ports[i].flags); if (device_probe_and_attach(sc->sc_ports[i].dev) != 0) { if (sc->barmuxed) { bus_space_unmap(rman_get_bustag(rle->res), diff --git a/sys/dev/puc/pucvar.h b/sys/dev/puc/pucvar.h index 46f8e986e446..1b8902679ef7 100644 --- a/sys/dev/puc/pucvar.h +++ b/sys/dev/puc/pucvar.h @@ -78,6 +78,7 @@ struct puc_device_description { int bar; int offset; u_int serialfreq; + u_int flags; } ports[PUC_MAX_PORTS]; };