Add a field so we can specify flags per port to the underlying device driver.

This commit is contained in:
Poul-Henning Kamp 2002-09-27 22:01:32 +00:00
parent 97c6f4f976
commit 32bc35fdb6
2 changed files with 3 additions and 0 deletions

View File

@ -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),

View File

@ -78,6 +78,7 @@ struct puc_device_description {
int bar;
int offset;
u_int serialfreq;
u_int flags;
} ports[PUC_MAX_PORTS];
};