Add a field so we can specify flags per port to the underlying device driver.
This commit is contained in:
parent
97c6f4f976
commit
32bc35fdb6
@ -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),
|
||||
|
@ -78,6 +78,7 @@ struct puc_device_description {
|
||||
int bar;
|
||||
int offset;
|
||||
u_int serialfreq;
|
||||
u_int flags;
|
||||
} ports[PUC_MAX_PORTS];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user