diff options
author | phk <phk@FreeBSD.org> | 2002-09-27 22:01:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-27 22:01:32 +0000 |
commit | cc0058119ee38271d6e6796085c955c489fdda06 (patch) | |
tree | e46ebdf7ac3b7d50ef7a2cc7cbc0fcd93b9e8b9f /sys | |
parent | d2d1a6d2ea1885ab0fd7b708da8129b8b14ce52e (diff) | |
download | FreeBSD-src-cc0058119ee38271d6e6796085c955c489fdda06.zip FreeBSD-src-cc0058119ee38271d6e6796085c955c489fdda06.tar.gz |
Add a field so we can specify flags per port to the underlying device driver.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/puc/puc.c | 2 | ||||
-rw-r--r-- | sys/dev/puc/pucvar.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c index 9cde9d6..06106b9 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 46f8e98..1b89026 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]; }; |